Commit 4a12c9f124b4d815eb44b0ff4feb8246225b50ea
1 parent
a9f22cad
Exists in
master
and in
7 other branches
--no commit message
Showing
136 changed files
with
340 additions
and
327 deletions
Show diff stats
Too many changes.
To preserve performance only 100 of 136 files displayed.
admin/abrefontemapfile.php
| @@ -50,7 +50,7 @@ body { | @@ -50,7 +50,7 @@ body { | ||
| 50 | if(!isset($locaplic)) | 50 | if(!isset($locaplic)) |
| 51 | { | 51 | { |
| 52 | $locaplic = ""; | 52 | $locaplic = ""; |
| 53 | - include(__DIR__."/../ms_configura.php"); | 53 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 54 | } | 54 | } |
| 55 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 55 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 56 | include_once($locaplic."/admin/php/admin.php"); | 56 | include_once($locaplic."/admin/php/admin.php"); |
admin/admin.db
No preview for this file type
admin/hiperbolica.php
| @@ -46,7 +46,7 @@ i3geo/admin/hiperbolica.php | @@ -46,7 +46,7 @@ i3geo/admin/hiperbolica.php | ||
| 46 | */ | 46 | */ |
| 47 | 47 | ||
| 48 | error_reporting(0); | 48 | error_reporting(0); |
| 49 | -include(__DIR__."/../ms_configura.php"); | 49 | +include(dirname(__FILE__)."/../ms_configura.php"); |
| 50 | include("$locaplic/admin/php/admin.php"); | 50 | include("$locaplic/admin/php/admin.php"); |
| 51 | include("$locaplic/admin/php/conexao.php"); | 51 | include("$locaplic/admin/php/conexao.php"); |
| 52 | // | 52 | // |
admin/php/admin.php
| @@ -33,12 +33,13 @@ Arquivo: | @@ -33,12 +33,13 @@ Arquivo: | ||
| 33 | 33 | ||
| 34 | i3geo/admin/php/admin.php | 34 | i3geo/admin/php/admin.php |
| 35 | */ | 35 | */ |
| 36 | -if(!isset($locaplic)){ | 36 | +if(!isset($locaplic) || !isset($dir_tmp)){ |
| 37 | $locaplic = ""; | 37 | $locaplic = ""; |
| 38 | - include(__DIR__."/../../ms_configura.php"); | 38 | + include(dirname(__FILE__)."/../../ms_configura.php"); |
| 39 | } | 39 | } |
| 40 | if(!file_exists($dir_tmp)){ | 40 | if(!file_exists($dir_tmp)){ |
| 41 | @mkdir ($dir_tmp,0777); | 41 | @mkdir ($dir_tmp,0777); |
| 42 | + chmod($dir_tmp,0777); | ||
| 42 | } | 43 | } |
| 43 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 44 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 44 | error_reporting(0); | 45 | error_reporting(0); |
| @@ -181,7 +182,7 @@ function pegaDados($sql,$locaplic="") | @@ -181,7 +182,7 @@ function pegaDados($sql,$locaplic="") | ||
| 181 | else | 182 | else |
| 182 | include("$locaplic/admin/php/conexao.php"); | 183 | include("$locaplic/admin/php/conexao.php"); |
| 183 | 184 | ||
| 184 | - error_reporting(E_ALL); | 185 | + error_reporting(0); |
| 185 | $q = $dbh->query($sql,PDO::FETCH_ASSOC); | 186 | $q = $dbh->query($sql,PDO::FETCH_ASSOC); |
| 186 | if($q) | 187 | if($q) |
| 187 | { | 188 | { |
admin/php/arvore.php
| @@ -41,7 +41,7 @@ O parâmetro principal é "funcao", que define qual operaç&ati | @@ -41,7 +41,7 @@ O parâmetro principal é "funcao", que define qual operaç&ati | ||
| 41 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. | 41 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. |
| 42 | 42 | ||
| 43 | */ | 43 | */ |
| 44 | -include_once(__DIR__."/login.php"); | 44 | +include_once(dirname(__FILE__)."/login.php"); |
| 45 | $funcoesEdicao = array( | 45 | $funcoesEdicao = array( |
| 46 | "ADICIONARTEMARAIZ", | 46 | "ADICIONARTEMARAIZ", |
| 47 | "ADICIONARTEMARAIZGRUPO", | 47 | "ADICIONARTEMARAIZGRUPO", |
admin/php/atlas.php
| @@ -39,7 +39,7 @@ O parâmetro principal é "funcao", que define qual operaç&ati | @@ -39,7 +39,7 @@ O parâmetro principal é "funcao", que define qual operaç&ati | ||
| 39 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. | 39 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. |
| 40 | 40 | ||
| 41 | */ | 41 | */ |
| 42 | -include_once(__DIR__."/login.php"); | 42 | +include_once(dirname(__FILE__)."/login.php"); |
| 43 | $funcoesEdicao = array( | 43 | $funcoesEdicao = array( |
| 44 | "ALTERARATLAS", | 44 | "ALTERARATLAS", |
| 45 | "ALTERARPRANCHA", | 45 | "ALTERARPRANCHA", |
admin/php/classe_arvore.php
| @@ -122,7 +122,7 @@ class Arvore | @@ -122,7 +122,7 @@ class Arvore | ||
| 122 | $this->pubsql = ""; | 122 | $this->pubsql = ""; |
| 123 | } | 123 | } |
| 124 | if(!function_exists("listaTemasIndevidos")){ | 124 | if(!function_exists("listaTemasIndevidos")){ |
| 125 | - include_once(__DIR__."/../../classesphp/funcoes_gerais.php"); | 125 | + include_once(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php"); |
| 126 | } | 126 | } |
| 127 | $this->temasindevidos = listaTemasIndevidos(); | 127 | $this->temasindevidos = listaTemasIndevidos(); |
| 128 | } | 128 | } |
| @@ -614,7 +614,7 @@ class Arvore | @@ -614,7 +614,7 @@ class Arvore | ||
| 614 | */ | 614 | */ |
| 615 | function formataGruposMenu ($id_menu,$perfil,$listasgrupos) | 615 | function formataGruposMenu ($id_menu,$perfil,$listasgrupos) |
| 616 | { | 616 | { |
| 617 | - //error_reporting(E_ALL); | 617 | + //error_reporting(0); |
| 618 | $dados = $this->pegaGruposMenu($id_menu); | 618 | $dados = $this->pegaGruposMenu($id_menu); |
| 619 | $resultado = array(); | 619 | $resultado = array(); |
| 620 | $temasraiz = array(); | 620 | $temasraiz = array(); |
| @@ -841,7 +841,7 @@ class Arvore | @@ -841,7 +841,7 @@ class Arvore | ||
| 841 | function execSQL($sql) | 841 | function execSQL($sql) |
| 842 | { | 842 | { |
| 843 | //echo "<br>".$sql; | 843 | //echo "<br>".$sql; |
| 844 | - //error_reporting(E_ALL); | 844 | + //error_reporting(0); |
| 845 | $q = $this->dbh->query($sql,PDO::FETCH_ASSOC); | 845 | $q = $this->dbh->query($sql,PDO::FETCH_ASSOC); |
| 846 | if($q) | 846 | if($q) |
| 847 | { | 847 | { |
admin/php/classe_metaestat.php
| @@ -49,7 +49,7 @@ class Metaestat{ | @@ -49,7 +49,7 @@ class Metaestat{ | ||
| 49 | */ | 49 | */ |
| 50 | function __construct(){ | 50 | function __construct(){ |
| 51 | error_reporting(0); | 51 | error_reporting(0); |
| 52 | - include(__DIR__."/conexao.php"); | 52 | + include(dirname(__FILE__)."/conexao.php"); |
| 53 | //vem do include | 53 | //vem do include |
| 54 | $this->dir_tmp = $dir_tmp; | 54 | $this->dir_tmp = $dir_tmp; |
| 55 | $this->locaplic = $locaplic; | 55 | $this->locaplic = $locaplic; |
| @@ -777,7 +777,7 @@ class Metaestat{ | @@ -777,7 +777,7 @@ class Metaestat{ | ||
| 777 | //var_dump($valores);exit; | 777 | //var_dump($valores);exit; |
| 778 | $min = $valores[0]; | 778 | $min = $valores[0]; |
| 779 | $max = $valores[$quantidade - 1]; | 779 | $max = $valores[$quantidade - 1]; |
| 780 | - include_once(__DIR__."/../../classesphp/classe_estatistica.php"); | 780 | + include_once(dirname(__FILE__)."/../../classesphp/classe_estatistica.php"); |
| 781 | $calc = new estatistica(); | 781 | $calc = new estatistica(); |
| 782 | $calc->calcula($valores); | 782 | $calc->calcula($valores); |
| 783 | $v = $calc->resultado; | 783 | $v = $calc->resultado; |
| @@ -2137,7 +2137,7 @@ class Metaestat{ | @@ -2137,7 +2137,7 @@ class Metaestat{ | ||
| 2137 | $regiao = $this->listaTipoRegiao($codigo_tipo_regiao); | 2137 | $regiao = $this->listaTipoRegiao($codigo_tipo_regiao); |
| 2138 | $dados = $this->obtemDadosTabelaDB($regiao["codigo_estat_conexao"],$regiao["esquemadb"],$regiao["tabela"],"sim"); | 2138 | $dados = $this->obtemDadosTabelaDB($regiao["codigo_estat_conexao"],$regiao["esquemadb"],$regiao["tabela"],"sim"); |
| 2139 | $tipol = $this->listaPropGeoRegiao($codigo_tipo_regiao); | 2139 | $tipol = $this->listaPropGeoRegiao($codigo_tipo_regiao); |
| 2140 | - include_once(__DIR__."/../../classesphp/classe_shp.php"); | 2140 | + include_once(dirname(__FILE__)."/../../classesphp/classe_shp.php"); |
| 2141 | $s = new SHP(); | 2141 | $s = new SHP(); |
| 2142 | //st_dimension returns 0 for POINT, 1 for LINESTRING, 2 for POLYGON | 2142 | //st_dimension returns 0 for POINT, 1 for LINESTRING, 2 for POLYGON |
| 2143 | //echo MS_SHP_POINT.", ".MS_SHP_ARC.", ".MS_SHP_POLYGON.", ".MS_SHP_MULTIPOINT; | 2143 | //echo MS_SHP_POINT.", ".MS_SHP_ARC.", ".MS_SHP_POLYGON.", ".MS_SHP_MULTIPOINT; |
admin/php/conexao.php
| @@ -45,7 +45,7 @@ if(isset($locaplic) && $locaplic != ""){ | @@ -45,7 +45,7 @@ if(isset($locaplic) && $locaplic != ""){ | ||
| 45 | include($locaplic."/ms_configura.php"); | 45 | include($locaplic."/ms_configura.php"); |
| 46 | } | 46 | } |
| 47 | else{ | 47 | else{ |
| 48 | - include(__DIR__."/../../ms_configura.php"); | 48 | + include(dirname(__FILE__)."/../../ms_configura.php"); |
| 49 | } | 49 | } |
| 50 | if(!isset($conexaoadmin)){ | 50 | if(!isset($conexaoadmin)){ |
| 51 | $conexaoadmin = ""; | 51 | $conexaoadmin = ""; |
admin/php/criabanco.php
| @@ -47,10 +47,10 @@ | @@ -47,10 +47,10 @@ | ||
| 47 | i3geo/admin/php/criabanco.php | 47 | i3geo/admin/php/criabanco.php |
| 48 | */ | 48 | */ |
| 49 | $funcao = ""; | 49 | $funcao = ""; |
| 50 | - //echo __DIR__; | 50 | + //echo dirname(__FILE__); |
| 51 | $esquemaadmin = ""; | 51 | $esquemaadmin = ""; |
| 52 | include("admin.php"); | 52 | include("admin.php"); |
| 53 | - error_reporting(E_ALL); | 53 | + error_reporting(0); |
| 54 | $tabelas = array( | 54 | $tabelas = array( |
| 55 | //tabelas gerais do sistema de administracao | 55 | //tabelas gerais do sistema de administracao |
| 56 | "CREATE TABLE ".$esquemaadmin."i3geoadmin_grupos (desc_grupo TEXT, id_grupo INTEGER PRIMARY KEY, nome_grupo TEXT, it TEXT, es TEXT, en TEXT)", | 56 | "CREATE TABLE ".$esquemaadmin."i3geoadmin_grupos (desc_grupo TEXT, id_grupo INTEGER PRIMARY KEY, nome_grupo TEXT, it TEXT, es TEXT, en TEXT)", |
admin/php/editormapfile.php
| @@ -39,7 +39,7 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | @@ -39,7 +39,7 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | ||
| 39 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. | 39 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. |
| 40 | 40 | ||
| 41 | */ | 41 | */ |
| 42 | -include_once(__DIR__."/login.php"); | 42 | +include_once(dirname(__FILE__)."/login.php"); |
| 43 | $funcoesEdicao = array( | 43 | $funcoesEdicao = array( |
| 44 | "CRIARNOVOMAP", | 44 | "CRIARNOVOMAP", |
| 45 | "EDITASIMBOLO", | 45 | "EDITASIMBOLO", |
| @@ -143,7 +143,7 @@ switch (strtoupper($funcao)) | @@ -143,7 +143,7 @@ switch (strtoupper($funcao)) | ||
| 143 | {JSON} | 143 | {JSON} |
| 144 | */ | 144 | */ |
| 145 | case "EDITASIMBOLO": | 145 | case "EDITASIMBOLO": |
| 146 | - include_once(__DIR__."/../../classesphp/classe_legenda.php"); | 146 | + include_once(dirname(__FILE__)."/../../classesphp/classe_legenda.php"); |
| 147 | $versao = versao(); | 147 | $versao = versao(); |
| 148 | $versao = $versao["principal"]; | 148 | $versao = $versao["principal"]; |
| 149 | if($base == "" || !isset($base)){ | 149 | if($base == "" || !isset($base)){ |
| @@ -1068,7 +1068,7 @@ switch (strtoupper($funcao)) | @@ -1068,7 +1068,7 @@ switch (strtoupper($funcao)) | ||
| 1068 | function clonarMapfile() | 1068 | function clonarMapfile() |
| 1069 | { | 1069 | { |
| 1070 | global $novomap, $codigomap, $locaplic; | 1070 | global $novomap, $codigomap, $locaplic; |
| 1071 | - error_reporting(E_ALL); | 1071 | + error_reporting(0); |
| 1072 | $arqtema = $locaplic."/temas/".$codigomap.".map"; | 1072 | $arqtema = $locaplic."/temas/".$codigomap.".map"; |
| 1073 | $novotema = $locaplic."/temas/".$novomap.".map"; | 1073 | $novotema = $locaplic."/temas/".$novomap.".map"; |
| 1074 | copy($arqtema,$novotema); | 1074 | copy($arqtema,$novotema); |
| @@ -1082,7 +1082,7 @@ function clonarMapfile() | @@ -1082,7 +1082,7 @@ function clonarMapfile() | ||
| 1082 | function refazerLayer() | 1082 | function refazerLayer() |
| 1083 | { | 1083 | { |
| 1084 | global $nomelayer, $codigomap, $maporigem, $locaplic; | 1084 | global $nomelayer, $codigomap, $maporigem, $locaplic; |
| 1085 | - error_reporting(E_ALL); | 1085 | + error_reporting(0); |
| 1086 | $mapa = ms_newMapObj($maporigem); | 1086 | $mapa = ms_newMapObj($maporigem); |
| 1087 | $arqtema = $locaplic."/temas/".$codigomap.".map"; | 1087 | $arqtema = $locaplic."/temas/".$codigomap.".map"; |
| 1088 | $mapatema = ms_newMapObj($arqtema); | 1088 | $mapatema = ms_newMapObj($arqtema); |
| @@ -1686,7 +1686,7 @@ function alterarConexao() | @@ -1686,7 +1686,7 @@ function alterarConexao() | ||
| 1686 | function pegaMetadados() | 1686 | function pegaMetadados() |
| 1687 | { | 1687 | { |
| 1688 | global $codigoMap,$codigoLayer,$locaplic,$postgis_mapa; | 1688 | global $codigoMap,$codigoLayer,$locaplic,$postgis_mapa; |
| 1689 | - //error_reporting(E_ALL); | 1689 | + //error_reporting(0); |
| 1690 | $dados = array(); | 1690 | $dados = array(); |
| 1691 | $mapfile = $locaplic."/temas/".$codigoMap.".map"; | 1691 | $mapfile = $locaplic."/temas/".$codigoMap.".map"; |
| 1692 | $mapa = ms_newMapObj($mapfile); | 1692 | $mapa = ms_newMapObj($mapfile); |
| @@ -1833,7 +1833,7 @@ function pegaClasseGeral() | @@ -1833,7 +1833,7 @@ function pegaClasseGeral() | ||
| 1833 | { | 1833 | { |
| 1834 | global $codigoMap,$codigoLayer,$indiceClasse,$locaplic; | 1834 | global $codigoMap,$codigoLayer,$indiceClasse,$locaplic; |
| 1835 | 1835 | ||
| 1836 | - error_reporting(E_ALL); | 1836 | + error_reporting(0); |
| 1837 | $dados = array(); | 1837 | $dados = array(); |
| 1838 | $mapfile = $locaplic."/temas/".$codigoMap.".map"; | 1838 | $mapfile = $locaplic."/temas/".$codigoMap.".map"; |
| 1839 | $mapa = ms_newMapObj($mapfile); | 1839 | $mapa = ms_newMapObj($mapfile); |
admin/php/editortexto.php
| @@ -33,7 +33,7 @@ body { | @@ -33,7 +33,7 @@ body { | ||
| 33 | $gravarTexto = $_POST["texto"]; | 33 | $gravarTexto = $_POST["texto"]; |
| 34 | $_POST["texto"] = ""; | 34 | $_POST["texto"] = ""; |
| 35 | } | 35 | } |
| 36 | - include_once(__DIR__."/login.php"); | 36 | + include_once(dirname(__FILE__)."/login.php"); |
| 37 | if(verificaOperacaoSessao("admin/php/editortexto") == false){ | 37 | if(verificaOperacaoSessao("admin/php/editortexto") == false){ |
| 38 | echo "Vc nao pode realizar essa operacao.";exit; | 38 | echo "Vc nao pode realizar essa operacao.";exit; |
| 39 | } | 39 | } |
admin/php/estat_mapa_upload.php
| @@ -4,7 +4,7 @@ include_once("login.php"); | @@ -4,7 +4,7 @@ include_once("login.php"); | ||
| 4 | if(verificaOperacaoSessao("admin/metaestat/geral") == false){ | 4 | if(verificaOperacaoSessao("admin/metaestat/geral") == false){ |
| 5 | echo "Vc nao pode realizar essa operacao.";exit; | 5 | echo "Vc nao pode realizar essa operacao.";exit; |
| 6 | } | 6 | } |
| 7 | -error_reporting(E_ALL); | 7 | +error_reporting(0); |
| 8 | ?> | 8 | ?> |
| 9 | <html> | 9 | <html> |
| 10 | <head> | 10 | <head> |
admin/php/gruposusuarios.php
| @@ -62,7 +62,7 @@ error_reporting(0); | @@ -62,7 +62,7 @@ error_reporting(0); | ||
| 62 | // | 62 | // |
| 63 | //pega as variaveis passadas com get ou post | 63 | //pega as variaveis passadas com get ou post |
| 64 | // | 64 | // |
| 65 | -include_once(__DIR__."/login.php"); | 65 | +include_once(dirname(__FILE__)."/login.php"); |
| 66 | $funcoesEdicao = array( | 66 | $funcoesEdicao = array( |
| 67 | "ALTERARGRUPOS", | 67 | "ALTERARGRUPOS", |
| 68 | "EXCLUIRGRUPO" | 68 | "EXCLUIRGRUPO" |
| @@ -130,7 +130,7 @@ function alterarGrupos() | @@ -130,7 +130,7 @@ function alterarGrupos() | ||
| 130 | global $id_grupo,$nome,$descricao; | 130 | global $id_grupo,$nome,$descricao; |
| 131 | try | 131 | try |
| 132 | { | 132 | { |
| 133 | - include(__DIR__."/conexao.php"); | 133 | + include(dirname(__FILE__)."/conexao.php"); |
| 134 | if($convUTF){ | 134 | if($convUTF){ |
| 135 | $nome = utf8_encode($nome); | 135 | $nome = utf8_encode($nome); |
| 136 | $descricao = utf8_encode($descricao); | 136 | $descricao = utf8_encode($descricao); |
| @@ -165,7 +165,7 @@ function alterarGrupos() | @@ -165,7 +165,7 @@ function alterarGrupos() | ||
| 165 | function adicionaUsuarioGrupo(){ | 165 | function adicionaUsuarioGrupo(){ |
| 166 | global $id_usuario,$id_grupo; | 166 | global $id_usuario,$id_grupo; |
| 167 | try { | 167 | try { |
| 168 | - include(__DIR__."/conexao.php"); | 168 | + include(dirname(__FILE__)."/conexao.php"); |
| 169 | $dbhw->query("INSERT INTO ".$esquemaadmin."i3geousr_grupousuario (id_usuario,id_grupo) VALUES ($id_usuario,$id_grupo)"); | 169 | $dbhw->query("INSERT INTO ".$esquemaadmin."i3geousr_grupousuario (id_usuario,id_grupo) VALUES ($id_usuario,$id_grupo)"); |
| 170 | $dbhw = null; | 170 | $dbhw = null; |
| 171 | $dbh = null; | 171 | $dbh = null; |
| @@ -180,7 +180,7 @@ function excluirGrupo() | @@ -180,7 +180,7 @@ function excluirGrupo() | ||
| 180 | global $id_grupo; | 180 | global $id_grupo; |
| 181 | try | 181 | try |
| 182 | { | 182 | { |
| 183 | - include(__DIR__."/conexao.php"); | 183 | + include(dirname(__FILE__)."/conexao.php"); |
| 184 | $dbhw->query("DELETE FROM ".$esquemaadmin."i3geousr_grupos WHERE id_grupo = $id_grupo "); | 184 | $dbhw->query("DELETE FROM ".$esquemaadmin."i3geousr_grupos WHERE id_grupo = $id_grupo "); |
| 185 | $dbhw = null; | 185 | $dbhw = null; |
| 186 | $dbh = null; | 186 | $dbh = null; |
| @@ -196,7 +196,7 @@ function excluirUsuarioGrupo() | @@ -196,7 +196,7 @@ function excluirUsuarioGrupo() | ||
| 196 | global $id_usuario,$id_grupo; | 196 | global $id_usuario,$id_grupo; |
| 197 | try | 197 | try |
| 198 | { | 198 | { |
| 199 | - include(__DIR__."/conexao.php"); | 199 | + include(dirname(__FILE__)."/conexao.php"); |
| 200 | //echo "DELETE from ".$esquemaadmin."i3geousr_usuarios WHERE id_usuario = $id_usuario";exit; | 200 | //echo "DELETE from ".$esquemaadmin."i3geousr_usuarios WHERE id_usuario = $id_usuario";exit; |
| 201 | $dbhw->query("DELETE FROM ".$esquemaadmin."i3geousr_grupousuario WHERE id_usuario = $id_usuario AND id_grupo = $id_grupo "); | 201 | $dbhw->query("DELETE FROM ".$esquemaadmin."i3geousr_grupousuario WHERE id_usuario = $id_usuario AND id_grupo = $id_grupo "); |
| 202 | $dbhw = null; | 202 | $dbhw = null; |
admin/php/identifica.php
| @@ -39,7 +39,7 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | @@ -39,7 +39,7 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | ||
| 39 | Cada operação possuí seus pr�prios parâmetros, que devem ser enviados também na requisição da operação. | 39 | Cada operação possuí seus pr�prios parâmetros, que devem ser enviados também na requisição da operação. |
| 40 | 40 | ||
| 41 | */ | 41 | */ |
| 42 | -include_once(__DIR__."/login.php"); | 42 | +include_once(dirname(__FILE__)."/login.php"); |
| 43 | $funcoesEdicao = array( | 43 | $funcoesEdicao = array( |
| 44 | "ALTERARFUNCOES", | 44 | "ALTERARFUNCOES", |
| 45 | "EXCLUIR" | 45 | "EXCLUIR" |
admin/php/incluiMAP.php
| @@ -34,7 +34,7 @@ i3geo/admin/php/incluiMAP.php | @@ -34,7 +34,7 @@ i3geo/admin/php/incluiMAP.php | ||
| 34 | */ | 34 | */ |
| 35 | 35 | ||
| 36 | $funcao = ""; | 36 | $funcao = ""; |
| 37 | -$locaplic = __DIR__."/../.."; | 37 | +$locaplic = dirname(__FILE__)."/../.."; |
| 38 | include_once("admin.php"); | 38 | include_once("admin.php"); |
| 39 | include_once("conexao.php"); | 39 | include_once("conexao.php"); |
| 40 | if(empty($_POST["senha"]) || empty($_POST["usuario"])){ | 40 | if(empty($_POST["senha"]) || empty($_POST["usuario"])){ |
admin/php/login.php
| @@ -62,8 +62,8 @@ error_reporting(0); | @@ -62,8 +62,8 @@ error_reporting(0); | ||
| 62 | // | 62 | // |
| 63 | //pega as variaveis passadas com get ou post | 63 | //pega as variaveis passadas com get ou post |
| 64 | // | 64 | // |
| 65 | -include_once(__DIR__."/../../classesphp/pega_variaveis.php"); | ||
| 66 | -include_once(__DIR__."/admin.php"); | 65 | +include_once(dirname(__FILE__)."/../../classesphp/pega_variaveis.php"); |
| 66 | +include_once(dirname(__FILE__)."/admin.php"); | ||
| 67 | error_reporting(0); | 67 | error_reporting(0); |
| 68 | session_write_close(); | 68 | session_write_close(); |
| 69 | session_name("i3GeoLogin"); | 69 | session_name("i3GeoLogin"); |
| @@ -180,7 +180,7 @@ switch (strtoupper($funcao)) | @@ -180,7 +180,7 @@ switch (strtoupper($funcao)) | ||
| 180 | break; | 180 | break; |
| 181 | } | 181 | } |
| 182 | function alterarSenha($usuario,$novaSenha){ | 182 | function alterarSenha($usuario,$novaSenha){ |
| 183 | - include(__DIR__."/conexao.php"); | 183 | + include(dirname(__FILE__)."/conexao.php"); |
| 184 | $dados = pegaDados("select * from ".$esquemaadmin."i3geousr_usuarios where senha = '".md5($_SESSION["senha"])."' and login = '$usuario' and ativo = 1",$locaplic); | 184 | $dados = pegaDados("select * from ".$esquemaadmin."i3geousr_usuarios where senha = '".md5($_SESSION["senha"])."' and login = '$usuario' and ativo = 1",$locaplic); |
| 185 | if(count($dados) > 0){ | 185 | if(count($dados) > 0){ |
| 186 | $dbhw->query("UPDATE ".$esquemaadmin."i3geousr_usuarios SET senha='".md5($novaSenha)."' WHERE login = '$usuario'"); | 186 | $dbhw->query("UPDATE ".$esquemaadmin."i3geousr_usuarios SET senha='".md5($novaSenha)."' WHERE login = '$usuario'"); |
| @@ -196,7 +196,7 @@ function alterarSenha($usuario,$novaSenha){ | @@ -196,7 +196,7 @@ function alterarSenha($usuario,$novaSenha){ | ||
| 196 | } | 196 | } |
| 197 | } | 197 | } |
| 198 | function recuperarSenha($usuario){ | 198 | function recuperarSenha($usuario){ |
| 199 | - include(__DIR__."/conexao.php"); | 199 | + include(dirname(__FILE__)."/conexao.php"); |
| 200 | $novaSenha = rand(9000,1000000); | 200 | $novaSenha = rand(9000,1000000); |
| 201 | $dados = pegaDados("select * from ".$esquemaadmin."i3geousr_usuarios where login = '$usuario' and ativo = 1",$locaplic); | 201 | $dados = pegaDados("select * from ".$esquemaadmin."i3geousr_usuarios where login = '$usuario' and ativo = 1",$locaplic); |
| 202 | if(count($dados) > 0){ | 202 | if(count($dados) > 0){ |
| @@ -263,7 +263,7 @@ function validaSessao(){ | @@ -263,7 +263,7 @@ function validaSessao(){ | ||
| 263 | //registra as operacoes, papeis e grupos do usuario na SESSION | 263 | //registra as operacoes, papeis e grupos do usuario na SESSION |
| 264 | // | 264 | // |
| 265 | function autenticaUsuario($usuario,$senha){ | 265 | function autenticaUsuario($usuario,$senha){ |
| 266 | - include(__DIR__."/conexao.php"); | 266 | + include(dirname(__FILE__)."/conexao.php"); |
| 267 | $senhamd5 = md5($senha); | 267 | $senhamd5 = md5($senha); |
| 268 | //verifica se o usuario esta cadastrado no ms_configura.php em $i3geomaster | 268 | //verifica se o usuario esta cadastrado no ms_configura.php em $i3geomaster |
| 269 | if(verificaMaster($usuario,$senha) == true){ | 269 | if(verificaMaster($usuario,$senha) == true){ |
admin/php/mapas.php
| @@ -40,7 +40,7 @@ Cada opera&ccedil;&atilde;o possu&iacute; seus próprios par&acirc;metros, que de | @@ -40,7 +40,7 @@ Cada opera&ccedil;&atilde;o possu&iacute; seus próprios par&acirc;metros, que de | ||
| 40 | 40 | ||
| 41 | */ | 41 | */ |
| 42 | 42 | ||
| 43 | -include_once(__DIR__."/login.php"); | 43 | +include_once(dirname(__FILE__)."/login.php"); |
| 44 | $funcoesEdicao = array( | 44 | $funcoesEdicao = array( |
| 45 | "ALTERARMAPA", | 45 | "ALTERARMAPA", |
| 46 | "EXCLUIRMAPA", | 46 | "EXCLUIRMAPA", |
admin/php/menutemas.php
| @@ -42,8 +42,8 @@ Cada opera&ccedil;&atilde;o possu&iacute; seus proprios par&acirc;metros, que de | @@ -42,8 +42,8 @@ Cada opera&ccedil;&atilde;o possu&iacute; seus proprios par&acirc;metros, que de | ||
| 42 | 42 | ||
| 43 | */ | 43 | */ |
| 44 | 44 | ||
| 45 | -include_once(__DIR__."/admin.php"); | ||
| 46 | -include_once(__DIR__."/login.php"); | 45 | +include_once(dirname(__FILE__)."/admin.php"); |
| 46 | +include_once(dirname(__FILE__)."/login.php"); | ||
| 47 | $funcoesEdicao = array( | 47 | $funcoesEdicao = array( |
| 48 | "ALTERAMENUS", | 48 | "ALTERAMENUS", |
| 49 | "ALTERAGRUPOS", | 49 | "ALTERAGRUPOS", |
| @@ -1111,7 +1111,7 @@ function registraTema() | @@ -1111,7 +1111,7 @@ function registraTema() | ||
| 1111 | function alteraTemas() | 1111 | function alteraTemas() |
| 1112 | { | 1112 | { |
| 1113 | global $esquemaadmin,$nome,$desc,$id,$codigo,$tipoa,$download,$ogc,$kml,$link,$tags,$kmz,$locaplic,$es,$it,$en; | 1113 | global $esquemaadmin,$nome,$desc,$id,$codigo,$tipoa,$download,$ogc,$kml,$link,$tags,$kmz,$locaplic,$es,$it,$en; |
| 1114 | - //error_reporting(E_ALL); | 1114 | + //error_reporting(0); |
| 1115 | try | 1115 | try |
| 1116 | { | 1116 | { |
| 1117 | $retorna = "ok"; | 1117 | $retorna = "ok"; |
admin/php/metaestat.php
| @@ -36,9 +36,9 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | @@ -36,9 +36,9 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | ||
| 36 | 36 | ||
| 37 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. | 37 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. |
| 38 | */ | 38 | */ |
| 39 | -include_once(__DIR__."/admin.php"); | 39 | +include_once(dirname(__FILE__)."/admin.php"); |
| 40 | 40 | ||
| 41 | -include_once(__DIR__."/login.php"); | 41 | +include_once(dirname(__FILE__)."/login.php"); |
| 42 | //lista de funcoes que passam pela validacao de login | 42 | //lista de funcoes que passam pela validacao de login |
| 43 | $funcoesEdicao = array( | 43 | $funcoesEdicao = array( |
| 44 | "ALTERAMAPAGRUPO", | 44 | "ALTERAMAPAGRUPO", |
| @@ -93,7 +93,7 @@ if(in_array(strtoupper($funcao),$funcoesEdicao)){ | @@ -93,7 +93,7 @@ if(in_array(strtoupper($funcao),$funcoesEdicao)){ | ||
| 93 | retornaJSON("Vc nao pode realizar essa operacao.");exit; | 93 | retornaJSON("Vc nao pode realizar essa operacao.");exit; |
| 94 | } | 94 | } |
| 95 | } | 95 | } |
| 96 | -include(__DIR__."/classe_metaestat.php"); | 96 | +include(dirname(__FILE__)."/classe_metaestat.php"); |
| 97 | error_reporting(0); | 97 | error_reporting(0); |
| 98 | //faz a busca da função que deve ser executada | 98 | //faz a busca da função que deve ser executada |
| 99 | switch (strtoupper($funcao)) | 99 | switch (strtoupper($funcao)) |
| @@ -297,7 +297,7 @@ switch (strtoupper($funcao)) | @@ -297,7 +297,7 @@ switch (strtoupper($funcao)) | ||
| 297 | //a pasta com alista e definida na variavel $metaestatTemplates localizada no ms_configura.php | 297 | //a pasta com alista e definida na variavel $metaestatTemplates localizada no ms_configura.php |
| 298 | case "LISTATEMPLATESMAPA": | 298 | case "LISTATEMPLATESMAPA": |
| 299 | if(empty($metaestatTemplates)){ | 299 | if(empty($metaestatTemplates)){ |
| 300 | - $d = __DIR__."/../../ferramentas/metaestat/templates"; | 300 | + $d = dirname(__FILE__)."/../../ferramentas/metaestat/templates"; |
| 301 | } | 301 | } |
| 302 | else{ | 302 | else{ |
| 303 | $d = $locaplic.$metaestatTemplates; | 303 | $d = $locaplic.$metaestatTemplates; |
| @@ -311,7 +311,7 @@ switch (strtoupper($funcao)) | @@ -311,7 +311,7 @@ switch (strtoupper($funcao)) | ||
| 311 | //a pasta com alista e definida na variavel $metaestatTemplates/logos localizada no ms_configura.php | 311 | //a pasta com alista e definida na variavel $metaestatTemplates/logos localizada no ms_configura.php |
| 312 | case "LISTALOGOSMAPA": | 312 | case "LISTALOGOSMAPA": |
| 313 | if(empty($metaestatTemplates)){ | 313 | if(empty($metaestatTemplates)){ |
| 314 | - $metaestatTemplates = __DIR__."/../../ferramentas/metaestat/templates"; | 314 | + $metaestatTemplates = dirname(__FILE__)."/../../ferramentas/metaestat/templates"; |
| 315 | } | 315 | } |
| 316 | else{ | 316 | else{ |
| 317 | $metaestatTemplates = $locaplic.$metaestatTemplates; | 317 | $metaestatTemplates = $locaplic.$metaestatTemplates; |
| @@ -1075,7 +1075,7 @@ switch (strtoupper($funcao)) | @@ -1075,7 +1075,7 @@ switch (strtoupper($funcao)) | ||
| 1075 | echo($m->formataXML($dados)); | 1075 | echo($m->formataXML($dados)); |
| 1076 | } | 1076 | } |
| 1077 | if($formato == "csv"){ | 1077 | if($formato == "csv"){ |
| 1078 | - require_once(__DIR__."/../../pacotes/parsecsv/parsecsv.lib.php"); | 1078 | + require_once(dirname(__FILE__)."/../../pacotes/parsecsv/parsecsv.lib.php"); |
| 1079 | $csv = new parseCSV(); | 1079 | $csv = new parseCSV(); |
| 1080 | $csv->titles = array_keys($dados[0]); | 1080 | $csv->titles = array_keys($dados[0]); |
| 1081 | $csv->output(true, 'mvar'.$id_medida_variavel.'_'.date('dmY').'.csv', $dados); | 1081 | $csv->output(true, 'mvar'.$id_medida_variavel.'_'.date('dmY').'.csv', $dados); |
| @@ -1149,11 +1149,11 @@ switch (strtoupper($funcao)) | @@ -1149,11 +1149,11 @@ switch (strtoupper($funcao)) | ||
| 1149 | $_REQUEST["typename"] = $r["layer"]; | 1149 | $_REQUEST["typename"] = $r["layer"]; |
| 1150 | $_REQUEST["request"] = $formato; | 1150 | $_REQUEST["request"] = $formato; |
| 1151 | //$_REQUEST["service"] = "icon"; | 1151 | //$_REQUEST["service"] = "icon"; |
| 1152 | - include (__DIR__."/../../pacotes/kmlmapserver/classes/kmlserver.class.php"); | 1152 | + include (dirname(__FILE__)."/../../pacotes/kmlmapserver/classes/kmlserver.class.php"); |
| 1153 | $server = new KmlServer(); | 1153 | $server = new KmlServer(); |
| 1154 | }else{//3d com tme | 1154 | }else{//3d com tme |
| 1155 | if(!isset($dir_tmp)){ | 1155 | if(!isset($dir_tmp)){ |
| 1156 | - include(__DIR__."/../../ms_configura.php"); | 1156 | + include(dirname(__FILE__)."/../../ms_configura.php"); |
| 1157 | } | 1157 | } |
| 1158 | $verificaSID = false; | 1158 | $verificaSID = false; |
| 1159 | $mv = $m->listaMedidaVariavel("",$id_medida_variavel); | 1159 | $mv = $m->listaMedidaVariavel("",$id_medida_variavel); |
| @@ -1178,7 +1178,7 @@ switch (strtoupper($funcao)) | @@ -1178,7 +1178,7 @@ switch (strtoupper($funcao)) | ||
| 1178 | 'dirtmp' => $dir_tmp, | 1178 | 'dirtmp' => $dir_tmp, |
| 1179 | 'barSize'=> 5000 | 1179 | 'barSize'=> 5000 |
| 1180 | ); | 1180 | ); |
| 1181 | - include (__DIR__."/../../pacotes/tme/TME_i3geo.php"); | 1181 | + include (dirname(__FILE__)."/../../pacotes/tme/TME_i3geo.php"); |
| 1182 | } | 1182 | } |
| 1183 | exit; | 1183 | exit; |
| 1184 | break; | 1184 | break; |
| @@ -1333,7 +1333,7 @@ switch (strtoupper($funcao)) | @@ -1333,7 +1333,7 @@ switch (strtoupper($funcao)) | ||
| 1333 | } | 1333 | } |
| 1334 | if($formato == "csv"){ | 1334 | if($formato == "csv"){ |
| 1335 | $dados = $m->obtemDadosTabelaDB($codigo_estat_conexao,$nome_esquema,$nome_tabela,$geo,$nreg); | 1335 | $dados = $m->obtemDadosTabelaDB($codigo_estat_conexao,$nome_esquema,$nome_tabela,$geo,$nreg); |
| 1336 | - require_once(__DIR__."/../../pacotes/parsecsv/parsecsv.lib.php"); | 1336 | + require_once(dirname(__FILE__)."/../../pacotes/parsecsv/parsecsv.lib.php"); |
| 1337 | $csv = new parseCSV(); | 1337 | $csv = new parseCSV(); |
| 1338 | //$csv->encoding('UTF-16', 'UTF-8'); | 1338 | //$csv->encoding('UTF-16', 'UTF-8'); |
| 1339 | $csv->titles = $dados["nomescolunas"]; | 1339 | $csv->titles = $dados["nomescolunas"]; |
| @@ -1427,7 +1427,7 @@ switch (strtoupper($funcao)) | @@ -1427,7 +1427,7 @@ switch (strtoupper($funcao)) | ||
| 1427 | case "REGIAO2SHP": | 1427 | case "REGIAO2SHP": |
| 1428 | $m = new Metaestat(); | 1428 | $m = new Metaestat(); |
| 1429 | $shp = $m->regiao2shp($codigo_tipo_regiao); | 1429 | $shp = $m->regiao2shp($codigo_tipo_regiao); |
| 1430 | - include(__DIR__."/../../pacotes/kmlmapserver/classes/zip.class.php"); | 1430 | + include(dirname(__FILE__)."/../../pacotes/kmlmapserver/classes/zip.class.php"); |
| 1431 | 1431 | ||
| 1432 | $handle = fopen($shp.".shp", "r"); | 1432 | $handle = fopen($shp.".shp", "r"); |
| 1433 | $contentsshp = fread($handle, filesize($shp.".shp")); | 1433 | $contentsshp = fread($handle, filesize($shp.".shp")); |
admin/php/metaestat_mapa_uploadimagem.php
| @@ -8,7 +8,7 @@ include_once("login.php"); | @@ -8,7 +8,7 @@ include_once("login.php"); | ||
| 8 | if(verificaOperacaoSessao("admin/metaestat/geral") == false){ | 8 | if(verificaOperacaoSessao("admin/metaestat/geral") == false){ |
| 9 | echo "Vc nao pode realizar essa operacao.";exit; | 9 | echo "Vc nao pode realizar essa operacao.";exit; |
| 10 | } | 10 | } |
| 11 | -error_reporting(E_ALL); | 11 | +error_reporting(0); |
| 12 | ?> | 12 | ?> |
| 13 | <html> | 13 | <html> |
| 14 | <head> | 14 | <head> |
admin/php/metaestat_uploaddados_submit.php
| 1 | <?php | 1 | <?php |
| 2 | $colunasarquivo = ""; | 2 | $colunasarquivo = ""; |
| 3 | $nomearquivoserv = ""; | 3 | $nomearquivoserv = ""; |
| 4 | -error_reporting(E_ALL); | 4 | +error_reporting(0); |
| 5 | if (isset($_FILES['i3GEOuploadArquivo']['name'])) | 5 | if (isset($_FILES['i3GEOuploadArquivo']['name'])) |
| 6 | { | 6 | { |
| 7 | - require_once (__DIR__."/../../ms_configura.php"); | 7 | + require_once (dirname(__FILE__)."/../../ms_configura.php"); |
| 8 | $Arquivoup = $_FILES['i3GEOuploadArquivo']['tmp_name']; | 8 | $Arquivoup = $_FILES['i3GEOuploadArquivo']['tmp_name']; |
| 9 | $nomearquivoserv = $dir_tmp."/upload".basename($Arquivoup); | 9 | $nomearquivoserv = $dir_tmp."/upload".basename($Arquivoup); |
| 10 | //echo $nomearquivoserv; | 10 | //echo $nomearquivoserv; |
admin/php/metaestat_uploadshp_submit.php
| @@ -7,7 +7,7 @@ include_once("login.php"); | @@ -7,7 +7,7 @@ include_once("login.php"); | ||
| 7 | if(verificaOperacaoSessao("admin/metaestat/editorbanco") == false){ | 7 | if(verificaOperacaoSessao("admin/metaestat/editorbanco") == false){ |
| 8 | echo "Vc nao pode realizar essa operacao.";exit; | 8 | echo "Vc nao pode realizar essa operacao.";exit; |
| 9 | } | 9 | } |
| 10 | -error_reporting(E_ALL); | 10 | +error_reporting(0); |
| 11 | ?> | 11 | ?> |
| 12 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | 12 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 13 | <html> | 13 | <html> |
admin/php/ogcws.php
| @@ -37,11 +37,11 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | @@ -37,11 +37,11 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | ||
| 37 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. | 37 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. |
| 38 | 38 | ||
| 39 | */ | 39 | */ |
| 40 | -include_once(__DIR__."/login.php"); | 40 | +include_once(dirname(__FILE__)."/login.php"); |
| 41 | if(verificaOperacaoSessao("admin/html/ogcws") == false){ | 41 | if(verificaOperacaoSessao("admin/html/ogcws") == false){ |
| 42 | retornaJSON("Vc nao pode realizar essa operacao.");exit; | 42 | retornaJSON("Vc nao pode realizar essa operacao.");exit; |
| 43 | } | 43 | } |
| 44 | -//error_reporting(E_ALL); | 44 | +//error_reporting(0); |
| 45 | $versao = versao(); | 45 | $versao = versao(); |
| 46 | $map_file = $locaplic."/aplicmap/ogcwsv".$versao["principal"].".map"; | 46 | $map_file = $locaplic."/aplicmap/ogcwsv".$versao["principal"].".map"; |
| 47 | $mapa = ms_newMapObj($map_file); | 47 | $mapa = ms_newMapObj($map_file); |
admin/php/operacoes.php
| @@ -62,7 +62,7 @@ error_reporting(0); | @@ -62,7 +62,7 @@ error_reporting(0); | ||
| 62 | // | 62 | // |
| 63 | //pega as variaveis passadas com get ou post | 63 | //pega as variaveis passadas com get ou post |
| 64 | // | 64 | // |
| 65 | -include_once(__DIR__."/login.php"); | 65 | +include_once(dirname(__FILE__)."/login.php"); |
| 66 | $funcoesEdicao = array( | 66 | $funcoesEdicao = array( |
| 67 | "ALTERAROPERACOES", | 67 | "ALTERAROPERACOES", |
| 68 | "ADICIONAPAPELOPERACOES", | 68 | "ADICIONAPAPELOPERACOES", |
| @@ -117,7 +117,7 @@ function alterarOperacoes() | @@ -117,7 +117,7 @@ function alterarOperacoes() | ||
| 117 | global $id_operacao,$codigo,$descricao; | 117 | global $id_operacao,$codigo,$descricao; |
| 118 | try | 118 | try |
| 119 | { | 119 | { |
| 120 | - include(__DIR__."/conexao.php"); | 120 | + include(dirname(__FILE__)."/conexao.php"); |
| 121 | if($convUTF){ | 121 | if($convUTF){ |
| 122 | $descricao = utf8_encode($descricao); | 122 | $descricao = utf8_encode($descricao); |
| 123 | } | 123 | } |
| @@ -146,7 +146,7 @@ function adicionaPapelOperacoes(){ | @@ -146,7 +146,7 @@ function adicionaPapelOperacoes(){ | ||
| 146 | global $id_operacao,$id_papel; | 146 | global $id_operacao,$id_papel; |
| 147 | try | 147 | try |
| 148 | { | 148 | { |
| 149 | - include(__DIR__."/conexao.php"); | 149 | + include(dirname(__FILE__)."/conexao.php"); |
| 150 | $dbhw->query("INSERT INTO ".$esquemaadmin."i3geousr_operacoespapeis (id_operacao,id_papel) VALUES ($id_operacao,$id_papel)"); | 150 | $dbhw->query("INSERT INTO ".$esquemaadmin."i3geousr_operacoespapeis (id_operacao,id_papel) VALUES ($id_operacao,$id_papel)"); |
| 151 | $dbhw = null; | 151 | $dbhw = null; |
| 152 | $dbh = null; | 152 | $dbh = null; |
| @@ -160,7 +160,7 @@ function excluirPapelOperacao(){ | @@ -160,7 +160,7 @@ function excluirPapelOperacao(){ | ||
| 160 | global $id_operacao,$id_papel; | 160 | global $id_operacao,$id_papel; |
| 161 | try | 161 | try |
| 162 | { | 162 | { |
| 163 | - include(__DIR__."/conexao.php"); | 163 | + include(dirname(__FILE__)."/conexao.php"); |
| 164 | $dbhw->query("DELETE from ".$esquemaadmin."i3geousr_operacoespapeis WHERE id_operacao = $id_operacao AND id_papel = $id_papel"); | 164 | $dbhw->query("DELETE from ".$esquemaadmin."i3geousr_operacoespapeis WHERE id_operacao = $id_operacao AND id_papel = $id_papel"); |
| 165 | $dbhw = null; | 165 | $dbhw = null; |
| 166 | $dbh = null; | 166 | $dbh = null; |
admin/php/sistemas.php
| @@ -38,7 +38,7 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | @@ -38,7 +38,7 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | ||
| 38 | 38 | ||
| 39 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. | 39 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. |
| 40 | */ | 40 | */ |
| 41 | -include_once(__DIR__."/login.php"); | 41 | +include_once(dirname(__FILE__)."/login.php"); |
| 42 | $funcoesEdicao = array( | 42 | $funcoesEdicao = array( |
| 43 | "ALTERARSISTEMAS", | 43 | "ALTERARSISTEMAS", |
| 44 | "ALTERARFUNCOES", | 44 | "ALTERARFUNCOES", |
admin/php/upgradebanco44_45.php
| @@ -61,7 +61,7 @@ else{ | @@ -61,7 +61,7 @@ else{ | ||
| 61 | exit; | 61 | exit; |
| 62 | } | 62 | } |
| 63 | } | 63 | } |
| 64 | -error_reporting(E_ALL); | 64 | +error_reporting(0); |
| 65 | $tabelas = array( | 65 | $tabelas = array( |
| 66 | "CREATE TABLE i3geoadmin_comentarios (comentario TEXT, data TEXT, openidnome TEXT, openidimagem TEXT, openidservico TEXT, openidusuario TEXT, openidurl TEXT, id_tema NUMERIC)", | 66 | "CREATE TABLE i3geoadmin_comentarios (comentario TEXT, data TEXT, openidnome TEXT, openidimagem TEXT, openidservico TEXT, openidusuario TEXT, openidurl TEXT, id_tema NUMERIC)", |
| 67 | "CREATE TABLE i3geoadmin_acessostema (codigo_tema TEXT, nacessos NUMERIC,dia NUMERIC, mes NUMERIC, ano NUMERIC)" | 67 | "CREATE TABLE i3geoadmin_acessostema (codigo_tema TEXT, nacessos NUMERIC,dia NUMERIC, mes NUMERIC, ano NUMERIC)" |
admin/php/upgradebanco46_47.php
| @@ -49,7 +49,7 @@ Arquivo: | @@ -49,7 +49,7 @@ Arquivo: | ||
| 49 | i3geo/admin/php/criabanco.php | 49 | i3geo/admin/php/criabanco.php |
| 50 | */ | 50 | */ |
| 51 | $funcao = ""; | 51 | $funcao = ""; |
| 52 | -$locaplic = __DIR__."/../.."; | 52 | +$locaplic = dirname(__FILE__)."/../.."; |
| 53 | include_once("admin.php"); | 53 | include_once("admin.php"); |
| 54 | include_once("conexao.php"); | 54 | include_once("conexao.php"); |
| 55 | if(!empty($esquemaadmin)){ | 55 | if(!empty($esquemaadmin)){ |
| @@ -67,7 +67,7 @@ else{ | @@ -67,7 +67,7 @@ else{ | ||
| 67 | exit; | 67 | exit; |
| 68 | } | 68 | } |
| 69 | } | 69 | } |
| 70 | -error_reporting(E_ALL); | 70 | +error_reporting(0); |
| 71 | //tabelas do controle de usuarios e sistema metaestat | 71 | //tabelas do controle de usuarios e sistema metaestat |
| 72 | $tabelas = array( | 72 | $tabelas = array( |
| 73 | "ALTER TABLE ".$esquemaadmin."i3geoadmin_mapas ADD mapfile TEXT", | 73 | "ALTER TABLE ".$esquemaadmin."i3geoadmin_mapas ADD mapfile TEXT", |
admin/php/uploadgvp.php
| @@ -4,7 +4,7 @@ include_once("login.php"); | @@ -4,7 +4,7 @@ include_once("login.php"); | ||
| 4 | if(verificaOperacaoSessao("admin/metaestat/geral") == false){ | 4 | if(verificaOperacaoSessao("admin/metaestat/geral") == false){ |
| 5 | echo "Vc nao pode realizar essa operacao.";exit; | 5 | echo "Vc nao pode realizar essa operacao.";exit; |
| 6 | } | 6 | } |
| 7 | -error_reporting(E_ALL); | 7 | +error_reporting(0); |
| 8 | ?> | 8 | ?> |
| 9 | <html> | 9 | <html> |
| 10 | <head> | 10 | <head> |
admin/php/usuarios.php
| @@ -62,7 +62,7 @@ error_reporting(0); | @@ -62,7 +62,7 @@ error_reporting(0); | ||
| 62 | // | 62 | // |
| 63 | //pega as variaveis passadas com get ou post | 63 | //pega as variaveis passadas com get ou post |
| 64 | // | 64 | // |
| 65 | -include_once(__DIR__."/login.php"); | 65 | +include_once(dirname(__FILE__)."/login.php"); |
| 66 | $funcoesEdicao = array( | 66 | $funcoesEdicao = array( |
| 67 | "ALTERARUSUARIOS", | 67 | "ALTERARUSUARIOS", |
| 68 | "EXCLUIRUSUARIO" | 68 | "EXCLUIRUSUARIO" |
| @@ -131,7 +131,7 @@ switch (strtoupper($funcao)) | @@ -131,7 +131,7 @@ switch (strtoupper($funcao)) | ||
| 131 | cpjson($retorno); | 131 | cpjson($retorno); |
| 132 | function enviarSenhaEmail(){ | 132 | function enviarSenhaEmail(){ |
| 133 | global $id_usuario; | 133 | global $id_usuario; |
| 134 | - include(__DIR__."/conexao.php"); | 134 | + include(dirname(__FILE__)."/conexao.php"); |
| 135 | $novaSenha = rand(9000,1000000); | 135 | $novaSenha = rand(9000,1000000); |
| 136 | $dados = pegaDados("select * from ".$esquemaadmin."i3geousr_usuarios where id_usuario = $id_usuario and ativo = 1"); | 136 | $dados = pegaDados("select * from ".$esquemaadmin."i3geousr_usuarios where id_usuario = $id_usuario and ativo = 1"); |
| 137 | if(count($dados) > 0){ | 137 | if(count($dados) > 0){ |
| @@ -152,7 +152,7 @@ function alterarUsuarios() | @@ -152,7 +152,7 @@ function alterarUsuarios() | ||
| 152 | global $id_usuario,$ativo,$data_cadastro,$email,$login,$nome_usuario,$senha; | 152 | global $id_usuario,$ativo,$data_cadastro,$email,$login,$nome_usuario,$senha; |
| 153 | try | 153 | try |
| 154 | { | 154 | { |
| 155 | - include(__DIR__."/conexao.php"); | 155 | + include(dirname(__FILE__)."/conexao.php"); |
| 156 | if($convUTF){ | 156 | if($convUTF){ |
| 157 | $nome_usuario = utf8_encode($nome_usuario); | 157 | $nome_usuario = utf8_encode($nome_usuario); |
| 158 | } | 158 | } |
| @@ -197,7 +197,7 @@ function adicionaPapelUsuario(){ | @@ -197,7 +197,7 @@ function adicionaPapelUsuario(){ | ||
| 197 | global $id_usuario,$id_papel; | 197 | global $id_usuario,$id_papel; |
| 198 | try | 198 | try |
| 199 | { | 199 | { |
| 200 | - include(__DIR__."/conexao.php"); | 200 | + include(dirname(__FILE__)."/conexao.php"); |
| 201 | $dbhw->query("INSERT INTO ".$esquemaadmin."i3geousr_papelusuario (id_usuario,id_papel) VALUES ($id_usuario,$id_papel)"); | 201 | $dbhw->query("INSERT INTO ".$esquemaadmin."i3geousr_papelusuario (id_usuario,id_papel) VALUES ($id_usuario,$id_papel)"); |
| 202 | $dbhw = null; | 202 | $dbhw = null; |
| 203 | $dbh = null; | 203 | $dbh = null; |
| @@ -212,7 +212,7 @@ function excluirUsuario() | @@ -212,7 +212,7 @@ function excluirUsuario() | ||
| 212 | global $id_usuario; | 212 | global $id_usuario; |
| 213 | try | 213 | try |
| 214 | { | 214 | { |
| 215 | - include(__DIR__."/conexao.php"); | 215 | + include(dirname(__FILE__)."/conexao.php"); |
| 216 | //echo "DELETE from ".$esquemaadmin."i3geousr_usuarios WHERE id_usuario = $id_usuario";exit; | 216 | //echo "DELETE from ".$esquemaadmin."i3geousr_usuarios WHERE id_usuario = $id_usuario";exit; |
| 217 | $dbhw->query("DELETE FROM ".$esquemaadmin."i3geousr_usuarios WHERE id_usuario = $id_usuario "); | 217 | $dbhw->query("DELETE FROM ".$esquemaadmin."i3geousr_usuarios WHERE id_usuario = $id_usuario "); |
| 218 | $dbhw = null; | 218 | $dbhw = null; |
| @@ -229,7 +229,7 @@ function excluirPapelUsuario() | @@ -229,7 +229,7 @@ function excluirPapelUsuario() | ||
| 229 | global $id_usuario,$id_papel; | 229 | global $id_usuario,$id_papel; |
| 230 | try | 230 | try |
| 231 | { | 231 | { |
| 232 | - include(__DIR__."/conexao.php"); | 232 | + include(dirname(__FILE__)."/conexao.php"); |
| 233 | //echo "DELETE from ".$esquemaadmin."i3geousr_usuarios WHERE id_usuario = $id_usuario";exit; | 233 | //echo "DELETE from ".$esquemaadmin."i3geousr_usuarios WHERE id_usuario = $id_usuario";exit; |
| 234 | $dbhw->query("DELETE FROM ".$esquemaadmin."i3geousr_papelusuario WHERE id_usuario = $id_usuario AND id_papel = $id_papel "); | 234 | $dbhw->query("DELETE FROM ".$esquemaadmin."i3geousr_papelusuario WHERE id_usuario = $id_usuario AND id_papel = $id_papel "); |
| 235 | $dbhw = null; | 235 | $dbhw = null; |
admin/php/webservices.php
| @@ -44,7 +44,7 @@ error_reporting(0); | @@ -44,7 +44,7 @@ error_reporting(0); | ||
| 44 | //não sei pq mas ob_start e clean são necessários no Linux para não gerar erro indesejado | 44 | //não sei pq mas ob_start e clean são necessários no Linux para não gerar erro indesejado |
| 45 | // | 45 | // |
| 46 | ob_start(); | 46 | ob_start(); |
| 47 | -include_once(__DIR__."/login.php"); | 47 | +include_once(dirname(__FILE__)."/login.php"); |
| 48 | $funcoesEdicao = array( | 48 | $funcoesEdicao = array( |
| 49 | "ALTERARWS", | 49 | "ALTERARWS", |
| 50 | "EXCLUIR" | 50 | "EXCLUIR" |
admin/php/xml.php
| @@ -38,7 +38,7 @@ i3geo/admin/php/xml.php | @@ -38,7 +38,7 @@ i3geo/admin/php/xml.php | ||
| 38 | //essa variável precisa ter um . no final quando não for vazia, evitando erros na inclusão dentro dos SQLs | 38 | //essa variável precisa ter um . no final quando não for vazia, evitando erros na inclusão dentro dos SQLs |
| 39 | // | 39 | // |
| 40 | if (!isset($esquemaadmin)){ | 40 | if (!isset($esquemaadmin)){ |
| 41 | - include_once(__DIR__."/../../ms_configura.php"); | 41 | + include_once(dirname(__FILE__)."/../../ms_configura.php"); |
| 42 | } | 42 | } |
| 43 | if(!empty($esquemaadmin)){ | 43 | if(!empty($esquemaadmin)){ |
| 44 | $esquemaadmin = str_replace(".","",$esquemaadmin)."."; | 44 | $esquemaadmin = str_replace(".","",$esquemaadmin)."."; |
| @@ -575,7 +575,7 @@ function geraXmlIdentifica($perfil,$locaplic,$editores) | @@ -575,7 +575,7 @@ function geraXmlIdentifica($perfil,$locaplic,$editores) | ||
| 575 | if($target == ""){$target = "_self";} | 575 | if($target == ""){$target = "_self";} |
| 576 | $xml .= " <TARGET>".$target."</TARGET>\n"; | 576 | $xml .= " <TARGET>".$target."</TARGET>\n"; |
| 577 | $xml .= " </FUNCAO>\n"; | 577 | $xml .= " </FUNCAO>\n"; |
| 578 | - }error_reporting(E_ALL); | 578 | + }error_reporting(0); |
| 579 | } | 579 | } |
| 580 | $xml .= "</SISTEMAS>\n"; | 580 | $xml .= "</SISTEMAS>\n"; |
| 581 | $dbh = null; | 581 | $dbh = null; |
admin/rsscomentariostemas.php
| @@ -39,7 +39,7 @@ i3geo/admin/rsscomentariostemas.php | @@ -39,7 +39,7 @@ i3geo/admin/rsscomentariostemas.php | ||
| 39 | 39 | ||
| 40 | error_reporting(0); | 40 | error_reporting(0); |
| 41 | if(!isset($locaplic)){ | 41 | if(!isset($locaplic)){ |
| 42 | - include(__DIR__."/../ms_configura.php"); | 42 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 43 | } | 43 | } |
| 44 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 44 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 45 | include_once($locaplic."/admin/php/xml.php"); | 45 | include_once($locaplic."/admin/php/xml.php"); |
admin/rssgrupos.php
| @@ -34,7 +34,7 @@ i3geo/admin/rssgrupos.php | @@ -34,7 +34,7 @@ i3geo/admin/rssgrupos.php | ||
| 34 | */ | 34 | */ |
| 35 | error_reporting(0); | 35 | error_reporting(0); |
| 36 | if(!isset($locaplic)){ | 36 | if(!isset($locaplic)){ |
| 37 | - include(__DIR__."/../ms_configura.php"); | 37 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 38 | } | 38 | } |
| 39 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 39 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 40 | include_once($locaplic."/admin/php/xml.php"); | 40 | include_once($locaplic."/admin/php/xml.php"); |
admin/rsssubgrupos.php
| @@ -40,7 +40,7 @@ i3geo/admin/rsssubgrupos.php | @@ -40,7 +40,7 @@ i3geo/admin/rsssubgrupos.php | ||
| 40 | */ | 40 | */ |
| 41 | error_reporting(0); | 41 | error_reporting(0); |
| 42 | if(!isset($locaplic)){ | 42 | if(!isset($locaplic)){ |
| 43 | - include(__DIR__."/../ms_configura.php"); | 43 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 44 | } | 44 | } |
| 45 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 45 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 46 | include_once($locaplic."/admin/php/xml.php"); | 46 | include_once($locaplic."/admin/php/xml.php"); |
admin/rsstemas.php
| @@ -40,7 +40,7 @@ i3geo/admin/rsstemas.php | @@ -40,7 +40,7 @@ i3geo/admin/rsstemas.php | ||
| 40 | */ | 40 | */ |
| 41 | error_reporting(0); | 41 | error_reporting(0); |
| 42 | if(!isset($locaplic)){ | 42 | if(!isset($locaplic)){ |
| 43 | - include(__DIR__."/../ms_configura.php"); | 43 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 44 | } | 44 | } |
| 45 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 45 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 46 | include_once($locaplic."/admin/php/xml.php"); | 46 | include_once($locaplic."/admin/php/xml.php"); |
admin/rsstemasdownload.php
| @@ -37,7 +37,7 @@ i3geo/admin/rsstemasdownload.php | @@ -37,7 +37,7 @@ i3geo/admin/rsstemasdownload.php | ||
| 37 | 37 | ||
| 38 | error_reporting(0); | 38 | error_reporting(0); |
| 39 | if(!isset($locaplic)){ | 39 | if(!isset($locaplic)){ |
| 40 | - include(__DIR__."/../ms_configura.php"); | 40 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 41 | } | 41 | } |
| 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 43 | include_once($locaplic."/admin/php/xml.php"); | 43 | include_once($locaplic."/admin/php/xml.php"); |
admin/rsstemaskml.php
| @@ -37,7 +37,7 @@ i3geo/admin/rsstemaskml.php | @@ -37,7 +37,7 @@ i3geo/admin/rsstemaskml.php | ||
| 37 | 37 | ||
| 38 | error_reporting(0); | 38 | error_reporting(0); |
| 39 | if(!isset($locaplic)){ | 39 | if(!isset($locaplic)){ |
| 40 | - include(__DIR__."/../ms_configura.php"); | 40 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 41 | } | 41 | } |
| 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 43 | include_once($locaplic."/admin/php/xml.php"); | 43 | include_once($locaplic."/admin/php/xml.php"); |
admin/rsstemasogc.php
| @@ -36,7 +36,7 @@ i3geo/admin/rsstemasogc.php | @@ -36,7 +36,7 @@ i3geo/admin/rsstemasogc.php | ||
| 36 | */ | 36 | */ |
| 37 | error_reporting(0); | 37 | error_reporting(0); |
| 38 | if(!isset($locaplic)){ | 38 | if(!isset($locaplic)){ |
| 39 | - include(__DIR__."/../ms_configura.php"); | 39 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 40 | } | 40 | } |
| 41 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 41 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 42 | include_once($locaplic."/admin/php/xml.php"); | 42 | include_once($locaplic."/admin/php/xml.php"); |
admin/rsstemasraiz.php
| @@ -42,7 +42,7 @@ i3geo/admin/rsstemasraiz.php | @@ -42,7 +42,7 @@ i3geo/admin/rsstemasraiz.php | ||
| 42 | */ | 42 | */ |
| 43 | error_reporting(0); | 43 | error_reporting(0); |
| 44 | if(!isset($locaplic)){ | 44 | if(!isset($locaplic)){ |
| 45 | - include(__DIR__."/../ms_configura.php"); | 45 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 46 | } | 46 | } |
| 47 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 47 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 48 | include_once($locaplic."/admin/php/xml.php"); | 48 | include_once($locaplic."/admin/php/xml.php"); |
admin/xmlatlas.php
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | /*DEPRECIADO*/ | 2 | /*DEPRECIADO*/ |
| 3 | error_reporting(0); | 3 | error_reporting(0); |
| 4 | if(!isset($locaplic)){ | 4 | if(!isset($locaplic)){ |
| 5 | - include(__DIR__."/../ms_configura.php"); | 5 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 6 | } | 6 | } |
| 7 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 7 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 8 | include_once($locaplic."/admin/php/xml.php"); | 8 | include_once($locaplic."/admin/php/xml.php"); |
admin/xmlgeorss.php
| @@ -37,7 +37,7 @@ i3geo/admin/xmlgeorss.php | @@ -37,7 +37,7 @@ i3geo/admin/xmlgeorss.php | ||
| 37 | 37 | ||
| 38 | error_reporting(0); | 38 | error_reporting(0); |
| 39 | if(!isset($locaplic)){ | 39 | if(!isset($locaplic)){ |
| 40 | - include(__DIR__."/../ms_configura.php"); | 40 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 41 | } | 41 | } |
| 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 43 | include_once($locaplic."/admin/php/xml.php"); | 43 | include_once($locaplic."/admin/php/xml.php"); |
admin/xmlidentifica.php
| @@ -41,7 +41,7 @@ i3geo/admin/xmlidentifica.php | @@ -41,7 +41,7 @@ i3geo/admin/xmlidentifica.php | ||
| 41 | 41 | ||
| 42 | error_reporting(0); | 42 | error_reporting(0); |
| 43 | if(!isset($locaplic)){ | 43 | if(!isset($locaplic)){ |
| 44 | - include(__DIR__."/../ms_configura.php"); | 44 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 45 | } | 45 | } |
| 46 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 46 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 47 | include_once($locaplic."/admin/php/xml.php"); | 47 | include_once($locaplic."/admin/php/xml.php"); |
admin/xmlkmlrss.php
| @@ -36,7 +36,7 @@ i3geo/admin/xmlkmlrss.php | @@ -36,7 +36,7 @@ i3geo/admin/xmlkmlrss.php | ||
| 36 | */ | 36 | */ |
| 37 | error_reporting(0); | 37 | error_reporting(0); |
| 38 | if(!isset($locaplic)){ | 38 | if(!isset($locaplic)){ |
| 39 | - include(__DIR__."/../ms_configura.php"); | 39 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 40 | } | 40 | } |
| 41 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 41 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 42 | include_once($locaplic."/admin/php/xml.php"); | 42 | include_once($locaplic."/admin/php/xml.php"); |
admin/xmllinksdownload.php
| @@ -37,7 +37,7 @@ i3geo/admin/xmllinksdownload.php | @@ -37,7 +37,7 @@ i3geo/admin/xmllinksdownload.php | ||
| 37 | 37 | ||
| 38 | error_reporting(0); | 38 | error_reporting(0); |
| 39 | if(!isset($locaplic)){ | 39 | if(!isset($locaplic)){ |
| 40 | - include(__DIR__."/../ms_configura.php"); | 40 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 41 | } | 41 | } |
| 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 43 | include_once($locaplic."/admin/php/xml.php"); | 43 | include_once($locaplic."/admin/php/xml.php"); |
admin/xmlmapas.php
| @@ -37,7 +37,7 @@ i3geo/admin/xmlmapas.php | @@ -37,7 +37,7 @@ i3geo/admin/xmlmapas.php | ||
| 37 | 37 | ||
| 38 | error_reporting(0); | 38 | error_reporting(0); |
| 39 | if(!isset($locaplic)){ | 39 | if(!isset($locaplic)){ |
| 40 | - include(__DIR__."/../ms_configura.php"); | 40 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 41 | } | 41 | } |
| 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 43 | include_once($locaplic."/admin/php/xml.php"); | 43 | include_once($locaplic."/admin/php/xml.php"); |
admin/xmlmenutemas.php
| 1 | <?php | 1 | <?php |
| 2 | error_reporting(0); | 2 | error_reporting(0); |
| 3 | if(!isset($locaplic)){ | 3 | if(!isset($locaplic)){ |
| 4 | - include(__DIR__."/../ms_configura.php"); | 4 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 5 | } | 5 | } |
| 6 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 6 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 7 | include_once($locaplic."/admin/php/xml.php"); | 7 | include_once($locaplic."/admin/php/xml.php"); |
admin/xmlservicoswms.php
| @@ -37,7 +37,7 @@ i3geo/admin/xmlservicoswms.php | @@ -37,7 +37,7 @@ i3geo/admin/xmlservicoswms.php | ||
| 37 | 37 | ||
| 38 | error_reporting(0); | 38 | error_reporting(0); |
| 39 | if(!isset($locaplic)){ | 39 | if(!isset($locaplic)){ |
| 40 | - include(__DIR__."/../ms_configura.php"); | 40 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 41 | } | 41 | } |
| 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 43 | include_once($locaplic."/admin/php/xml.php"); | 43 | include_once($locaplic."/admin/php/xml.php"); |
admin/xmlservicosws.php
| @@ -37,7 +37,7 @@ i3geo/admin/xmlservicosws.php | @@ -37,7 +37,7 @@ i3geo/admin/xmlservicosws.php | ||
| 37 | 37 | ||
| 38 | error_reporting(0); | 38 | error_reporting(0); |
| 39 | if(!isset($locaplic)){ | 39 | if(!isset($locaplic)){ |
| 40 | - include(__DIR__."/../ms_configura.php"); | 40 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 41 | } | 41 | } |
| 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 43 | include_once($locaplic."/admin/php/xml.php"); | 43 | include_once($locaplic."/admin/php/xml.php"); |
admin/xmlsistemas.php
| @@ -37,7 +37,7 @@ i3geo/admin/xmlsistemas.php | @@ -37,7 +37,7 @@ i3geo/admin/xmlsistemas.php | ||
| 37 | 37 | ||
| 38 | error_reporting(0); | 38 | error_reporting(0); |
| 39 | if(!isset($locaplic)){ | 39 | if(!isset($locaplic)){ |
| 40 | - include(__DIR__."/../ms_configura.php"); | 40 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 41 | } | 41 | } |
| 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 42 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
| 43 | include_once($locaplic."/admin/php/xml.php"); | 43 | include_once($locaplic."/admin/php/xml.php"); |
classesjs/compactajs.php
| @@ -34,7 +34,7 @@ i3geo/classesjs/compactajs.php | @@ -34,7 +34,7 @@ i3geo/classesjs/compactajs.php | ||
| 34 | // | 34 | // |
| 35 | //compacta os arquivos do richdraw | 35 | //compacta os arquivos do richdraw |
| 36 | // | 36 | // |
| 37 | -$locaplic = __DIR__."/.."; | 37 | +$locaplic = dirname(__FILE__)."/.."; |
| 38 | include_once("../admin/php/admin.php"); | 38 | include_once("../admin/php/admin.php"); |
| 39 | include_once("../admin/php/conexao.php"); | 39 | include_once("../admin/php/conexao.php"); |
| 40 | 40 |
classesphp/class.palette.php
| @@ -140,7 +140,7 @@ $numSteps - n&uacute;mero de cores finais | @@ -140,7 +140,7 @@ $numSteps - n&uacute;mero de cores finais | ||
| 140 | return $arquivos; | 140 | return $arquivos; |
| 141 | } | 141 | } |
| 142 | public function geraCoresColourRamp($locaplic="",$codigo=1,$inicio=0,$fim=255,$ncores=0){ | 142 | public function geraCoresColourRamp($locaplic="",$codigo=1,$inicio=0,$fim=255,$ncores=0){ |
| 143 | - //error_reporting(E_ALL); | 143 | + //error_reporting(0); |
| 144 | $arq = $locaplic."/symbols/colourramp/".$codigo.".cores"; | 144 | $arq = $locaplic."/symbols/colourramp/".$codigo.".cores"; |
| 145 | $handle = fopen ($arq, "r"); | 145 | $handle = fopen ($arq, "r"); |
| 146 | $conteudo = fread ($handle, filesize ($arq)); | 146 | $conteudo = fread ($handle, filesize ($arq)); |
classesphp/classe_alteraclasse.php
| @@ -75,8 +75,8 @@ $tema - nome do tema | @@ -75,8 +75,8 @@ $tema - nome do tema | ||
| 75 | */ | 75 | */ |
| 76 | function __construct($map_file,$tema="",$locaplic="",$ext="") | 76 | function __construct($map_file,$tema="",$locaplic="",$ext="") |
| 77 | { | 77 | { |
| 78 | - //error_reporting(E_ALL); | ||
| 79 | - include_once(__DIR__."/funcoes_gerais.php"); | 78 | + //error_reporting(0); |
| 79 | + include_once(dirname(__FILE__)."/funcoes_gerais.php"); | ||
| 80 | $this->locaplic = $locaplic; | 80 | $this->locaplic = $locaplic; |
| 81 | $this->mapa = ms_newMapObj($map_file); | 81 | $this->mapa = ms_newMapObj($map_file); |
| 82 | $this->arquivo = $map_file; | 82 | $this->arquivo = $map_file; |
| @@ -569,7 +569,7 @@ Adiciona opacidade vari&aacute;vel de 0 a 100 conforme o n&uacute;mero de classe | @@ -569,7 +569,7 @@ Adiciona opacidade vari&aacute;vel de 0 a 100 conforme o n&uacute;mero de classe | ||
| 569 | */ | 569 | */ |
| 570 | function adicionaopacidade() | 570 | function adicionaopacidade() |
| 571 | { | 571 | { |
| 572 | - //error_reporting(E_ALL); | 572 | + //error_reporting(0); |
| 573 | if(!$this->layer){return "erro";} | 573 | if(!$this->layer){return "erro";} |
| 574 | $numclasses = $this->layer->numclasses; | 574 | $numclasses = $this->layer->numclasses; |
| 575 | $n = intval(100 / $numclasses); | 575 | $n = intval(100 / $numclasses); |
| @@ -600,7 +600,7 @@ $cor {string} - cor rgb | @@ -600,7 +600,7 @@ $cor {string} - cor rgb | ||
| 600 | */ | 600 | */ |
| 601 | function alteracor($idclasse,$cor) | 601 | function alteracor($idclasse,$cor) |
| 602 | { | 602 | { |
| 603 | - error_reporting(E_ALL); | 603 | + error_reporting(0); |
| 604 | if(!$this->layer){return "erro";} | 604 | if(!$this->layer){return "erro";} |
| 605 | $numclasses = $this->layer->numclasses; | 605 | $numclasses = $this->layer->numclasses; |
| 606 | $cor = str_replace(" ",",",$cor); | 606 | $cor = str_replace(" ",",",$cor); |
| @@ -627,7 +627,7 @@ $tipo {string} - tipo de representa&ccedil;&atilde;o | @@ -627,7 +627,7 @@ $tipo {string} - tipo de representa&ccedil;&atilde;o | ||
| 627 | */ | 627 | */ |
| 628 | function alterageometria($tipo) | 628 | function alterageometria($tipo) |
| 629 | { | 629 | { |
| 630 | - error_reporting(E_ALL); | 630 | + error_reporting(0); |
| 631 | if(!$this->layer){return "erro";} | 631 | if(!$this->layer){return "erro";} |
| 632 | $numclasses = $this->layer->numclasses; | 632 | $numclasses = $this->layer->numclasses; |
| 633 | for($i=0;$i<$numclasses;++$i) | 633 | for($i=0;$i<$numclasses;++$i) |
classesphp/classe_analise.php
| @@ -100,11 +100,11 @@ $ext - Extens&atilde;o geogr&aacute;fica do mapa | @@ -100,11 +100,11 @@ $ext - Extens&atilde;o geogr&aacute;fica do mapa | ||
| 100 | */ | 100 | */ |
| 101 | function __construct($map_file,$tema="",$locaplic="",$ext="") | 101 | function __construct($map_file,$tema="",$locaplic="",$ext="") |
| 102 | { | 102 | { |
| 103 | - //error_reporting(E_ALL); | 103 | + //error_reporting(0); |
| 104 | $this->qyfile = str_replace(".map",".qy",$map_file); | 104 | $this->qyfile = str_replace(".map",".qy",$map_file); |
| 105 | - include_once(__DIR__."/funcoes_gerais.php"); | 105 | + include_once(dirname(__FILE__)."/funcoes_gerais.php"); |
| 106 | if(empty($locaplic)){ | 106 | if(empty($locaplic)){ |
| 107 | - $locaplic = __DIR__."/.."; | 107 | + $locaplic = dirname(__FILE__)."/.."; |
| 108 | } | 108 | } |
| 109 | $this->v = versao(); | 109 | $this->v = versao(); |
| 110 | $this->v = $this->v["principal"]; | 110 | $this->v = $this->v["principal"]; |
| @@ -236,7 +236,7 @@ Include: | @@ -236,7 +236,7 @@ Include: | ||
| 236 | break; | 236 | break; |
| 237 | //delaunay e voronoi | 237 | //delaunay e voronoi |
| 238 | case "deldir": | 238 | case "deldir": |
| 239 | - //error_reporting(E_ALL); | 239 | + //error_reporting(0); |
| 240 | $this->mapaDeldir($nomearq,$dir_tmp,$R_path,$locaplic); | 240 | $this->mapaDeldir($nomearq,$dir_tmp,$R_path,$locaplic); |
| 241 | $this->deldirDir2shp($nomearq."dirsgs",$dir_tmp,$locaplic); | 241 | $this->deldirDir2shp($nomearq."dirsgs",$dir_tmp,$locaplic); |
| 242 | $this->deldirDel2shp($nomearq."delsgs",$dir_tmp,$locaplic); | 242 | $this->deldirDel2shp($nomearq."delsgs",$dir_tmp,$locaplic); |
| @@ -1079,7 +1079,7 @@ $locaplic - Localiza&ccedil;&atilde;o do I3geo. | @@ -1079,7 +1079,7 @@ $locaplic - Localiza&ccedil;&atilde;o do I3geo. | ||
| 1079 | $lineo = $spt->line(0); | 1079 | $lineo = $spt->line(0); |
| 1080 | $pt = $lineo->point(0); | 1080 | $pt = $lineo->point(0); |
| 1081 | //faz a pesquisa | 1081 | //faz a pesquisa |
| 1082 | - //error_reporting(E_ALL); | 1082 | + //error_reporting(0); |
| 1083 | foreach ($layers as $layer) | 1083 | foreach ($layers as $layer) |
| 1084 | { | 1084 | { |
| 1085 | $layer->set("template","none.htm"); | 1085 | $layer->set("template","none.htm"); |
| @@ -1170,7 +1170,7 @@ itemdestino - nome do item na tabela de atributos do tema de origem que ser&aacu | @@ -1170,7 +1170,7 @@ itemdestino - nome do item na tabela de atributos do tema de origem que ser&aacu | ||
| 1170 | */ | 1170 | */ |
| 1171 | function distanciaptpt($temaorigem,$temadestino,$temaoverlay,$locaplic,$itemorigem="",$itemdestino="") | 1171 | function distanciaptpt($temaorigem,$temadestino,$temaoverlay,$locaplic,$itemorigem="",$itemdestino="") |
| 1172 | { | 1172 | { |
| 1173 | - //error_reporting(E_ALL); | 1173 | + //error_reporting(0); |
| 1174 | set_time_limit(180); | 1174 | set_time_limit(180); |
| 1175 | //para manipular dbf | 1175 | //para manipular dbf |
| 1176 | if($this->dbaseExiste == false){ | 1176 | if($this->dbaseExiste == false){ |
| @@ -1432,7 +1432,7 @@ $item {string} - (opcional) Item q ser&aacute; utilizado para ponderar os valore | @@ -1432,7 +1432,7 @@ $item {string} - (opcional) Item q ser&aacute; utilizado para ponderar os valore | ||
| 1432 | else | 1432 | else |
| 1433 | include_once "../pacotes/phpxbase/api_conversion.php"; | 1433 | include_once "../pacotes/phpxbase/api_conversion.php"; |
| 1434 | } | 1434 | } |
| 1435 | - //error_reporting(E_ALL); | 1435 | + //error_reporting(0); |
| 1436 | $nomeCentro = nomeRandomico(); | 1436 | $nomeCentro = nomeRandomico(); |
| 1437 | $nomeshp = $this->diretorio."/".$nomeCentro; | 1437 | $nomeshp = $this->diretorio."/".$nomeCentro; |
| 1438 | //pega os shapes selecionados | 1438 | //pega os shapes selecionados |
| @@ -2035,7 +2035,7 @@ $locaplic - Localiza&ccedil;&atilde;o do I3geo | @@ -2035,7 +2035,7 @@ $locaplic - Localiza&ccedil;&atilde;o do I3geo | ||
| 2035 | */ | 2035 | */ |
| 2036 | function nptPol($temaPt,$temaPo,$locaplic) | 2036 | function nptPol($temaPt,$temaPo,$locaplic) |
| 2037 | { | 2037 | { |
| 2038 | - //error_reporting(E_ALL); | 2038 | + //error_reporting(0); |
| 2039 | set_time_limit(180); | 2039 | set_time_limit(180); |
| 2040 | //para manipular dbf | 2040 | //para manipular dbf |
| 2041 | if($this->dbaseExiste == false){ | 2041 | if($this->dbaseExiste == false){ |
| @@ -2451,7 +2451,7 @@ $operacao - Tipo de an&aacute;lise. | @@ -2451,7 +2451,7 @@ $operacao - Tipo de an&aacute;lise. | ||
| 2451 | */ | 2451 | */ |
| 2452 | function calculaGeometrias($dir_tmp,$imgdir,$lista,$operacao) | 2452 | function calculaGeometrias($dir_tmp,$imgdir,$lista,$operacao) |
| 2453 | { | 2453 | { |
| 2454 | - //error_reporting(E_ALL); | 2454 | + //error_reporting(0); |
| 2455 | $lista = explode(",",$lista); | 2455 | $lista = explode(",",$lista); |
| 2456 | $dir = $dir_tmp."/".$imgdir."/"; | 2456 | $dir = $dir_tmp."/".$imgdir."/"; |
| 2457 | foreach ($lista as $l) | 2457 | foreach ($lista as $l) |
classesphp/classe_atlas.php
| @@ -48,7 +48,7 @@ $atlasxml - Objeto xml com o atlas. | @@ -48,7 +48,7 @@ $atlasxml - Objeto xml com o atlas. | ||
| 48 | */ | 48 | */ |
| 49 | function __construct($xml) | 49 | function __construct($xml) |
| 50 | { | 50 | { |
| 51 | - error_reporting(E_ALL); | 51 | + error_reporting(0); |
| 52 | $this->xml = $xml; | 52 | $this->xml = $xml; |
| 53 | } | 53 | } |
| 54 | /* | 54 | /* |
classesphp/classe_atributos.php
| @@ -209,7 +209,7 @@ class Atributos | @@ -209,7 +209,7 @@ class Atributos | ||
| 209 | if(!$this->layer){ | 209 | if(!$this->layer){ |
| 210 | return "erro"; | 210 | return "erro"; |
| 211 | } | 211 | } |
| 212 | - //error_reporting(E_ALL); | 212 | + //error_reporting(0); |
| 213 | $this->layer->set("template","none.htm"); | 213 | $this->layer->set("template","none.htm"); |
| 214 | //$this->layer->setfilter(""); | 214 | //$this->layer->setfilter(""); |
| 215 | $ext = ""; | 215 | $ext = ""; |
| @@ -577,7 +577,7 @@ class Atributos | @@ -577,7 +577,7 @@ class Atributos | ||
| 577 | */ | 577 | */ |
| 578 | function buscaRegistros($palavra,$lista,$tipo,$onde) | 578 | function buscaRegistros($palavra,$lista,$tipo,$onde) |
| 579 | { | 579 | { |
| 580 | - //error_reporting(E_ALL); | 580 | + //error_reporting(0); |
| 581 | $resultado = array(); | 581 | $resultado = array(); |
| 582 | if ($onde == "mapa") | 582 | if ($onde == "mapa") |
| 583 | { | 583 | { |
| @@ -1344,7 +1344,7 @@ class Atributos | @@ -1344,7 +1344,7 @@ class Atributos | ||
| 1344 | if($editavel == "sim"){ | 1344 | if($editavel == "sim"){ |
| 1345 | $id_medida_variavel = $layer->getMetaData("METAESTAT_ID_MEDIDA_VARIAVEL"); | 1345 | $id_medida_variavel = $layer->getMetaData("METAESTAT_ID_MEDIDA_VARIAVEL"); |
| 1346 | if($id_medida_variavel != ""){ | 1346 | if($id_medida_variavel != ""){ |
| 1347 | - include_once(__DIR__."/../admin/php/classe_metaestat.php"); | 1347 | + include_once(dirname(__FILE__)."/../admin/php/classe_metaestat.php"); |
| 1348 | $m = new Metaestat(); | 1348 | $m = new Metaestat(); |
| 1349 | $medidaVariavel = $m->listaMedidaVariavel("",$id_medida_variavel); | 1349 | $medidaVariavel = $m->listaMedidaVariavel("",$id_medida_variavel); |
| 1350 | $editavel = $medidaVariavel["colunavalor"]; | 1350 | $editavel = $medidaVariavel["colunavalor"]; |
| @@ -1765,7 +1765,7 @@ class Atributos | @@ -1765,7 +1765,7 @@ class Atributos | ||
| 1765 | //caso esri | 1765 | //caso esri |
| 1766 | if($n[0] == "") | 1766 | if($n[0] == "") |
| 1767 | { | 1767 | { |
| 1768 | - //error_reporting(E_ALL); | 1768 | + //error_reporting(0); |
| 1769 | $resposta = file($res); | 1769 | $resposta = file($res); |
| 1770 | $cabecalho = str_replace('" "','"|"',$resposta[0]); | 1770 | $cabecalho = str_replace('" "','"|"',$resposta[0]); |
| 1771 | $cabecalho = explode("|",$cabecalho); | 1771 | $cabecalho = explode("|",$cabecalho); |
| @@ -2118,7 +2118,7 @@ class Atributos | @@ -2118,7 +2118,7 @@ class Atributos | ||
| 2118 | } | 2118 | } |
| 2119 | //caso esri | 2119 | //caso esri |
| 2120 | if($n[0] == ""){ | 2120 | if($n[0] == ""){ |
| 2121 | - //error_reporting(E_ALL); | 2121 | + //error_reporting(0); |
| 2122 | $resposta = file($res); | 2122 | $resposta = file($res); |
| 2123 | $cabecalho = str_replace('" "','"|"',$resposta[0]); | 2123 | $cabecalho = str_replace('" "','"|"',$resposta[0]); |
| 2124 | $cabecalho = explode("|",$cabecalho); | 2124 | $cabecalho = explode("|",$cabecalho); |
classesphp/classe_escala.php
| @@ -68,7 +68,7 @@ $map_file - Endere&ccedil;o do mapfile no servidor. | @@ -68,7 +68,7 @@ $map_file - Endere&ccedil;o do mapfile no servidor. | ||
| 68 | */ | 68 | */ |
| 69 | function __construct($map_file,$nomeImagem="",$locaplic="") | 69 | function __construct($map_file,$nomeImagem="",$locaplic="") |
| 70 | { | 70 | { |
| 71 | - //error_reporting(E_ALL); | 71 | + //error_reporting(0); |
| 72 | if(file_exists($locaplic."/funcoes_gerais.php")) | 72 | if(file_exists($locaplic."/funcoes_gerais.php")) |
| 73 | include_once($locaplic."/funcoes_gerais.php"); | 73 | include_once($locaplic."/funcoes_gerais.php"); |
| 74 | else | 74 | else |
classesphp/classe_imagem.php
| @@ -61,7 +61,7 @@ $arquivo - Nome completo da imagem em disco. | @@ -61,7 +61,7 @@ $arquivo - Nome completo da imagem em disco. | ||
| 61 | */ | 61 | */ |
| 62 | function __construct($arquivo) | 62 | function __construct($arquivo) |
| 63 | { | 63 | { |
| 64 | - //error_reporting(E_ALL); | 64 | + //error_reporting(0); |
| 65 | if (file_exists($arquivo)) | 65 | if (file_exists($arquivo)) |
| 66 | { | 66 | { |
| 67 | $this->arquivoimg = $arquivo; | 67 | $this->arquivoimg = $arquivo; |
classesphp/classe_legenda.php
| @@ -117,8 +117,8 @@ $template - nome do template para processar a legenda | @@ -117,8 +117,8 @@ $template - nome do template para processar a legenda | ||
| 117 | 117 | ||
| 118 | function __construct($map_file="",$locaplic="",$tema="",$template="") | 118 | function __construct($map_file="",$locaplic="",$tema="",$template="") |
| 119 | { | 119 | { |
| 120 | - //error_reporting(E_ALL); | ||
| 121 | - include_once(__DIR__."/funcoes_gerais.php"); | 120 | + //error_reporting(0); |
| 121 | + include_once(dirname(__FILE__)."/funcoes_gerais.php"); | ||
| 122 | $this->v = versao(); | 122 | $this->v = versao(); |
| 123 | $this->v = $this->v["principal"]; | 123 | $this->v = $this->v["principal"]; |
| 124 | $this->localaplicacao = $locaplic; | 124 | $this->localaplicacao = $locaplic; |
| @@ -523,7 +523,7 @@ String no formato HTML com as imagens dos s&iacute;mbolos | @@ -523,7 +523,7 @@ String no formato HTML com as imagens dos s&iacute;mbolos | ||
| 523 | { | 523 | { |
| 524 | $versao = versao(); | 524 | $versao = versao(); |
| 525 | $versao = $versao["principal"]; | 525 | $versao = $versao["principal"]; |
| 526 | - error_reporting(E_ALL); | 526 | + error_reporting(0); |
| 527 | if ($tipo == 3){$tipo = 2;} //tipo raster | 527 | if ($tipo == 3){$tipo = 2;} //tipo raster |
| 528 | if($imgdir == "") | 528 | if($imgdir == "") |
| 529 | {$dir = $dir_tmp;} | 529 | {$dir = $dir_tmp;} |
| @@ -720,7 +720,7 @@ array - "imagecolor"=>$imagecolor,"transparent"=>transparent,"position"=>$positi | @@ -720,7 +720,7 @@ array - "imagecolor"=>$imagecolor,"transparent"=>transparent,"position"=>$positi | ||
| 720 | */ | 720 | */ |
| 721 | function pegaParametrosLegImg() | 721 | function pegaParametrosLegImg() |
| 722 | { | 722 | { |
| 723 | - error_reporting(E_ALL); | 723 | + error_reporting(0); |
| 724 | $legenda = $this->mapa->legend; | 724 | $legenda = $this->mapa->legend; |
| 725 | $height = $legenda->height; | 725 | $height = $legenda->height; |
| 726 | $width = $legenda->width; | 726 | $width = $legenda->width; |
classesphp/classe_mapa.php
| @@ -76,7 +76,7 @@ $map_file - Endere&ccedil;o do mapfile no servidor. | @@ -76,7 +76,7 @@ $map_file - Endere&ccedil;o do mapfile no servidor. | ||
| 76 | */ | 76 | */ |
| 77 | function __construct($map_file,$locaplic="") | 77 | function __construct($map_file,$locaplic="") |
| 78 | { | 78 | { |
| 79 | - error_reporting(E_ALL); | 79 | + error_reporting(0); |
| 80 | if (!function_exists('ms_newMapObj')) {return false;} | 80 | if (!function_exists('ms_newMapObj')) {return false;} |
| 81 | if(file_exists($locaplic."/funcoes_gerais.php")) | 81 | if(file_exists($locaplic."/funcoes_gerais.php")) |
| 82 | include_once($locaplic."/funcoes_gerais.php"); | 82 | include_once($locaplic."/funcoes_gerais.php"); |
| @@ -1641,7 +1641,7 @@ $canal - Identificador do canal (ordem em que est&aacute; no RSS) | @@ -1641,7 +1641,7 @@ $canal - Identificador do canal (ordem em que est&aacute; no RSS) | ||
| 1641 | //cria o shapefile com os dados | 1641 | //cria o shapefile com os dados |
| 1642 | if (count($resultado) > 0){ | 1642 | if (count($resultado) > 0){ |
| 1643 | //para manipular dbf | 1643 | //para manipular dbf |
| 1644 | - include_once (__DIR__."/../pacotes/phpxbase/api_conversion.php"); | 1644 | + include_once (dirname(__FILE__)."/../pacotes/phpxbase/api_conversion.php"); |
| 1645 | $diretorio = dirname($this->arquivo); | 1645 | $diretorio = dirname($this->arquivo); |
| 1646 | $tipol = MS_SHP_POLYGON; | 1646 | $tipol = MS_SHP_POLYGON; |
| 1647 | if ($tipog == "georsspoint"){$tipol = MS_SHP_POINT;} | 1647 | if ($tipog == "georsspoint"){$tipol = MS_SHP_POINT;} |
classesphp/classe_menutemas.php
| @@ -64,7 +64,7 @@ $idioma - (opcional) pt|en|es|it | @@ -64,7 +64,7 @@ $idioma - (opcional) pt|en|es|it | ||
| 64 | function __construct($map_file="",$perfil="",$locaplic="",$urli3geo="",$editores="",$idioma="pt") | 64 | function __construct($map_file="",$perfil="",$locaplic="",$urli3geo="",$editores="",$idioma="pt") |
| 65 | { | 65 | { |
| 66 | if($locaplic == ""){ | 66 | if($locaplic == ""){ |
| 67 | - include(__DIR__."/../ms_configura.php"); | 67 | + include(dirname(__FILE__)."/../ms_configura.php"); |
| 68 | } | 68 | } |
| 69 | $perfil = str_replace(" ",",",$perfil); | 69 | $perfil = str_replace(" ",",",$perfil); |
| 70 | $this->perfil = explode(",",$perfil); | 70 | $this->perfil = explode(",",$perfil); |
| @@ -147,7 +147,7 @@ array | @@ -147,7 +147,7 @@ array | ||
| 147 | { | 147 | { |
| 148 | if($menu["idmenu"] == $idmenu || $idmenu == "") | 148 | if($menu["idmenu"] == $idmenu || $idmenu == "") |
| 149 | { | 149 | { |
| 150 | - include_once(__DIR__."/../admin/php/classe_arvore.php"); | 150 | + include_once(dirname(__FILE__)."/../admin/php/classe_arvore.php"); |
| 151 | $arvore = new Arvore($this->locaplic,$this->idioma); | 151 | $arvore = new Arvore($this->locaplic,$this->idioma); |
| 152 | $grupos = $arvore->formataGruposMenu($idmenu,$this->perfil,$listasgrupos); | 152 | $grupos = $arvore->formataGruposMenu($idmenu,$this->perfil,$listasgrupos); |
| 153 | unset($arvore); | 153 | unset($arvore); |
| @@ -180,7 +180,7 @@ array | @@ -180,7 +180,7 @@ array | ||
| 180 | { | 180 | { |
| 181 | if($menu["idmenu"] == $idmenu || $idmenu == "") | 181 | if($menu["idmenu"] == $idmenu || $idmenu == "") |
| 182 | { | 182 | { |
| 183 | - include_once(__DIR__."/../admin/php/classe_arvore.php"); | 183 | + include_once(dirname(__FILE__)."/../admin/php/classe_arvore.php"); |
| 184 | $arvore = new Arvore($this->locaplic,$this->idioma); | 184 | $arvore = new Arvore($this->locaplic,$this->idioma); |
| 185 | $subGrupos = $arvore->formataSubgruposGrupo($idmenu,$codgrupo,$this->perfil); | 185 | $subGrupos = $arvore->formataSubgruposGrupo($idmenu,$codgrupo,$this->perfil); |
| 186 | unset($arvore); | 186 | unset($arvore); |
| @@ -207,7 +207,7 @@ array | @@ -207,7 +207,7 @@ array | ||
| 207 | */ | 207 | */ |
| 208 | function pegaListaDeTemas($grupo,$subgrupo,$idmenu) | 208 | function pegaListaDeTemas($grupo,$subgrupo,$idmenu) |
| 209 | { | 209 | { |
| 210 | - include_once(__DIR__."/../admin/php/classe_arvore.php"); | 210 | + include_once(dirname(__FILE__)."/../admin/php/classe_arvore.php"); |
| 211 | $arvore = new Arvore($this->locaplic,$this->idioma); | 211 | $arvore = new Arvore($this->locaplic,$this->idioma); |
| 212 | $temas = $arvore->formataTemasSubgrupo($subgrupo,$this->perfil); | 212 | $temas = $arvore->formataTemasSubgrupo($subgrupo,$this->perfil); |
| 213 | unset($arvore); | 213 | unset($arvore); |
| @@ -369,7 +369,7 @@ $procurar - String que ser&aacute; procurada. | @@ -369,7 +369,7 @@ $procurar - String que ser&aacute; procurada. | ||
| 369 | } | 369 | } |
| 370 | else | 370 | else |
| 371 | { | 371 | { |
| 372 | - include_once(__DIR__."/../admin/php/classe_arvore.php"); | 372 | + include_once(dirname(__FILE__)."/../admin/php/classe_arvore.php"); |
| 373 | $arvore = new Arvore($this->locaplic,$this->idioma); | 373 | $arvore = new Arvore($this->locaplic,$this->idioma); |
| 374 | $temas = $arvore->procuraTemas($procurar,$this->perfil); | 374 | $temas = $arvore->procuraTemas($procurar,$this->perfil); |
| 375 | unset($arvore); | 375 | unset($arvore); |
| @@ -480,7 +480,7 @@ $procurar - String que ser&aacute; procurada. | @@ -480,7 +480,7 @@ $procurar - String que ser&aacute; procurada. | ||
| 480 | */ | 480 | */ |
| 481 | function procurartemas2($procurar) | 481 | function procurartemas2($procurar) |
| 482 | { | 482 | { |
| 483 | - include_once(__DIR__."/../admin/php/classe_arvore.php"); | 483 | + include_once(dirname(__FILE__)."/../admin/php/classe_arvore.php"); |
| 484 | $arvore = new Arvore($this->locaplic,$this->idioma); | 484 | $arvore = new Arvore($this->locaplic,$this->idioma); |
| 485 | $temas = $arvore->procuraTemas($procurar,$this->perfil); | 485 | $temas = $arvore->procuraTemas($procurar,$this->perfil); |
| 486 | unset($arvore); | 486 | unset($arvore); |
classesphp/classe_navegacao.php
| @@ -61,7 +61,7 @@ $map_file - string $map_file Endere&ccedil;o do mapfile no servidor. | @@ -61,7 +61,7 @@ $map_file - string $map_file Endere&ccedil;o do mapfile no servidor. | ||
| 61 | */ | 61 | */ |
| 62 | function __construct($map_file,$locaplic="") | 62 | function __construct($map_file,$locaplic="") |
| 63 | { | 63 | { |
| 64 | - //error_reporting(E_ALL); | 64 | + //error_reporting(0); |
| 65 | if(file_exists($locaplic."/funcoes_gerais.php")) | 65 | if(file_exists($locaplic."/funcoes_gerais.php")) |
| 66 | include_once($locaplic."/funcoes_gerais.php"); | 66 | include_once($locaplic."/funcoes_gerais.php"); |
| 67 | else | 67 | else |
classesphp/classe_selecao.php
| @@ -98,7 +98,7 @@ $ext - extens&atilde;o geogr&aacute;fica do mapa | @@ -98,7 +98,7 @@ $ext - extens&atilde;o geogr&aacute;fica do mapa | ||
| 98 | 98 | ||
| 99 | function __construct($map_file,$tema="",$ext="") | 99 | function __construct($map_file,$tema="",$ext="") |
| 100 | { | 100 | { |
| 101 | - include_once(__DIR__."/funcoes_gerais.php"); | 101 | + include_once(dirname(__FILE__)."/funcoes_gerais.php"); |
| 102 | $this->v = versao(); | 102 | $this->v = versao(); |
| 103 | $this->v = $this->v["principal"]; | 103 | $this->v = $this->v["principal"]; |
| 104 | $this->qyfile = str_replace(".map",".qy",$map_file); | 104 | $this->qyfile = str_replace(".map",".qy",$map_file); |
| @@ -592,7 +592,7 @@ $tipo - Tipo de opera&ccedil;&atilde;o adiciona|retira|inverte|limpa|novo | @@ -592,7 +592,7 @@ $tipo - Tipo de opera&ccedil;&atilde;o adiciona|retira|inverte|limpa|novo | ||
| 592 | } | 592 | } |
| 593 | else | 593 | else |
| 594 | { | 594 | { |
| 595 | - error_reporting(E_ALL); | 595 | + error_reporting(0); |
| 596 | $projInObj = ms_newprojectionobj("proj=latlong"); | 596 | $projInObj = ms_newprojectionobj("proj=latlong"); |
| 597 | $projOutObj = ms_newprojectionobj("proj=poly,ellps=GRS67,lat_0=0,lon_0=".$pt->x.",x_0=5000000,y_0=10000000"); | 597 | $projOutObj = ms_newprojectionobj("proj=poly,ellps=GRS67,lat_0=0,lon_0=".$pt->x.",x_0=5000000,y_0=10000000"); |
| 598 | 598 | ||
| @@ -716,7 +716,7 @@ $shp_atual - Indices dos elementos j&aacute; selecionados. | @@ -716,7 +716,7 @@ $shp_atual - Indices dos elementos j&aacute; selecionados. | ||
| 716 | */ | 716 | */ |
| 717 | function selecaoAdiciona($shpi,$shp_atual) | 717 | function selecaoAdiciona($shpi,$shp_atual) |
| 718 | { | 718 | { |
| 719 | - error_reporting(E_ALL); | 719 | + error_reporting(0); |
| 720 | if(!$this->layer){return "erro";} | 720 | if(!$this->layer){return "erro";} |
| 721 | $indxlayer = $this->layer->index; | 721 | $indxlayer = $this->layer->index; |
| 722 | $shp = array_merge($shpi,$shp_atual); | 722 | $shp = array_merge($shpi,$shp_atual); |
classesphp/classe_shp.php
| @@ -89,10 +89,10 @@ $ext - extensao geogr&aacute;fica que ser&aacute; aplicada ao mapa | @@ -89,10 +89,10 @@ $ext - extensao geogr&aacute;fica que ser&aacute; aplicada ao mapa | ||
| 89 | function __construct($map_file="",$tema="",$locaplic="",$ext=""){ | 89 | function __construct($map_file="",$tema="",$locaplic="",$ext=""){ |
| 90 | if (!function_exists('ms_newMapObj')){return false;} | 90 | if (!function_exists('ms_newMapObj')){return false;} |
| 91 | if($locaplic == ""){ | 91 | if($locaplic == ""){ |
| 92 | - include (__DIR__."/../ms_configura.php"); | 92 | + include (dirname(__FILE__)."/../ms_configura.php"); |
| 93 | } | 93 | } |
| 94 | if(!function_exists("corRGB")){ | 94 | if(!function_exists("corRGB")){ |
| 95 | - include_once(__DIR__."/funcoes_gerais.php"); | 95 | + include_once(dirname(__FILE__)."/funcoes_gerais.php"); |
| 96 | } | 96 | } |
| 97 | $this->v = versao(); | 97 | $this->v = versao(); |
| 98 | $this->v = $this->v["principal"]; | 98 | $this->v = $this->v["principal"]; |
| @@ -408,7 +408,7 @@ array - xy | @@ -408,7 +408,7 @@ array - xy | ||
| 408 | */ | 408 | */ |
| 409 | function listaPontosShapeSel() | 409 | function listaPontosShapeSel() |
| 410 | { | 410 | { |
| 411 | - //error_reporting(E_ALL); | 411 | + //error_reporting(0); |
| 412 | if(!$this->layer){return "erro";} | 412 | if(!$this->layer){return "erro";} |
| 413 | $this->layer->set("template","none.htm"); | 413 | $this->layer->set("template","none.htm"); |
| 414 | $this->layer->setfilter(""); | 414 | $this->layer->setfilter(""); |
classesphp/classe_temas.php
| @@ -108,7 +108,7 @@ $ext - (opcional) extens&atilde;o geogr&aacute;fica que ser&aacute; aplicada ao | @@ -108,7 +108,7 @@ $ext - (opcional) extens&atilde;o geogr&aacute;fica que ser&aacute; aplicada ao | ||
| 108 | */ | 108 | */ |
| 109 | function __construct($map_file,$tema=null,$locaplic="",$ext="") | 109 | function __construct($map_file,$tema=null,$locaplic="",$ext="") |
| 110 | { | 110 | { |
| 111 | - //error_reporting(E_ALL); | 111 | + //error_reporting(0); |
| 112 | $this->qyfile = str_replace(".map",".qy",$map_file); | 112 | $this->qyfile = str_replace(".map",".qy",$map_file); |
| 113 | $this->arquivo = $map_file; | 113 | $this->arquivo = $map_file; |
| 114 | if(file_exists($locaplic."/funcoes_gerais.php")) | 114 | if(file_exists($locaplic."/funcoes_gerais.php")) |
| @@ -547,7 +547,7 @@ $valor - Novo valor da transpar&ecirc;ncia | @@ -547,7 +547,7 @@ $valor - Novo valor da transpar&ecirc;ncia | ||
| 547 | */ | 547 | */ |
| 548 | function mudaTransparencia($valor) | 548 | function mudaTransparencia($valor) |
| 549 | { | 549 | { |
| 550 | - //error_reporting(E_ALL); | 550 | + //error_reporting(0); |
| 551 | $v = versao(); | 551 | $v = versao(); |
| 552 | foreach ($this->grupo as $lg) | 552 | foreach ($this->grupo as $lg) |
| 553 | { | 553 | { |
| @@ -565,7 +565,7 @@ Muda o metadata CLASSE, invertendo seu valor | @@ -565,7 +565,7 @@ Muda o metadata CLASSE, invertendo seu valor | ||
| 565 | */ | 565 | */ |
| 566 | function inverteStatusLegenda() | 566 | function inverteStatusLegenda() |
| 567 | { | 567 | { |
| 568 | - //error_reporting(E_ALL); | 568 | + //error_reporting(0); |
| 569 | $valor = $this->layer->getmetadata("classe"); | 569 | $valor = $this->layer->getmetadata("classe"); |
| 570 | if($valor == "" || strtolower($valor) == "sim") | 570 | if($valor == "" || strtolower($valor) == "sim") |
| 571 | {$valor = "NAO";} | 571 | {$valor = "NAO";} |
classesphp/classe_toponimia.php
| @@ -77,7 +77,7 @@ $tema - nome do tema que ser&aacute; processado | @@ -77,7 +77,7 @@ $tema - nome do tema que ser&aacute; processado | ||
| 77 | */ | 77 | */ |
| 78 | function __construct($map_file,$tema="",$locaplic="") | 78 | function __construct($map_file,$tema="",$locaplic="") |
| 79 | { | 79 | { |
| 80 | - //error_reporting(E_ALL); | 80 | + //error_reporting(0); |
| 81 | if(file_exists($locaplic."/funcoes_gerais.php")) | 81 | if(file_exists($locaplic."/funcoes_gerais.php")) |
| 82 | include_once($locaplic."/funcoes_gerais.php"); | 82 | include_once($locaplic."/funcoes_gerais.php"); |
| 83 | else | 83 | else |
| @@ -159,7 +159,7 @@ Retorno: | @@ -159,7 +159,7 @@ Retorno: | ||
| 159 | */ | 159 | */ |
| 160 | function criaToponimia($item,$position,$partials,$offsetx,$offsety,$minfeaturesize,$mindistance,$force,$shadowcolor,$shadowsizex,$shadowsizey,$outlinecolor,$cor,$sombray,$sombrax,$sombra,$fundo,$angulo,$tamanho,$fonte,$tipo,$wrap,$novotema="sim") | 160 | function criaToponimia($item,$position,$partials,$offsetx,$offsety,$minfeaturesize,$mindistance,$force,$shadowcolor,$shadowsizex,$shadowsizey,$outlinecolor,$cor,$sombray,$sombrax,$sombra,$fundo,$angulo,$tamanho,$fonte,$tipo,$wrap,$novotema="sim") |
| 161 | { | 161 | { |
| 162 | - error_reporting(E_ALL); | 162 | + error_reporting(0); |
| 163 | if(!$this->layer){return "erro";} | 163 | if(!$this->layer){return "erro";} |
| 164 | if (!isset($tipo)){$tipo = "";} | 164 | if (!isset($tipo)){$tipo = "";} |
| 165 | if ($item != "") //o layer nao tem tabela mas tem toponimia | 165 | if ($item != "") //o layer nao tem tabela mas tem toponimia |
classesphp/funcoes_gerais.php
| @@ -498,7 +498,7 @@ Retorno: | @@ -498,7 +498,7 @@ Retorno: | ||
| 498 | */ | 498 | */ |
| 499 | function substituiCon($map_file,$postgis_mapa) | 499 | function substituiCon($map_file,$postgis_mapa) |
| 500 | { | 500 | { |
| 501 | - error_reporting(E_ALL); | 501 | + error_reporting(0); |
| 502 | if (!empty($postgis_mapa) && (file_exists($map_file))) | 502 | if (!empty($postgis_mapa) && (file_exists($map_file))) |
| 503 | { | 503 | { |
| 504 | if(!@ms_newMapObj($map_file)){return false;} | 504 | if(!@ms_newMapObj($map_file)){return false;} |
| @@ -977,7 +977,7 @@ Retorno: | @@ -977,7 +977,7 @@ Retorno: | ||
| 977 | */ | 977 | */ |
| 978 | function buscaRapida($servico,$palavra) | 978 | function buscaRapida($servico,$palavra) |
| 979 | { | 979 | { |
| 980 | - //error_reporting(E_ALL); | 980 | + //error_reporting(0); |
| 981 | if(!function_exists('preg_match')) | 981 | if(!function_exists('preg_match')) |
| 982 | { | 982 | { |
| 983 | include_once('../pacotes/SOAPdepreciado/nusoap.php'); | 983 | include_once('../pacotes/SOAPdepreciado/nusoap.php'); |
| @@ -2373,7 +2373,7 @@ Return: | @@ -2373,7 +2373,7 @@ Return: | ||
| 2373 | */ | 2373 | */ |
| 2374 | function verificaPapelUsuario($id_papel) | 2374 | function verificaPapelUsuario($id_papel) |
| 2375 | { | 2375 | { |
| 2376 | - include_once(__DIR__."/../admin/php/login.php"); | 2376 | + include_once(dirname(__FILE__)."/../admin/php/login.php"); |
| 2377 | $r = verificaPapelSessao($id_papel); | 2377 | $r = verificaPapelSessao($id_papel); |
| 2378 | return $r; | 2378 | return $r; |
| 2379 | } | 2379 | } |
| @@ -2502,7 +2502,7 @@ Lista os temas que possuem restricao de acesso para apenas alguns grupos de usua | @@ -2502,7 +2502,7 @@ Lista os temas que possuem restricao de acesso para apenas alguns grupos de usua | ||
| 2502 | O retorno e um array com a chave sendo o codigo do tema e o valor um array com a lista de ids de grupos que podem acessar | 2502 | O retorno e um array com a chave sendo o codigo do tema e o valor um array com a lista de ids de grupos que podem acessar |
| 2503 | */ | 2503 | */ |
| 2504 | function listaTemasRestritos(){ | 2504 | function listaTemasRestritos(){ |
| 2505 | - include_once(__DIR__."/../admin/php/admin.php"); | 2505 | + include_once(dirname(__FILE__)."/../admin/php/admin.php"); |
| 2506 | error_reporting(0); | 2506 | error_reporting(0); |
| 2507 | $res = pegaDados("select id_grupo,codigo_tema from ".$esquemaadmin."i3geousr_grupotema as gt,".$esquemaadmin."i3geoadmin_temas as te where gt.id_tema = te.id_tema"); | 2507 | $res = pegaDados("select id_grupo,codigo_tema from ".$esquemaadmin."i3geousr_grupotema as gt,".$esquemaadmin."i3geoadmin_temas as te where gt.id_tema = te.id_tema"); |
| 2508 | $restritos = array(); | 2508 | $restritos = array(); |
classesphp/graficos.php
| @@ -38,7 +38,7 @@ function graficoPizza() | @@ -38,7 +38,7 @@ function graficoPizza() | ||
| 38 | { | 38 | { |
| 39 | global $cp,$map_file,$itemvalores,$itemclasses,$tema,$exclui,$tipo,$R_path,$R_libpath; | 39 | global $cp,$map_file,$itemvalores,$itemclasses,$tema,$exclui,$tipo,$R_path,$R_libpath; |
| 40 | global $percentual,$nome,$margem,$margemexterna,$margeminterna,$border,$las,$radius,$lwd,$lty,$fontsub,$fontmain,$locaplic,$dir_tmp,$gw,$gh,$res,$bg,$fg,$colmain,$font,$cex,$nval,$main,$cexmain,$sub,$cexsub; | 40 | global $percentual,$nome,$margem,$margemexterna,$margeminterna,$border,$las,$radius,$lwd,$lty,$fontsub,$fontmain,$locaplic,$dir_tmp,$gw,$gh,$res,$bg,$fg,$colmain,$font,$cex,$nval,$main,$cexmain,$sub,$cexsub; |
| 41 | - //error_reporting(E_ALL); | 41 | + //error_reporting(0); |
| 42 | //gera os nomes dos arquivos com os dados | 42 | //gera os nomes dos arquivos com os dados |
| 43 | $dir = dirname(dirname($map_file)); | 43 | $dir = dirname(dirname($map_file)); |
| 44 | if($nome == "") | 44 | if($nome == "") |
| @@ -378,7 +378,7 @@ function iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$t | @@ -378,7 +378,7 @@ function iniciaDadosGrafico($map_file,$tema,$exclui,$itemclasses,$itemvalores,$t | ||
| 378 | { | 378 | { |
| 379 | global $interface; | 379 | global $interface; |
| 380 | //pega os valores | 380 | //pega os valores |
| 381 | - //error_reporting(E_ALL); | 381 | + //error_reporting(0); |
| 382 | $map = ms_newMapObj($map_file); | 382 | $map = ms_newMapObj($map_file); |
| 383 | if($interface == "googlemaps") | 383 | if($interface == "googlemaps") |
| 384 | { | 384 | { |
classesphp/mapa_controle.php
| @@ -151,7 +151,7 @@ if(isset($interfaceTemp) && $interfaceTemp != ""){ | @@ -151,7 +151,7 @@ if(isset($interfaceTemp) && $interfaceTemp != ""){ | ||
| 151 | //verifica se deve ativar o debug | 151 | //verifica se deve ativar o debug |
| 152 | // | 152 | // |
| 153 | if (isset($debug) && strtolower($debug) == "sim") | 153 | if (isset($debug) && strtolower($debug) == "sim") |
| 154 | -{error_reporting(E_ALL);} | 154 | +{error_reporting(0);} |
| 155 | // | 155 | // |
| 156 | //teste de timeout | 156 | //teste de timeout |
| 157 | // | 157 | // |
| @@ -205,7 +205,7 @@ if (!isset($map_file)) | @@ -205,7 +205,7 @@ if (!isset($map_file)) | ||
| 205 | include_once("classe_vermultilayer.php"); | 205 | include_once("classe_vermultilayer.php"); |
| 206 | include_once("classe_estatistica.php"); | 206 | include_once("classe_estatistica.php"); |
| 207 | if (isset($debug) && strtolower($debug) == "sim") | 207 | if (isset($debug) && strtolower($debug) == "sim") |
| 208 | -{error_reporting(E_ALL);} | 208 | +{error_reporting(0);} |
| 209 | // | 209 | // |
| 210 | //identifica qual a url do i3geo | 210 | //identifica qual a url do i3geo |
| 211 | // | 211 | // |
| @@ -217,7 +217,7 @@ $urli3geo = str_replace("/classesphp/mapa_controle.php","",$protocolo.$_SERVER[" | @@ -217,7 +217,7 @@ $urli3geo = str_replace("/classesphp/mapa_controle.php","",$protocolo.$_SERVER[" | ||
| 217 | //inserido na versão 4.6 | 217 | //inserido na versão 4.6 |
| 218 | // | 218 | // |
| 219 | if(!isset($locaplic)){ | 219 | if(!isset($locaplic)){ |
| 220 | - include_once(__DIR__."/../ms_configura.php"); | 220 | + include_once(dirname(__FILE__)."/../ms_configura.php"); |
| 221 | } | 221 | } |
| 222 | // | 222 | // |
| 223 | //substitui a string de conexão | 223 | //substitui a string de conexão |
| @@ -795,8 +795,8 @@ Obt&eacute;m o nome de um layer e de seu arquivo mapfile original. | @@ -795,8 +795,8 @@ Obt&eacute;m o nome de um layer e de seu arquivo mapfile original. | ||
| 795 | case "PEGAMETADATA": | 795 | case "PEGAMETADATA": |
| 796 | include_once("classe_temas.php"); | 796 | include_once("classe_temas.php"); |
| 797 | //pode pegar os metadata de um mapfile existente em i3geo/temas | 797 | //pode pegar os metadata de um mapfile existente em i3geo/temas |
| 798 | - if(file_exists(__DIR__."/../temas/".$tema.".map")){ | ||
| 799 | - $map_file = __DIR__."/../temas/".$tema.".map"; | 798 | + if(file_exists(dirname(__FILE__)."/../temas/".$tema.".map")){ |
| 799 | + $map_file = dirname(__FILE__)."/../temas/".$tema.".map"; | ||
| 800 | } | 800 | } |
| 801 | $m = new Temas($map_file,$tema); | 801 | $m = new Temas($map_file,$tema); |
| 802 | $retorno = $m->pegametadata(); | 802 | $retorno = $m->pegametadata(); |
| @@ -1117,7 +1117,7 @@ Altera uma classe de um tema, aplicando uma nova classifica&ccedil;&atilde;o ou | @@ -1117,7 +1117,7 @@ Altera uma classe de um tema, aplicando uma nova classifica&ccedil;&atilde;o ou | ||
| 1117 | if ($opcao == "alteraclasses") | 1117 | if ($opcao == "alteraclasses") |
| 1118 | { | 1118 | { |
| 1119 | //esta operação é chamada com POST via cpaint | 1119 | //esta operação é chamada com POST via cpaint |
| 1120 | - //error_reporting(E_ALL); | 1120 | + //error_reporting(0); |
| 1121 | alteraclassesPost($ids,$nomes,$exps); | 1121 | alteraclassesPost($ids,$nomes,$exps); |
| 1122 | restauraCon($map_file,$postgis_mapa); | 1122 | restauraCon($map_file,$postgis_mapa); |
| 1123 | cpjson(""); | 1123 | cpjson(""); |
classesphp/mapa_googleearth.php
| @@ -35,8 +35,12 @@ Arquivo: | @@ -35,8 +35,12 @@ Arquivo: | ||
| 35 | i3geo/classesphp/mapa_googleearth.php | 35 | i3geo/classesphp/mapa_googleearth.php |
| 36 | 36 | ||
| 37 | */ | 37 | */ |
| 38 | -//error_reporting(E_ALL); | 38 | +//error_reporting(0); |
| 39 | error_reporting(0); | 39 | error_reporting(0); |
| 40 | +//para efeitos de compatibilidade | ||
| 41 | +if (!function_exists('ms_GetVersion')){ | ||
| 42 | + include_once ("carrega_ext.php"); | ||
| 43 | +} | ||
| 40 | clearstatcache(); | 44 | clearstatcache(); |
| 41 | if (!function_exists('ms_GetVersion')) | 45 | if (!function_exists('ms_GetVersion')) |
| 42 | { | 46 | { |
classesphp/mapa_googlemaps.php
| @@ -59,8 +59,12 @@ Arquivo: | @@ -59,8 +59,12 @@ Arquivo: | ||
| 59 | i3geo/classesphp/mapa_googlemaps.php | 59 | i3geo/classesphp/mapa_googlemaps.php |
| 60 | 60 | ||
| 61 | */ | 61 | */ |
| 62 | -//error_reporting(E_ALL); | 62 | +//error_reporting(0); |
| 63 | error_reporting(0); | 63 | error_reporting(0); |
| 64 | +//para efeitos de compatibilidade | ||
| 65 | +if (!function_exists('ms_GetVersion')){ | ||
| 66 | + include_once ("carrega_ext.php"); | ||
| 67 | +} | ||
| 64 | clearstatcache(); | 68 | clearstatcache(); |
| 65 | //verificação de segurança | 69 | //verificação de segurança |
| 66 | $_SESSION = array(); | 70 | $_SESSION = array(); |
| @@ -341,7 +345,7 @@ function carregaCacheImagem(){ | @@ -341,7 +345,7 @@ function carregaCacheImagem(){ | ||
| 341 | function salvaCacheImagem($cachedir,$bbox,$layer,$map,$w,$h){ | 345 | function salvaCacheImagem($cachedir,$bbox,$layer,$map,$w,$h){ |
| 342 | global $img,$map_size; | 346 | global $img,$map_size; |
| 343 | //layers que são sempre iguais | 347 | //layers que são sempre iguais |
| 344 | - //error_reporting(E_ALL); | 348 | + //error_reporting(0); |
| 345 | if($layer == "copyright" || $layer == "") | 349 | if($layer == "copyright" || $layer == "") |
| 346 | {$bbox = "";} | 350 | {$bbox = "";} |
| 347 | if($layer == "") | 351 | if($layer == "") |
classesphp/mapa_googlemaps_alternativo.php
| @@ -59,7 +59,7 @@ Arquivo: | @@ -59,7 +59,7 @@ Arquivo: | ||
| 59 | i3geo/classesphp/mapa_googlemaps.php | 59 | i3geo/classesphp/mapa_googlemaps.php |
| 60 | 60 | ||
| 61 | */ | 61 | */ |
| 62 | -//error_reporting(E_ALL); | 62 | +//error_reporting(0); |
| 63 | error_reporting(0); | 63 | error_reporting(0); |
| 64 | clearstatcache(); | 64 | clearstatcache(); |
| 65 | //verificação de segurança | 65 | //verificação de segurança |
| @@ -346,7 +346,7 @@ function carregaCacheImagem(){ | @@ -346,7 +346,7 @@ function carregaCacheImagem(){ | ||
| 346 | function salvaCacheImagem($cachedir,$bbox,$layer,$map,$w,$h){ | 346 | function salvaCacheImagem($cachedir,$bbox,$layer,$map,$w,$h){ |
| 347 | global $img,$map_size; | 347 | global $img,$map_size; |
| 348 | //layers que são sempre iguais | 348 | //layers que são sempre iguais |
| 349 | - //error_reporting(E_ALL); | 349 | + //error_reporting(0); |
| 350 | if($layer == "copyright" || $layer == "") | 350 | if($layer == "copyright" || $layer == "") |
| 351 | {$bbox = "";} | 351 | {$bbox = "";} |
| 352 | if($layer == "") | 352 | if($layer == "") |
classesphp/mapa_openlayers.php
| @@ -59,6 +59,10 @@ i3geo/classesphp/mapa_openlayers.php | @@ -59,6 +59,10 @@ i3geo/classesphp/mapa_openlayers.php | ||
| 59 | 59 | ||
| 60 | */ | 60 | */ |
| 61 | error_reporting(0); | 61 | error_reporting(0); |
| 62 | +//para efeitos de compatibilidade | ||
| 63 | +if (!function_exists('ms_GetVersion')){ | ||
| 64 | + include_once ("carrega_ext.php"); | ||
| 65 | +} | ||
| 62 | //carrega dados da seção, verifica segurança | 66 | //carrega dados da seção, verifica segurança |
| 63 | inicializa(); | 67 | inicializa(); |
| 64 | // | 68 | // |
classesphp/wmswfs.php
| @@ -335,7 +335,7 @@ function temaswms() | @@ -335,7 +335,7 @@ function temaswms() | ||
| 335 | 335 | ||
| 336 | include_once("../admin/php/webservices.php"); | 336 | include_once("../admin/php/webservices.php"); |
| 337 | 337 | ||
| 338 | - //error_reporting(E_ALL); | 338 | + //error_reporting(0); |
| 339 | if($wms_service_request == "erro") { | 339 | if($wms_service_request == "erro") { |
| 340 | # Cannot download the capabilities file. | 340 | # Cannot download the capabilities file. |
| 341 | //registra a tentativa de acesso | 341 | //registra a tentativa de acesso |
ferramentas/agrupaelementos/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -17,7 +17,7 @@ Salva o mapa acrescentando um novo layer com o resultado. | @@ -17,7 +17,7 @@ Salva o mapa acrescentando um novo layer com o resultado. | ||
| 17 | 17 | ||
| 18 | */ | 18 | */ |
| 19 | case "AGRUPAELEMENTOS": | 19 | case "AGRUPAELEMENTOS": |
| 20 | - include_once(__DIR__."/../../classesphp/classe_analise.php"); | 20 | + include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
| 21 | copiaSeguranca($map_file); | 21 | copiaSeguranca($map_file); |
| 22 | $m = new Analise($map_file,$tema); | 22 | $m = new Analise($map_file,$tema); |
| 23 | $retorno = $m->agrupaElementos($item,$locaplic); | 23 | $retorno = $m->agrupaElementos($item,$locaplic); |
ferramentas/aplicarsld/upload.php
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | require_once("../../classesphp/pega_variaveis.php"); | 2 | require_once("../../classesphp/pega_variaveis.php"); |
| 3 | require_once("../../classesphp/funcoes_gerais.php"); | 3 | require_once("../../classesphp/funcoes_gerais.php"); |
| 4 | include_once ("../../classesphp/carrega_ext.php"); | 4 | include_once ("../../classesphp/carrega_ext.php"); |
| 5 | -error_reporting(E_ALL); | 5 | +error_reporting(0); |
| 6 | session_name("i3GeoPHP"); | 6 | session_name("i3GeoPHP"); |
| 7 | if (isset($g_sid)) | 7 | if (isset($g_sid)) |
| 8 | {session_id($g_sid);} | 8 | {session_id($g_sid);} |
ferramentas/buffer/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com o buffer. | @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com o buffer. | ||
| 16 | <Analise->criaBuffer> | 16 | <Analise->criaBuffer> |
| 17 | */ | 17 | */ |
| 18 | case "CRIABUFFER": | 18 | case "CRIABUFFER": |
| 19 | - include_once(__DIR__."/../../classesphp/classe_analise.php"); | 19 | + include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
| 20 | copiaSeguranca($map_file); | 20 | copiaSeguranca($map_file); |
| 21 | $m = new Analise($map_file,$tema,$locaplic,$ext); | 21 | $m = new Analise($map_file,$tema,$locaplic,$ext); |
| 22 | $retorno = $m->criaBuffer($distancia,$locaplic,$unir,$wkt); | 22 | $retorno = $m->criaBuffer($distancia,$locaplic,$unir,$wkt); |
ferramentas/centroide/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com os pontos. | @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com os pontos. | ||
| 16 | <Analise->criaCentroide> | 16 | <Analise->criaCentroide> |
| 17 | */ | 17 | */ |
| 18 | case "CRIACENTROIDE": | 18 | case "CRIACENTROIDE": |
| 19 | - include_once(__DIR__."/../../classesphp/classe_analise.php"); | 19 | + include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
| 20 | copiaSeguranca($map_file); | 20 | copiaSeguranca($map_file); |
| 21 | $m = new Analise($map_file,$tema,$locaplic,$ext); | 21 | $m = new Analise($map_file,$tema,$locaplic,$ext); |
| 22 | $retorno = $m->criaCentroide($locaplic); | 22 | $retorno = $m->criaCentroide($locaplic); |
ferramentas/centromassa/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com o ponto. | @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com o ponto. | ||
| 16 | <Analise->centroMassa> | 16 | <Analise->centroMassa> |
| 17 | */ | 17 | */ |
| 18 | case "CENTROMASSA": | 18 | case "CENTROMASSA": |
| 19 | - include_once(__DIR__."/../../classesphp/classe_analise.php"); | 19 | + include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
| 20 | copiaSeguranca($map_file); | 20 | copiaSeguranca($map_file); |
| 21 | $m = new Analise($map_file,$tema,$locaplic,$ext); | 21 | $m = new Analise($map_file,$tema,$locaplic,$ext); |
| 22 | $retorno = $m->centroMassa($item); | 22 | $retorno = $m->centroMassa($item); |
ferramentas/colourramp/index.php
| 1 | <?php | 1 | <?php |
| 2 | - include_once(__DIR__."/../../classesphp/pega_variaveis.php"); | ||
| 3 | - include_once(__DIR__."/../../classesphp/class.palette.php"); | 2 | + include_once(dirname(__FILE__)."/../../classesphp/pega_variaveis.php"); |
| 3 | + include_once(dirname(__FILE__)."/../../classesphp/class.palette.php"); | ||
| 4 | $m = new palette(); | 4 | $m = new palette(); |
| 5 | - $lista = implode(",",($m->listaColourRamps(__DIR__."/../.."))); | 5 | + $lista = implode(",",($m->listaColourRamps(dirname(__FILE__)."/../.."))); |
| 6 | if(!isset($ncores)) | 6 | if(!isset($ncores)) |
| 7 | {$ncores = 10;} | 7 | {$ncores = 10;} |
| 8 | if(empty($locaplic)){ | 8 | if(empty($locaplic)){ |
ferramentas/conectargeojson/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -14,7 +14,7 @@ Adiciona um tema baseado em uma URL GeoJson. | @@ -14,7 +14,7 @@ Adiciona um tema baseado em uma URL GeoJson. | ||
| 14 | <Mapa->adicionaTemaGeoJson> | 14 | <Mapa->adicionaTemaGeoJson> |
| 15 | */ | 15 | */ |
| 16 | case "ADICIONATEMAGEOJSON": | 16 | case "ADICIONATEMAGEOJSON": |
| 17 | - include_once(__DIR__."/../../classesphp/classe_mapa.php"); | 17 | + include_once(dirname(__FILE__)."/../../classesphp/classe_mapa.php"); |
| 18 | copiaSeguranca($map_file); | 18 | copiaSeguranca($map_file); |
| 19 | $m = new Mapa($map_file); | 19 | $m = new Mapa($map_file); |
| 20 | $retorno = $m->adicionaTemaGeoJson($servico,$dir_tmp,$locaplic); | 20 | $retorno = $m->adicionaTemaGeoJson($servico,$dir_tmp,$locaplic); |
ferramentas/conectargeorss/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -14,7 +14,7 @@ Adiciona um tema baseado em um RSS. | @@ -14,7 +14,7 @@ Adiciona um tema baseado em um RSS. | ||
| 14 | <Mapa->adicionaTemaGeoRSS> | 14 | <Mapa->adicionaTemaGeoRSS> |
| 15 | */ | 15 | */ |
| 16 | case "ADICIONATEMAGEORSS": | 16 | case "ADICIONATEMAGEORSS": |
| 17 | - include_once(__DIR__."/../../classesphp/classe_mapa.php"); | 17 | + include_once(dirname(__FILE__)."/../../classesphp/classe_mapa.php"); |
| 18 | copiaSeguranca($map_file); | 18 | copiaSeguranca($map_file); |
| 19 | $m = new Mapa($map_file); | 19 | $m = new Mapa($map_file); |
| 20 | $retorno = $m->adicionaTemaGeoRSS($servico,$dir_tmp,$locaplic,$canal); | 20 | $retorno = $m->adicionaTemaGeoRSS($servico,$dir_tmp,$locaplic,$canal); |
ferramentas/convertews/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -14,7 +14,7 @@ Converte o mapa atual em um wms e wmc. | @@ -14,7 +14,7 @@ Converte o mapa atual em um wms e wmc. | ||
| 14 | <Mapa->converteWMC> | 14 | <Mapa->converteWMC> |
| 15 | */ | 15 | */ |
| 16 | case "CONVERTEWMSWMC": | 16 | case "CONVERTEWMSWMC": |
| 17 | - include_once(__DIR__."/../../classesphp/classe_mapa.php"); | 17 | + include_once(dirname(__FILE__)."/../../classesphp/classe_mapa.php"); |
| 18 | $m = new Mapa($map_file); | 18 | $m = new Mapa($map_file); |
| 19 | if(!isset($h)){$h = "";} | 19 | if(!isset($h)){$h = "";} |
| 20 | $wms = $m->converteWS($locmapserv,$h); | 20 | $wms = $m->converteWS($locmapserv,$h); |
ferramentas/dissolve/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com o resultado. | @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com o resultado. | ||
| 16 | <Analise->dissolvePoligono> | 16 | <Analise->dissolvePoligono> |
| 17 | */ | 17 | */ |
| 18 | case "DISSOLVEPOLIGONO": | 18 | case "DISSOLVEPOLIGONO": |
| 19 | - include_once(__DIR__."/../../classesphp/classe_analise.php"); | 19 | + include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
| 20 | copiaSeguranca($map_file); | 20 | copiaSeguranca($map_file); |
| 21 | $m = new Analise($map_file,$tema); | 21 | $m = new Analise($map_file,$tema); |
| 22 | $retorno = $m->dissolvePoligono($item,$locaplic); | 22 | $retorno = $m->dissolvePoligono($item,$locaplic); |
ferramentas/distanciaptpt/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -16,7 +16,7 @@ S&atilde;o considerados apenas os pontos próximos definidos por um buffer. | @@ -16,7 +16,7 @@ S&atilde;o considerados apenas os pontos próximos definidos por um buffer. | ||
| 16 | <Analise->distanciaptpt> | 16 | <Analise->distanciaptpt> |
| 17 | */ | 17 | */ |
| 18 | case "DISTANCIAPTPT": | 18 | case "DISTANCIAPTPT": |
| 19 | - include_once(__DIR__."/../../classesphp/classe_analise.php"); | 19 | + include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
| 20 | copiaSeguranca($map_file); | 20 | copiaSeguranca($map_file); |
| 21 | $m = new Analise($map_file,$temaorigem,$locaplic,$ext); | 21 | $m = new Analise($map_file,$temaorigem,$locaplic,$ext); |
| 22 | $temaoverlay = $m->criaBuffer($distancia,$locaplic); | 22 | $temaoverlay = $m->criaBuffer($distancia,$locaplic); |
ferramentas/etiqueta/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -14,7 +14,7 @@ Ativa as etiquetas de um tema. | @@ -14,7 +14,7 @@ Ativa as etiquetas de um tema. | ||
| 14 | <Toponimia->ativaEtiquetas> | 14 | <Toponimia->ativaEtiquetas> |
| 15 | */ | 15 | */ |
| 16 | case "ATIVAETIQUETAS": | 16 | case "ATIVAETIQUETAS": |
| 17 | - include_once(__DIR__."/../../classesphp/classe_toponimia.php"); | 17 | + include_once(dirname(__FILE__)."/../../classesphp/classe_toponimia.php"); |
| 18 | copiaSeguranca($map_file); | 18 | copiaSeguranca($map_file); |
| 19 | $m = new Toponimia($map_file,$tema); | 19 | $m = new Toponimia($map_file,$tema); |
| 20 | $retorno = $m->ativaEtiquetas($item); | 20 | $retorno = $m->ativaEtiquetas($item); |
| @@ -29,7 +29,7 @@ Desativa as etiquetas de um tema. | @@ -29,7 +29,7 @@ Desativa as etiquetas de um tema. | ||
| 29 | <Toponimia->removeEtiquetas> | 29 | <Toponimia->removeEtiquetas> |
| 30 | */ | 30 | */ |
| 31 | case "REMOVEETIQUETAS": | 31 | case "REMOVEETIQUETAS": |
| 32 | - include_once(__DIR__."/../../classesphp/classe_toponimia.php"); | 32 | + include_once(dirname(__FILE__)."/../../classesphp/classe_toponimia.php"); |
| 33 | copiaSeguranca($map_file); | 33 | copiaSeguranca($map_file); |
| 34 | $m = new Toponimia($map_file,$tema); | 34 | $m = new Toponimia($map_file,$tema); |
| 35 | $retorno = $m->removeEtiquetas(); | 35 | $retorno = $m->removeEtiquetas(); |
ferramentas/filtro/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -14,7 +14,7 @@ Pega a string do filtro de um tema. | @@ -14,7 +14,7 @@ Pega a string do filtro de um tema. | ||
| 14 | <Temas->pegaFiltro> | 14 | <Temas->pegaFiltro> |
| 15 | */ | 15 | */ |
| 16 | case "PEGAFILTRO": | 16 | case "PEGAFILTRO": |
| 17 | - include_once(__DIR__."/../../classesphp/classe_temas.php"); | 17 | + include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php"); |
| 18 | $m = new Temas($map_file,$tema); | 18 | $m = new Temas($map_file,$tema); |
| 19 | $retorno = $m->pegaFiltro(); | 19 | $retorno = $m->pegaFiltro(); |
| 20 | break; | 20 | break; |
| @@ -26,7 +26,7 @@ Inclui um filtro no tema. | @@ -26,7 +26,7 @@ Inclui um filtro no tema. | ||
| 26 | <Temas->insereFiltro> | 26 | <Temas->insereFiltro> |
| 27 | */ | 27 | */ |
| 28 | case "INSEREFILTRO": | 28 | case "INSEREFILTRO": |
| 29 | - include_once(__DIR__."/../../classesphp/classe_temas.php"); | 29 | + include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php"); |
| 30 | copiaSeguranca($map_file); | 30 | copiaSeguranca($map_file); |
| 31 | $m = new Temas($map_file,$tema); | 31 | $m = new Temas($map_file,$tema); |
| 32 | if(!isset($testa)){$testa="";} | 32 | if(!isset($testa)){$testa="";} |
ferramentas/gradecoord/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -21,7 +21,7 @@ Pega os dados necess&aacute;rios para a gera&ccedil;&atilde;o dos gr&aacute;fico | @@ -21,7 +21,7 @@ Pega os dados necess&aacute;rios para a gera&ccedil;&atilde;o dos gr&aacute;fico | ||
| 21 | <iniciaDadosGrafico> | 21 | <iniciaDadosGrafico> |
| 22 | */ | 22 | */ |
| 23 | case "GRAFICOSELECAO": | 23 | case "GRAFICOSELECAO": |
| 24 | - include_once(__DIR__."/../../classesphp/graficos.php"); | 24 | + include_once(dirname(__FILE__)."/../../classesphp/graficos.php"); |
| 25 | if(!isset($exclui)) | 25 | if(!isset($exclui)) |
| 26 | {$exclui = "";} | 26 | {$exclui = "";} |
| 27 | if(!isset($tipo)) | 27 | if(!isset($tipo)) |
ferramentas/gradehex/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com a grade. | @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com a grade. | ||
| 16 | <Analise->gradeDeHex> | 16 | <Analise->gradeDeHex> |
| 17 | */ | 17 | */ |
| 18 | case "GRADEDEHEX": | 18 | case "GRADEDEHEX": |
| 19 | - include_once(__DIR__."/../../classesphp/classe_analise.php"); | 19 | + include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
| 20 | copiaSeguranca($map_file); | 20 | copiaSeguranca($map_file); |
| 21 | $m = new Analise($map_file,$tema); | 21 | $m = new Analise($map_file,$tema); |
| 22 | if(!isset($tema)){$tema = "";} | 22 | if(!isset($tema)){$tema = "";} |
ferramentas/gradepol/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com a grade. | @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com a grade. | ||
| 16 | <Analise->gradeDePol> | 16 | <Analise->gradeDePol> |
| 17 | */ | 17 | */ |
| 18 | case "GRADEDEPOL": | 18 | case "GRADEDEPOL": |
| 19 | - include_once(__DIR__."/../../classesphp/classe_analise.php"); | 19 | + include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
| 20 | copiaSeguranca($map_file); | 20 | copiaSeguranca($map_file); |
| 21 | if(!isset($tema)){$tema = "";} | 21 | if(!isset($tema)){$tema = "";} |
| 22 | $m = new Analise($map_file,$tema); | 22 | $m = new Analise($map_file,$tema); |
ferramentas/gradepontos/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com a grade de coordenadas. | @@ -16,7 +16,7 @@ Salva o mapa acrescentando um novo layer com a grade de coordenadas. | ||
| 16 | <Analise->gradeDePontos> | 16 | <Analise->gradeDePontos> |
| 17 | */ | 17 | */ |
| 18 | case "GRADEDEPONTOS": | 18 | case "GRADEDEPONTOS": |
| 19 | - include_once(__DIR__."/../../classesphp/classe_analise.php"); | 19 | + include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
| 20 | copiaSeguranca($map_file); | 20 | copiaSeguranca($map_file); |
| 21 | if(!isset($tema)){$tema = "";} | 21 | if(!isset($tema)){$tema = "";} |
| 22 | $m = new Analise($map_file,$tema); | 22 | $m = new Analise($map_file,$tema); |
ferramentas/graficointerativo/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -14,7 +14,7 @@ Pega os dados necessários para a geração dos gráficos da ferramenta seleção | @@ -14,7 +14,7 @@ Pega os dados necessários para a geração dos gráficos da ferramenta seleção | ||
| 14 | <iniciaDadosGrafico> | 14 | <iniciaDadosGrafico> |
| 15 | */ | 15 | */ |
| 16 | case "GRAFICOSELECAO": | 16 | case "GRAFICOSELECAO": |
| 17 | - include(__DIR__."/../../classesphp/graficos.php"); | 17 | + include(dirname(__FILE__)."/../../classesphp/graficos.php"); |
| 18 | if(!isset($exclui)) | 18 | if(!isset($exclui)) |
| 19 | {$exclui = "";} | 19 | {$exclui = "";} |
| 20 | if(!isset($tipo)) | 20 | if(!isset($tipo)) |
ferramentas/graficotema/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -14,7 +14,7 @@ Gera graficos automaticamente para os elementos de um tema | @@ -14,7 +14,7 @@ Gera graficos automaticamente para os elementos de um tema | ||
| 14 | <Temas->graficotema> | 14 | <Temas->graficotema> |
| 15 | */ | 15 | */ |
| 16 | case "GRAFICOTEMA": | 16 | case "GRAFICOTEMA": |
| 17 | - include_once(__DIR__."/../../classesphp/classe_temas.php"); | 17 | + include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php"); |
| 18 | copiaSeguranca($map_file); | 18 | copiaSeguranca($map_file); |
| 19 | $m = new Temas($map_file,$tema,$locaplic); | 19 | $m = new Temas($map_file,$tema,$locaplic); |
| 20 | $m->graficotema($lista,$tamanho,$tipo,$outlinecolor,$offset); | 20 | $m->graficotema($lista,$tamanho,$tipo,$outlinecolor,$offset); |
ferramentas/importarwmc/upload.php
| 1 | <?php | 1 | <?php |
| 2 | require_once("../../classesphp/funcoes_gerais.php"); | 2 | require_once("../../classesphp/funcoes_gerais.php"); |
| 3 | include_once ("../../classesphp/carrega_ext.php"); | 3 | include_once ("../../classesphp/carrega_ext.php"); |
| 4 | -error_reporting(E_ALL); | 4 | +error_reporting(0); |
| 5 | session_name("i3GeoPHP"); | 5 | session_name("i3GeoPHP"); |
| 6 | if (isset($_POST["g_sid"])) | 6 | if (isset($_POST["g_sid"])) |
| 7 | {session_id($_POST["g_sid"]);} | 7 | {session_id($_POST["g_sid"]);} |
| @@ -16,7 +16,7 @@ $map_file = $_SESSION["map_file"]; | @@ -16,7 +16,7 @@ $map_file = $_SESSION["map_file"]; | ||
| 16 | <body bgcolor="white" style="background-color:white;text-align:left;"> | 16 | <body bgcolor="white" style="background-color:white;text-align:left;"> |
| 17 | <p> | 17 | <p> |
| 18 | <?php | 18 | <?php |
| 19 | -error_reporting(E_ALL); | 19 | +error_reporting(0); |
| 20 | require_once ("../../ms_configura.php"); | 20 | require_once ("../../ms_configura.php"); |
| 21 | $dirmap = dirname($map_file); | 21 | $dirmap = dirname($map_file); |
| 22 | $arquivo = ""; | 22 | $arquivo = ""; |
ferramentas/imprimir/geotif.php
| @@ -59,7 +59,7 @@ if (array_search( "MapScript", $exts) != TRUE) | @@ -59,7 +59,7 @@ if (array_search( "MapScript", $exts) != TRUE) | ||
| 59 | {dl('php_mapscript.so');} | 59 | {dl('php_mapscript.so');} |
| 60 | } | 60 | } |
| 61 | require("../../classesphp/funcoes_gerais.php"); | 61 | require("../../classesphp/funcoes_gerais.php"); |
| 62 | -error_reporting(E_ALL); | 62 | +error_reporting(0); |
| 63 | $nomes = nomeRandomico(); | 63 | $nomes = nomeRandomico(); |
| 64 | $map = ms_newMapObj($map_file); | 64 | $map = ms_newMapObj($map_file); |
| 65 | $temp = str_replace(".map","xxx.map",$map_file); | 65 | $temp = str_replace(".map","xxx.map",$map_file); |
ferramentas/imprimir/swf.php
| @@ -29,7 +29,7 @@ if (array_search( "MapScript", $exts) != TRUE) | @@ -29,7 +29,7 @@ if (array_search( "MapScript", $exts) != TRUE) | ||
| 29 | {dl('php_mapscript.so');} | 29 | {dl('php_mapscript.so');} |
| 30 | } | 30 | } |
| 31 | require("../../classesphp/funcoes_gerais.php"); | 31 | require("../../classesphp/funcoes_gerais.php"); |
| 32 | -error_reporting(E_ALL); | 32 | +error_reporting(0); |
| 33 | $nomes = nomeRandomico(); | 33 | $nomes = nomeRandomico(); |
| 34 | $map = ms_newMapObj($map_file); | 34 | $map = ms_newMapObj($map_file); |
| 35 | $legenda =$map->legend; | 35 | $legenda =$map->legend; |
ferramentas/inicia.php
| @@ -26,7 +26,7 @@ GNU junto com este programa; se n&atilde;o, escreva para a | @@ -26,7 +26,7 @@ GNU junto com este programa; se n&atilde;o, escreva para a | ||
| 26 | Free Software Foundation, Inc., no endereço | 26 | Free Software Foundation, Inc., no endereço |
| 27 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | 27 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
| 28 | */ | 28 | */ |
| 29 | -include_once(__DIR__."/../classesphp/pega_variaveis.php"); | 29 | +include_once(dirname(__FILE__)."/../classesphp/pega_variaveis.php"); |
| 30 | session_name("i3GeoPHP"); | 30 | session_name("i3GeoPHP"); |
| 31 | session_id($g_sid); | 31 | session_id($g_sid); |
| 32 | session_start(); | 32 | session_start(); |
| @@ -35,7 +35,7 @@ foreach(array_keys($_SESSION) as $k){ | @@ -35,7 +35,7 @@ foreach(array_keys($_SESSION) as $k){ | ||
| 35 | eval("\$".$k."='".$_SESSION[$k]."';"); | 35 | eval("\$".$k."='".$_SESSION[$k]."';"); |
| 36 | } | 36 | } |
| 37 | $postgis_mapa = $_SESSION["postgis_mapa"]; | 37 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
| 38 | -include_once(__DIR__."/../classesphp/funcoes_gerais.php"); | 38 | +include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); |
| 39 | if(isset($fingerprint)) { | 39 | if(isset($fingerprint)) { |
| 40 | $f = explode(",",$fingerprint); | 40 | $f = explode(",",$fingerprint); |
| 41 | if($f[0] != md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id())){ | 41 | if($f[0] != md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id())){ |
| @@ -43,9 +43,9 @@ if(isset($fingerprint)) { | @@ -43,9 +43,9 @@ if(isset($fingerprint)) { | ||
| 43 | return; | 43 | return; |
| 44 | } | 44 | } |
| 45 | } | 45 | } |
| 46 | -include_once(__DIR__."/../ms_configura.php"); | ||
| 47 | -include_once(__DIR__."/../classesphp/classe_vermultilayer.php"); | ||
| 48 | -include_once(__DIR__."/../classesphp/classe_estatistica.php"); | 46 | +include_once(dirname(__FILE__)."/../ms_configura.php"); |
| 47 | +include_once(dirname(__FILE__)."/../classesphp/classe_vermultilayer.php"); | ||
| 48 | +include_once(dirname(__FILE__)."/../classesphp/classe_estatistica.php"); | ||
| 49 | // | 49 | // |
| 50 | //substitui a string de conexão | 50 | //substitui a string de conexão |
| 51 | // | 51 | // |
| @@ -60,12 +60,12 @@ function redesenhaMapa() | @@ -60,12 +60,12 @@ function redesenhaMapa() | ||
| 60 | {$utilizacgi = "nao";} | 60 | {$utilizacgi = "nao";} |
| 61 | if (connection_aborted()){exit();} | 61 | if (connection_aborted()){exit();} |
| 62 | if($interface == "googleearth" && $mapexten != ""){ | 62 | if($interface == "googleearth" && $mapexten != ""){ |
| 63 | - include_once(__DIR__."/../classesphp/classe_navegacao.php"); | 63 | + include_once(dirname(__FILE__)."/../classesphp/classe_navegacao.php"); |
| 64 | $m = new Navegacao($map_file); | 64 | $m = new Navegacao($map_file); |
| 65 | $m->mudaExtensao($mapexten); | 65 | $m->mudaExtensao($mapexten); |
| 66 | $m->salva(); | 66 | $m->salva(); |
| 67 | } | 67 | } |
| 68 | - include_once(__DIR__."/../classesphp/classe_mapa.php"); | 68 | + include_once(dirname(__FILE__)."/../classesphp/classe_mapa.php"); |
| 69 | $m = New Mapa($map_file); | 69 | $m = New Mapa($map_file); |
| 70 | $par = $m->parametrosTemas(); | 70 | $par = $m->parametrosTemas(); |
| 71 | // | 71 | // |
ferramentas/inserexy2/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -14,7 +14,7 @@ Insere um ponto em um shape file existente. | @@ -14,7 +14,7 @@ Insere um ponto em um shape file existente. | ||
| 14 | <SHP->insereSHP> | 14 | <SHP->insereSHP> |
| 15 | */ | 15 | */ |
| 16 | case "INSERESHP": | 16 | case "INSERESHP": |
| 17 | - include_once(__DIR__."/../../classesphp/classe_shp.php"); | 17 | + include_once(dirname(__FILE__)."/../../classesphp/classe_shp.php"); |
| 18 | copiaSeguranca($map_file); | 18 | copiaSeguranca($map_file); |
| 19 | $m = new SHP($map_file,$tema); | 19 | $m = new SHP($map_file,$tema); |
| 20 | if (!isset($projecao)){$projecao = "";} | 20 | if (!isset($projecao)){$projecao = "";} |
ferramentas/legenda/exec.php
| 1 | <?php | 1 | <?php |
| 2 | -include_once(__DIR__."/../inicia.php"); | 2 | +include_once(dirname(__FILE__)."/../inicia.php"); |
| 3 | // | 3 | // |
| 4 | //faz a busca da função que deve ser executada | 4 | //faz a busca da função que deve ser executada |
| 5 | // | 5 | // |
| @@ -14,7 +14,7 @@ Mostra na tela o SLD de um tema | @@ -14,7 +14,7 @@ Mostra na tela o SLD de um tema | ||
| 14 | <Temas->sld> | 14 | <Temas->sld> |
| 15 | */ | 15 | */ |
| 16 | case "TEMA2SLD": | 16 | case "TEMA2SLD": |
| 17 | - include_once(__DIR__."/../../classesphp/classe_temas.php"); | 17 | + include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php"); |
| 18 | $m = new Temas($map_file,$tema); | 18 | $m = new Temas($map_file,$tema); |
| 19 | $sld = $m->sld(); | 19 | $sld = $m->sld(); |
| 20 | echo header('Content-Disposition: attachment; filename="'.$tema.'.sld"'); | 20 | echo header('Content-Disposition: attachment; filename="'.$tema.'.sld"'); |
| @@ -30,7 +30,7 @@ Adiciona LABEL em uma classe de um layer | @@ -30,7 +30,7 @@ Adiciona LABEL em uma classe de um layer | ||
| 30 | <Temas->adicionaLabel> | 30 | <Temas->adicionaLabel> |
| 31 | */ | 31 | */ |
| 32 | case "ADICIONALABELCLASSE": | 32 | case "ADICIONALABELCLASSE": |
| 33 | - include_once(__DIR__."/../../classesphp/classe_temas.php"); | 33 | + include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php"); |
| 34 | $m = new Temas($map_file,$tema); | 34 | $m = new Temas($map_file,$tema); |
| 35 | $l = $m->mapa->getlayerbyname($tema); | 35 | $l = $m->mapa->getlayerbyname($tema); |
| 36 | if(empty($item)) | 36 | if(empty($item)) |
| @@ -49,7 +49,7 @@ function: REMOVELABELCLASSE | @@ -49,7 +49,7 @@ function: REMOVELABELCLASSE | ||
| 49 | Remove LABEL em uma classe de um layer | 49 | Remove LABEL em uma classe de um layer |
| 50 | */ | 50 | */ |
| 51 | case "REMOVELABELCLASSE": | 51 | case "REMOVELABELCLASSE": |
| 52 | - include_once(__DIR__."/../../classesphp/classe_temas.php"); | 52 | + include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php"); |
| 53 | $m = new Temas($map_file,$tema); | 53 | $m = new Temas($map_file,$tema); |
| 54 | $m->removeLabel($classe); | 54 | $m->removeLabel($classe); |
| 55 | $m->salva(); | 55 | $m->salva(); |
| @@ -63,7 +63,7 @@ Cria elementos para construir uma legenda no formato de tabela em HTML. | @@ -63,7 +63,7 @@ Cria elementos para construir uma legenda no formato de tabela em HTML. | ||
| 63 | <Legenda->tabelaLegenda> | 63 | <Legenda->tabelaLegenda> |
| 64 | */ | 64 | */ |
| 65 | case "EDITALEGENDA": | 65 | case "EDITALEGENDA": |
| 66 | - include_once(__DIR__."/../../classesphp/classe_legenda.php"); | 66 | + include_once(dirname(__FILE__)."/../../classesphp/classe_legenda.php"); |
| 67 | $m = new Legenda($map_file,$locaplic,$tema); | 67 | $m = new Legenda($map_file,$locaplic,$tema); |
| 68 | $r = $m->tabelaLegenda(); | 68 | $r = $m->tabelaLegenda(); |
| 69 | if (!$r){$r = "erro.Erro legenda nao disponivel";} | 69 | if (!$r){$r = "erro.Erro legenda nao disponivel";} |
| @@ -77,7 +77,7 @@ Acrescenta a contagem de elementos em cada classe. | @@ -77,7 +77,7 @@ Acrescenta a contagem de elementos em cada classe. | ||
| 77 | <Legenda->tabelaLegenda> | 77 | <Legenda->tabelaLegenda> |
| 78 | */ | 78 | */ |
| 79 | case "CONTAGEMCLASSE": | 79 | case "CONTAGEMCLASSE": |
| 80 | - include_once(__DIR__."/../../classesphp/classe_legenda.php"); | 80 | + include_once(dirname(__FILE__)."/../../classesphp/classe_legenda.php"); |
| 81 | $m = new Legenda($map_file,$locaplic,$tema); | 81 | $m = new Legenda($map_file,$locaplic,$tema); |
| 82 | $r = $m->tabelaLegenda("sim"); | 82 | $r = $m->tabelaLegenda("sim"); |
| 83 | if (!$r){$r = "erro.Erro legenda nao disponivel";} | 83 | if (!$r){$r = "erro.Erro legenda nao disponivel";} |
ferramentas/metaestat/analise.php
| @@ -38,8 +38,8 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | @@ -38,8 +38,8 @@ O par&acirc;metro principal &eacute; "funcao", que define qual opera&ccedil;&ati | ||
| 38 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. | 38 | Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação. |
| 39 | */ | 39 | */ |
| 40 | error_reporting(0); | 40 | error_reporting(0); |
| 41 | -include(__DIR__."/../../admin/php/admin.php"); | ||
| 42 | -include(__DIR__."/../../admin/php/classe_metaestat.php"); | 41 | +include(dirname(__FILE__)."/../../admin/php/admin.php"); |
| 42 | +include(dirname(__FILE__)."/../../admin/php/classe_metaestat.php"); | ||
| 43 | session_name("i3GeoPHP"); | 43 | session_name("i3GeoPHP"); |
| 44 | session_id($g_sid); | 44 | session_id($g_sid); |
| 45 | session_start(); | 45 | session_start(); |