Commit 3381cb9f177fde3e0089e2cd502e4f52017a9af9

Authored by Edmar Moretti
1 parent 567a939b

--no commit message

pacotes/kmlmapserver/classes/layerserver.class.php
@@ -961,9 +961,13 @@ class LayerServer { @@ -961,9 +961,13 @@ class LayerServer {
961 if(file_exists(dirname(__FILE__)."/ms_configura.php")){ 961 if(file_exists(dirname(__FILE__)."/ms_configura.php")){
962 include(dirname(__FILE__)."/ms_configura.php"); 962 include(dirname(__FILE__)."/ms_configura.php");
963 } 963 }
964 - else{ 964 + if(file_exists(dirname(__FILE__)."/../../ms_configura.php")){
965 include(dirname(__FILE__)."/../../ms_configura.php"); 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 if(!file_exists($this->map)){ 971 if(!file_exists($this->map)){
968 $maptemp = ms_newMapObj($locaplic."/temas/".$this->map.".map"); 972 $maptemp = ms_newMapObj($locaplic."/temas/".$this->map.".map");
969 //if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) 973 //if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN'))
@@ -1021,6 +1025,9 @@ class LayerServer { @@ -1021,6 +1025,9 @@ class LayerServer {
1021 } 1025 }
1022 else{ 1026 else{
1023 $this->map_object = ms_newMapObj($this->map); 1027 $this->map_object = ms_newMapObj($this->map);
  1028 + //$w = $this->map_object->web;
  1029 + //$w->set("template","none.htm");
  1030 +
1024 if(!$this->_zipped){ 1031 if(!$this->_zipped){
1025 $this->map_object->setmetadata('wms_onlineresource',$servidor.":80".$locmapserv."?map=".$temp."&width=1500&height=1500&"); 1032 $this->map_object->setmetadata('wms_onlineresource',$servidor.":80".$locmapserv."?map=".$temp."&width=1500&height=1500&");
1026 $this->map_object->setmetadata("ows_enable_request","*"); 1033 $this->map_object->setmetadata("ows_enable_request","*");