Commit d794c3f6fb48eebd21cf55e0db29264ecbc21a96

Authored by Edmar Moretti
1 parent 6afe8e7b
Exists in master

correção no ms_criamapa.php

Showing 2 changed files with 7 additions and 7 deletions   Show diff stats
classesphp/classe_mapa.php
... ... @@ -1233,16 +1233,16 @@ class Mapa
1233 1233 //
1234 1234 $extensao = ".map";
1235 1235 if ((file_exists($locaplic."/temas/".$nome.".php")) || (file_exists($nome.".php"))){
1236   - $extensao = ".php";
  1236 + //$extensao = ".php";
1237 1237 }
1238 1238 if ((file_exists($locaplic."/temas/".$nome.".gvp")) || (file_exists($nome.".gvp"))){
1239 1239 $extensao = ".gvp";
1240 1240 }
1241 1241 if($extensao == ".php"){
1242 1242 //include_once($locaplic."/temas/".$nome.".php");
1243   - if(function_exists($nome)){
  1243 + //if(function_exists($nome)){
1244 1244 //eval($nome."(\$this->mapa);");
1245   - }
  1245 + //}
1246 1246 }
1247 1247 if($extensao == ".gvp"){
1248 1248 if (file_exists($locaplic."/temas/".$nome.".gvp")){
... ...
ms_criamapa.php
... ... @@ -799,10 +799,10 @@ function incluiTemasIniciais(){
799 799 $arqtemp = $arqt;
800 800 }
801 801 if ((strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) && (file_exists($temasdir."\\".$arqt."php"))){
802   - $extensao = ".php";
  802 + //$extensao = ".php";
803 803 }
804 804 elseif (file_exists($temasdir."/".$arqt.".php")){
805   - $extensao = ".php";
  805 + //$extensao = ".php";
806 806 }
807 807 if ((strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) && (file_exists($temasdir."\\".$arqt."gvp"))){
808 808 $extensao = ".gvp";
... ... @@ -870,8 +870,8 @@ function incluiTemasIniciais(){
870 870 }
871 871 }
872 872 if($extensao == ".php"){
873   - include_once($arqtemp);
874   - eval($arqt."(\$mapn);");
  873 + //include_once($arqtemp);
  874 + //eval($arqt."(\$mapn);");
875 875 }
876 876 if($extensao == ".gvp"){
877 877 include_once($locaplic."/pacotes/gvsig/gvsig2mapfile/class.gvsig2mapfile.php");
... ...