Commit 86309869c2f6b4e6e57ca7ea1191792472d188a9
1 parent
4f742691
Exists in
master
and in
7 other branches
Atualização do código
Showing
2 changed files
with
5 additions
and
13 deletions
Show diff stats
classesphp/mapa_controle.php
... | ... | @@ -175,13 +175,7 @@ if(isset($interfaceTemp) && $interfaceTemp != ""){ |
175 | 175 | $_SESSION["interface"] = $interfaceTemp; |
176 | 176 | $interface = $interfaceTemp; |
177 | 177 | } |
178 | -// | |
179 | -//verifica se deve ativar o debug | |
180 | -// | |
181 | -if (isset($debug) && strtolower($debug) == "sim") | |
182 | -{ | |
183 | - error_reporting(0); | |
184 | -} | |
178 | +error_reporting(0); | |
185 | 179 | // |
186 | 180 | //teste de timeout |
187 | 181 | // |
... | ... | @@ -231,10 +225,7 @@ if (!isset($map_file)) |
231 | 225 | } |
232 | 226 | include_once("classe_vermultilayer.php"); |
233 | 227 | include_once("classe_estatistica.php"); |
234 | -if (isset($debug) && strtolower($debug) == "sim") | |
235 | -{ | |
236 | - error_reporting(0); | |
237 | -} | |
228 | +error_reporting(0); | |
238 | 229 | // |
239 | 230 | //identifica qual a url do i3geo |
240 | 231 | // |
... | ... | @@ -651,7 +642,7 @@ switch (strtoupper($funcao)) |
651 | 642 | case "LISTATEMASTIPO": |
652 | 643 | include_once("classe_mapa.php"); |
653 | 644 | $m = new Mapa($map_file); |
654 | - if(!isset($selecao)){ | |
645 | + if(!isset($selecao) || $selecao == ""){ | |
655 | 646 | $selecao = "nao"; |
656 | 647 | } |
657 | 648 | $retorno = $m->listaTemasTipo($tipo,$selecao); | ... | ... |
ms_criamapa.php
... | ... | @@ -239,6 +239,7 @@ if(!isset($funcao)){ |
239 | 239 | Inclui os programas php com funções utilizadas pelo ms_criamapa.php |
240 | 240 | */ |
241 | 241 | include_once (dirname(__FILE__)."/classesphp/sani_request.php"); |
242 | + $parurl = array_merge($_GET,$_POST); | |
242 | 243 | $base = $parurl["base"]; |
243 | 244 | $temasa = $parurl["temasa"]; |
244 | 245 | $layers = $parurl["layers"]; |
... | ... | @@ -271,7 +272,7 @@ if(!isset($funcao)){ |
271 | 272 | $gvsigview = $parurl["gvsigview"]; |
272 | 273 | $restauramapa = $parurl["restauramapa"]; |
273 | 274 | } |
274 | -$parurl = array_merge($_GET,$_POST); | |
275 | + | |
275 | 276 | include_once (dirname(__FILE__)."/classesphp/funcoes_gerais.php"); |
276 | 277 | $versao = versao(); |
277 | 278 | $versao = $versao["principal"]; | ... | ... |