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