<?php require 'common.php'; if (array_key_exists('s', $_GET)) { Sessao::getSessaoAtual(); Mapa::renderizarImagem(); } elseif (array_key_exists('c', $_GET)) { Mapa::carregarEstrutura(); Mapa::renderizarConfiguracao(); } else { throw new Exception("Não foi possivel carregar o mapa."); }