Commit 5cfbe63afc417f37e14f7c65e24e16702bd4de6a
1 parent
267a1528
Exists in
master
and in
7 other branches
funcao de log
Showing
9 changed files
with
49 additions
and
2 deletions
Show diff stats
ferramentas/aplicarsld/upload.php
@@ -12,6 +12,10 @@ $map_file = $_SESSION["map_file"]; | @@ -12,6 +12,10 @@ $map_file = $_SESSION["map_file"]; | ||
12 | $postgis_mapa = $_SESSION["postgis_mapa"]; | 12 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
13 | require_once (dirname(__FILE__)."/../../ms_configura.php"); | 13 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
14 | $tema = $_GET["tema"]; | 14 | $tema = $_GET["tema"]; |
15 | + | ||
16 | +if(isset($logExec) && $logExec["upload"] == true){ | ||
17 | + i3GeoLog("aplicarsld tema: $tema filename:" . $_FILES['i3GEOaplicarsld']['name'],$dir_tmp); | ||
18 | +} | ||
15 | ?> | 19 | ?> |
16 | <html> | 20 | <html> |
17 | <head> | 21 | <head> |
ferramentas/carregamapa/upload.php
@@ -11,6 +11,10 @@ session_start(); | @@ -11,6 +11,10 @@ session_start(); | ||
11 | $map_file = $_SESSION["map_file"]; | 11 | $map_file = $_SESSION["map_file"]; |
12 | $postgis_mapa = $_SESSION["postgis_mapa"]; | 12 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
13 | require_once (dirname(__FILE__)."/../../ms_configura.php"); | 13 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
14 | + | ||
15 | +if(isset($logExec) && $logExec["upload"] == true){ | ||
16 | + i3GeoLog("carregamapa filename:" . $_FILES['i3GEOcarregamapafilemap']['name'],$dir_tmp); | ||
17 | +} | ||
14 | ?> | 18 | ?> |
15 | <html> | 19 | <html> |
16 | <head> | 20 | <head> |
ferramentas/importarwmc/upload.php
@@ -22,6 +22,11 @@ error_reporting(0); | @@ -22,6 +22,11 @@ error_reporting(0); | ||
22 | require_once (dirname(__FILE__)."/../../ms_configura.php"); | 22 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
23 | $dirmap = dirname($map_file); | 23 | $dirmap = dirname($map_file); |
24 | $arquivo = ""; | 24 | $arquivo = ""; |
25 | + | ||
26 | +if(isset($logExec) && $logExec["upload"] == true){ | ||
27 | + i3GeoLog("importarwmc filename:" . $_FILES['i3GEOimportarwmc']['name'],$dir_tmp); | ||
28 | +} | ||
29 | + | ||
25 | if(isset($_FILES['i3GEOimportarwmc']['name']) && !($_POST["i3GEOimportarwmcurl"]) && strlen(basename($_FILES['i3GEOimportarwmc']['name'])) < 200) | 30 | if(isset($_FILES['i3GEOimportarwmc']['name']) && !($_POST["i3GEOimportarwmcurl"]) && strlen(basename($_FILES['i3GEOimportarwmc']['name'])) < 200) |
26 | { | 31 | { |
27 | echo "<p class='paragrafo' >Carregando o arquivo...</p>"; | 32 | echo "<p class='paragrafo' >Carregando o arquivo...</p>"; |
ferramentas/upload/upload.php
@@ -33,6 +33,11 @@ if (ob_get_level() == 0) ob_start(); | @@ -33,6 +33,11 @@ if (ob_get_level() == 0) ob_start(); | ||
33 | if (isset($_FILES['i3GEOuploadshp']['name'])) | 33 | if (isset($_FILES['i3GEOuploadshp']['name'])) |
34 | { | 34 | { |
35 | require_once (dirname(__FILE__)."/../../ms_configura.php"); | 35 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
36 | + | ||
37 | + if(isset($logExec) && $logExec["upload"] == true){ | ||
38 | + i3GeoLog("upload filename:" . $_FILES['i3GEOuploadshp']['name'],$dir_tmp); | ||
39 | + } | ||
40 | + | ||
36 | echo "<p class='paragrafo' >Carregando o arquivo...</p>"; | 41 | echo "<p class='paragrafo' >Carregando o arquivo...</p>"; |
37 | ob_flush(); | 42 | ob_flush(); |
38 | flush(); | 43 | flush(); |
ferramentas/uploaddbf/upload.php
@@ -33,6 +33,11 @@ if (isset($_FILES['i3GEOuploaddbffile']['name']) && strlen(basename($_FILES['i3G | @@ -33,6 +33,11 @@ if (isset($_FILES['i3GEOuploaddbffile']['name']) && strlen(basename($_FILES['i3G | ||
33 | 33 | ||
34 | //$ndir = dirname($filen); | 34 | //$ndir = dirname($filen); |
35 | require_once (dirname(__FILE__)."/../../ms_configura.php"); | 35 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
36 | + | ||
37 | + if(isset($logExec) && $logExec["upload"] == true){ | ||
38 | + i3GeoLog("uploaddbf filename:" . $_FILES['i3GEOuploaddbffile']['name'],$dir_tmp); | ||
39 | + } | ||
40 | + | ||
36 | $mapa = ms_newMapObj($map_file); | 41 | $mapa = ms_newMapObj($map_file); |
37 | echo "<p class='paragrafo'>Carregando o arquivo...</p>"; | 42 | echo "<p class='paragrafo'>Carregando o arquivo...</p>"; |
38 | ob_flush(); | 43 | ob_flush(); |
ferramentas/uploadgpx/upload.php
@@ -30,6 +30,11 @@ if (isset($_FILES['i3GEOuploadgpx']['name']) && strlen(basename($_FILES['i3GEOup | @@ -30,6 +30,11 @@ if (isset($_FILES['i3GEOuploadgpx']['name']) && strlen(basename($_FILES['i3GEOup | ||
30 | } | 30 | } |
31 | //$ndir = dirname($filen); | 31 | //$ndir = dirname($filen); |
32 | require_once (dirname(__FILE__)."/../../ms_configura.php"); | 32 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
33 | + | ||
34 | + if(isset($logExec) && $logExec["upload"] == true){ | ||
35 | + i3GeoLog("uploadgpx filename:" . $_FILES['i3GEOuploadgpx']['name'],$dir_tmp); | ||
36 | + } | ||
37 | + | ||
33 | $mapa = ms_newMapObj($map_file); | 38 | $mapa = ms_newMapObj($map_file); |
34 | echo "<p class='paragrafo' >Carregando o arquivo...</p>"; | 39 | echo "<p class='paragrafo' >Carregando o arquivo...</p>"; |
35 | ob_flush(); | 40 | ob_flush(); |
ferramentas/uploadkml/upload.php
@@ -31,6 +31,11 @@ if (isset($_FILES['i3GEOuploadkml']['name']) && strlen(basename($_FILES['i3GEOup | @@ -31,6 +31,11 @@ if (isset($_FILES['i3GEOuploadkml']['name']) && strlen(basename($_FILES['i3GEOup | ||
31 | } | 31 | } |
32 | //$ndir = dirname($filen); | 32 | //$ndir = dirname($filen); |
33 | require_once (dirname(__FILE__)."/../../ms_configura.php"); | 33 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
34 | + | ||
35 | + if(isset($logExec) && $logExec["upload"] == true){ | ||
36 | + i3GeoLog("uploadkml filename:" . $_FILES['i3GEOuploadkml']['name'],$dir_tmp); | ||
37 | + } | ||
38 | + | ||
34 | $mapa = ms_newMapObj($map_file); | 39 | $mapa = ms_newMapObj($map_file); |
35 | echo "<p class='paragrafo' >Carregando o arquivo...</p>"; | 40 | echo "<p class='paragrafo' >Carregando o arquivo...</p>"; |
36 | ob_flush(); | 41 | ob_flush(); |
ferramentas/uploadsimbolo/upload.php
@@ -26,6 +26,11 @@ if (isset($_FILES['i3GEOuploadsimboloarq']['name']) && strlen(basename($_FILES[' | @@ -26,6 +26,11 @@ if (isset($_FILES['i3GEOuploadsimboloarq']['name']) && strlen(basename($_FILES[' | ||
26 | } | 26 | } |
27 | 27 | ||
28 | require_once (dirname(__FILE__)."/../../ms_configura.php"); | 28 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
29 | + | ||
30 | + if(isset($logExec) && $logExec["upload"] == true){ | ||
31 | + i3GeoLog("uploadsimbolo filename:" . $_FILES['i3GEOuploadsimboloarq']['name'],$dir_tmp); | ||
32 | + } | ||
33 | + | ||
29 | echo "<p class='paragrafo' >Carregando o arquivo...</p>"; | 34 | echo "<p class='paragrafo' >Carregando o arquivo...</p>"; |
30 | ob_flush(); | 35 | ob_flush(); |
31 | flush(); | 36 | flush(); |
ms_configura.php
@@ -86,11 +86,20 @@ false | @@ -86,11 +86,20 @@ false | ||
86 | 86 | ||
87 | */ | 87 | */ |
88 | $logTransacoes = false; | 88 | $logTransacoes = false; |
89 | -//TODO documentar | 89 | +//TODO documentar moodle |
90 | +/* | ||
91 | + Variale: $logExec | ||
92 | + | ||
93 | + Ativa a geracao do log em ms_tmp/.log_i3geo_ | ||
94 | + | ||
95 | + Para evitar o log, basta definir os valores como false ou $logExec = '' | ||
96 | + | ||
97 | +*/ | ||
90 | $logExec = array( | 98 | $logExec = array( |
91 | "mapa_" => true, //mapa_openlayers e mapa_googlemaps | 99 | "mapa_" => true, //mapa_openlayers e mapa_googlemaps |
92 | "init" => true, //ms_criamapa mapa_inicia | 100 | "init" => true, //ms_criamapa mapa_inicia |
93 | - "ogc" => true | 101 | + "ogc" => true, //servico ogc |
102 | + "upload" => true //ferramentas de upload | ||
94 | ); | 103 | ); |
95 | /* | 104 | /* |
96 | Variable: $i3GeoProjDefault | 105 | Variable: $i3GeoProjDefault |