Commit 9721b40c136fe85d351e1481c586ee8080ad298f
1 parent
f0606edf
Exists in
master
correção no log do mapa_controle
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
classesphp/mapa_controle.php
... | ... | @@ -174,10 +174,7 @@ if ($funcao != "listaEpsg" && $funcao != "pegaTodosTemas" && $funcao != "downloa |
174 | 174 | else{ |
175 | 175 | $map_file = ""; |
176 | 176 | } |
177 | -$logExec = $_SESSION["logExec"]; | |
178 | -if(isset($logExec) && $logExec["controle"] == true){ | |
179 | - i3GeoLog("prog: mapa_controle url: ".implode("&",array_merge($_GET,$_POST)),$_SESSION["dir_tmp"]); | |
180 | -} | |
177 | + | |
181 | 178 | // |
182 | 179 | //isso é necessário pois a variável "interface" pode ser utilizada como parâmetro em algumas funções ajax |
183 | 180 | //nesses casos, é necessário recuperar o valor correto e não da sessão |
... | ... | @@ -199,7 +196,10 @@ include_once ("carrega_ext.php"); |
199 | 196 | if(!function_exists("sobeAnno")){ |
200 | 197 | include_once("funcoes_gerais.php"); |
201 | 198 | } |
202 | - | |
199 | +$logExec = $_SESSION["logExec"]; | |
200 | +if(isset($logExec) && $logExec["controle"] == true){ | |
201 | + i3GeoLog("prog: mapa_controle url: ".implode("&",array_merge($_GET,$_POST)),$_SESSION["dir_tmp"]); | |
202 | +} | |
203 | 203 | if($funcao == "criaMapa"){ |
204 | 204 | session_name("i3GeoPHP"); |
205 | 205 | unset($GLOBALS); | ... | ... |