Commit 6f692d9249cd1f58b9481f891d97aed9a9f32428
1 parent
54022a66
Exists in
master
and in
7 other branches
Compatibilização com versões antigas do mapserver no ms4w
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
classesphp/mapa_openlayers.php
@@ -59,7 +59,10 @@ Arquivo: | @@ -59,7 +59,10 @@ Arquivo: | ||
59 | i3geo/classesphp/mapa_openlayers.php | 59 | i3geo/classesphp/mapa_openlayers.php |
60 | 60 | ||
61 | */ | 61 | */ |
62 | - | 62 | +//para efeitos de compatibilidade |
63 | +if (!function_exists('ms_GetVersion')){ | ||
64 | + include_once ("carrega_ext.php"); | ||
65 | +} | ||
63 | error_reporting(0); | 66 | error_reporting(0); |
64 | inicializa(); | 67 | inicializa(); |
65 | // | 68 | // |
@@ -152,6 +155,7 @@ else{ | @@ -152,6 +155,7 @@ else{ | ||
152 | carregaCacheImagem($_SESSION["cachedir"],$_SESSION["map_file"],$_GET["tms"],$_SESSION["i3georendermode"]); | 155 | carregaCacheImagem($_SESSION["cachedir"],$_SESSION["map_file"],$_GET["tms"],$_SESSION["i3georendermode"]); |
153 | } | 156 | } |
154 | } | 157 | } |
158 | + | ||
155 | // | 159 | // |
156 | //map_fileX e para o caso register_globals = On no PHP.INI | 160 | //map_fileX e para o caso register_globals = On no PHP.INI |
157 | // | 161 | // |
@@ -165,9 +169,7 @@ if(isset($_GET["BBOX"])){ | @@ -165,9 +169,7 @@ if(isset($_GET["BBOX"])){ | ||
165 | $_GET["map_size"] = $_GET["WIDTH"]." ".$_GET["HEIGHT"]; | 169 | $_GET["map_size"] = $_GET["WIDTH"]." ".$_GET["HEIGHT"]; |
166 | } | 170 | } |
167 | $_GET["TIPOIMAGEM"] = trim($_GET["TIPOIMAGEM"]); | 171 | $_GET["TIPOIMAGEM"] = trim($_GET["TIPOIMAGEM"]); |
168 | - | ||
169 | $mapa = ms_newMapObj($map_fileX); | 172 | $mapa = ms_newMapObj($map_fileX); |
170 | - | ||
171 | // | 173 | // |
172 | //processa os layers do mapfile | 174 | //processa os layers do mapfile |
173 | // | 175 | // |