Commit 4a6cb44c2a14aed0d383274b52618211c0a40f47
1 parent
6f9765ab
Exists in
master
correção no ms_criamapa e classe_mapa
Showing
2 changed files
with
10 additions
and
10 deletions
Show diff stats
classesphp/classe_mapa.php
@@ -1085,9 +1085,9 @@ class Mapa | @@ -1085,9 +1085,9 @@ class Mapa | ||
1085 | $extensao = ".gvp"; | 1085 | $extensao = ".gvp"; |
1086 | } | 1086 | } |
1087 | if($extensao == ".php"){ | 1087 | if($extensao == ".php"){ |
1088 | - include_once($locaplic."/temas/".$nome.".php"); | 1088 | + //include_once($locaplic."/temas/".$nome.".php"); |
1089 | if(function_exists($nome)){ | 1089 | if(function_exists($nome)){ |
1090 | - eval($nome."(\$this->mapa);"); | 1090 | + //eval($nome."(\$this->mapa);"); |
1091 | } | 1091 | } |
1092 | } | 1092 | } |
1093 | if($extensao == ".gvp"){ | 1093 | if($extensao == ".gvp"){ |
ms_criamapa.php
@@ -466,10 +466,10 @@ $_SESSION["map_file"] = $tmpfname; | @@ -466,10 +466,10 @@ $_SESSION["map_file"] = $tmpfname; | ||
466 | $_SESSION["mapext"] = $mapext; | 466 | $_SESSION["mapext"] = $mapext; |
467 | if (isset($executa)) | 467 | if (isset($executa)) |
468 | { | 468 | { |
469 | - if (file_exists($executa)) | ||
470 | - {include_once ($executa);} | ||
471 | - if (function_exists($executa)) | ||
472 | - {eval($executa."();");} | 469 | + //if (file_exists($executa)) |
470 | + //{include_once ($executa);} | ||
471 | + //if (function_exists($executa)) | ||
472 | + //{eval($executa."();");} | ||
473 | } | 473 | } |
474 | if(isset($wkt)) | 474 | if(isset($wkt)) |
475 | {insereWKTUrl();} | 475 | {insereWKTUrl();} |
@@ -647,10 +647,10 @@ function incluiTemasIniciais(){ | @@ -647,10 +647,10 @@ function incluiTemasIniciais(){ | ||
647 | $arqtemp = $arqt; | 647 | $arqtemp = $arqt; |
648 | } | 648 | } |
649 | if ((strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) && (file_exists($temasdir."\\".$arqt."php"))){ | 649 | if ((strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) && (file_exists($temasdir."\\".$arqt."php"))){ |
650 | - $extensao = ".php"; | 650 | + //$extensao = ".php"; |
651 | } | 651 | } |
652 | elseif (file_exists($temasdir."/".$arqt.".php")){ | 652 | elseif (file_exists($temasdir."/".$arqt.".php")){ |
653 | - $extensao = ".php"; | 653 | + //$extensao = ".php"; |
654 | } | 654 | } |
655 | if ((strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) && (file_exists($temasdir."\\".$arqt."gvp"))){ | 655 | if ((strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) && (file_exists($temasdir."\\".$arqt."gvp"))){ |
656 | $extensao = ".gvp"; | 656 | $extensao = ".gvp"; |
@@ -717,8 +717,8 @@ function incluiTemasIniciais(){ | @@ -717,8 +717,8 @@ function incluiTemasIniciais(){ | ||
717 | } | 717 | } |
718 | } | 718 | } |
719 | if($extensao == ".php"){ | 719 | if($extensao == ".php"){ |
720 | - include_once($arqtemp); | ||
721 | - eval($arqt."(\$mapn);"); | 720 | + //include_once($arqtemp); |
721 | + //eval($arqt."(\$mapn);"); | ||
722 | } | 722 | } |
723 | if($extensao == ".gvp"){ | 723 | if($extensao == ".gvp"){ |
724 | include_once($locaplic."/pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php"); | 724 | include_once($locaplic."/pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php"); |