Commit 3381cb9f177fde3e0089e2cd502e4f52017a9af9
1 parent
567a939b
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
pacotes/kmlmapserver/classes/layerserver.class.php
| ... | ... | @@ -961,9 +961,13 @@ class LayerServer { |
| 961 | 961 | if(file_exists(dirname(__FILE__)."/ms_configura.php")){ |
| 962 | 962 | include(dirname(__FILE__)."/ms_configura.php"); |
| 963 | 963 | } |
| 964 | - else{ | |
| 964 | + if(file_exists(dirname(__FILE__)."/../../ms_configura.php")){ | |
| 965 | 965 | include(dirname(__FILE__)."/../../ms_configura.php"); |
| 966 | 966 | } |
| 967 | + if(file_exists(dirname(__FILE__)."/../../../ms_configura.php")){ | |
| 968 | + include(dirname(__FILE__)."/../../../ms_configura.php"); | |
| 969 | + } | |
| 970 | + | |
| 967 | 971 | if(!file_exists($this->map)){ |
| 968 | 972 | $maptemp = ms_newMapObj($locaplic."/temas/".$this->map.".map"); |
| 969 | 973 | //if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) |
| ... | ... | @@ -1021,6 +1025,9 @@ class LayerServer { |
| 1021 | 1025 | } |
| 1022 | 1026 | else{ |
| 1023 | 1027 | $this->map_object = ms_newMapObj($this->map); |
| 1028 | + //$w = $this->map_object->web; | |
| 1029 | + //$w->set("template","none.htm"); | |
| 1030 | + | |
| 1024 | 1031 | if(!$this->_zipped){ |
| 1025 | 1032 | $this->map_object->setmetadata('wms_onlineresource',$servidor.":80".$locmapserv."?map=".$temp."&width=1500&height=1500&"); |
| 1026 | 1033 | $this->map_object->setmetadata("ows_enable_request","*"); | ... | ... |