From 6f692d9249cd1f58b9481f891d97aed9a9f32428 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Fri, 6 Nov 2015 18:19:20 +0000 Subject: [PATCH] Compatibilização com versões antigas do mapserver no ms4w --- classesphp/mapa_openlayers.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/classesphp/mapa_openlayers.php b/classesphp/mapa_openlayers.php index 8eb1358..12c5f6c 100644 --- a/classesphp/mapa_openlayers.php +++ b/classesphp/mapa_openlayers.php @@ -59,7 +59,10 @@ Arquivo: i3geo/classesphp/mapa_openlayers.php */ - +//para efeitos de compatibilidade +if (!function_exists('ms_GetVersion')){ + include_once ("carrega_ext.php"); +} error_reporting(0); inicializa(); // @@ -152,6 +155,7 @@ else{ carregaCacheImagem($_SESSION["cachedir"],$_SESSION["map_file"],$_GET["tms"],$_SESSION["i3georendermode"]); } } + // //map_fileX e para o caso register_globals = On no PHP.INI // @@ -165,9 +169,7 @@ if(isset($_GET["BBOX"])){ $_GET["map_size"] = $_GET["WIDTH"]." ".$_GET["HEIGHT"]; } $_GET["TIPOIMAGEM"] = trim($_GET["TIPOIMAGEM"]); - $mapa = ms_newMapObj($map_fileX); - // //processa os layers do mapfile // -- libgit2 0.21.2