Commit 9046cdc5f1b20042db4b092424bcaeabf21e95ab

Authored by Edmar Moretti
1 parent d87ee9b0

funcao de log

classesphp/mapa_controle.php
... ... @@ -173,6 +173,11 @@ if ($funcao != "pegaTodosTemas" && $funcao != "download3" && $funcao != "listain
173 173 else{
174 174 $map_file = "";
175 175 }
  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 +}
176 181 //
177 182 //isso é necessário pois a variável "interface" pode ser utilizada como parâmetro em algumas funções ajax
178 183 //nesses casos, é necessário recuperar o valor correto e não da sessão
... ... @@ -195,10 +200,6 @@ if(!function_exists("sobeAnno")){
195 200 include_once("funcoes_gerais.php");
196 201 }
197 202  
198   -if(isset($logExec) && $logExec["controle"] == true){
199   - i3GeoLog("prog: mapa_controle url: ".implode("&",array_merge($_GET,$_POST)),$_SESSION["dir_tmp"]);
200   -}
201   -
202 203 if($funcao == "criaMapa"){
203 204 session_name("i3GeoPHP");
204 205 unset($GLOBALS);
... ...
ferramentas/safe.php
... ... @@ -32,10 +32,6 @@ $funcao = $_GET["funcao"];
32 32  
33 33 include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php");
34 34  
35   -if(isset($logExec) && $logExec["ferramentas"] == true){
36   - i3GeoLog("prog: ferramentas url: ".implode("&",array_merge($_GET,$_POST)),$_SESSION["dir_tmp"]);
37   -}
38   -
39 35 if(isset($fingerprint) && !empty($g_sid)) {
40 36 $f = explode(",",$fingerprint);
41 37 if($f[0] != md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id())){
... ... @@ -46,6 +42,11 @@ if(isset($fingerprint) && !empty($g_sid)) {
46 42 include_once(dirname(__FILE__)."/../ms_configura.php");
47 43 include_once(dirname(__FILE__)."/../classesphp/classe_vermultilayer.php");
48 44 include_once(dirname(__FILE__)."/../classesphp/classe_estatistica.php");
  45 +
  46 +if(isset($logExec) && $logExec["ferramentas"] == true){
  47 + i3GeoLog("prog: ferramentas url: ".implode("&",array_merge($_GET,$_POST)),$_SESSION["dir_tmp"]);
  48 +}
  49 +
49 50 //
50 51 //substitui a string de conexão
51 52 //
... ...