<?php include_once dirname(__FILE__) . "/../../classesphp/sani_request.php"; $_GET = array_merge($_GET, $_POST); $mapexten = $_GET["mapexten"]; error_reporting(0); session_name("i3GeoPHP"); if (isset($_GET["g_sid"])) { session_id($_GET["g_sid"]); } session_start(); $map_file = $_SESSION["map_file"]; $postgis_mapa = $_SESSION["postgis_mapa"]; require_once dirname(__FILE__) . "/../../ms_configura.php"; include dirname(__FILE__) . "/../blacklist.php"; verificaBlFerramentas(basename(dirname(__FILE__)), $i3geoBlFerramentas, false); // //se as extensões já estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais rápido // include_once dirname(__FILE__) . "/../../classesphp/carrega_ext.php"; // //carrega o phpmapscript // $exts = get_loaded_extensions(); if (array_search("MapScript", $exts) != TRUE) { if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) { if (!@dl('php_mapscript_48.dll')) { dl('php_mapscript.dll'); } } else { dl('php_mapscript.so');
<?php include dirname(__FILE__) . "/../blacklist.php"; verificaBlFerramentas(basename(dirname(__FILE__))); /** * Esse script e utilizado por i3GEO.pluginI3geo * Carrega os programas javascript necessarios para a ferramenta * Esse programa e usado na tag <script> ou com a funcao scripttag do i3Geo * Alem de carregar os scripts, carrega tambem o template no formato MUSTACHE, definindo a variavel * javascript i3GEOF.parametrossql.MUSTACHE * O template e substituido pelos valores definidos em index.js no momento da inicializacao da ferramenta */ if (extension_loaded('zlib')) { ob_start('ob_gzhandler'); } header("Content-type: text/javascript"); include "index.js"; include "dicionario.js"; echo "\n"; /** * Inclui o template mustache do HTML usado para criar o conteudo da janela */ echo 'i3GEOF.parametrossql.MUSTACHE = "'; $texto = file_get_contents("template_mst.html"); $texto = str_replace("\n", "", $texto); $texto = str_replace("\r", "", $texto); $texto = str_replace("\t", "", $texto); $texto = str_replace('"', "'", $texto); echo $texto; echo '";'; if (extension_loaded('zlib')) {
<?php include dirname(__FILE__) . "/../../classesphp/sani_request.php"; include dirname(__FILE__) . "/../blacklist.php"; verificaBlFerramentas(basename(dirname(__FILE__)), "", false); if (!isset($_GET["fundo"])) { $fundo = "''"; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=no;"> <meta name="HandheldFriendly" content="yes" /> <meta name="MobileOptimized" content="width" /> <meta name="apple-mobile-web-app-capable" content="yes"> <script type="text/javascript" src="../../pacotes/openlayers/OpenLayers2131.js.php"></script> <script type="text/javascript" src="../../pacotes/cpaint/cpaint2_compacto.inc.js"></script> <link rel="stylesheet" href="../../mashups/openlayers_compacto.css" type="text/css" /> <script type="text/javascript" src="../../pacotes/yui290/build/yahoo/yahoo-min.js"></script> <script type="text/javascript" src="../../pacotes/yui290/build/dom/dom-min.js"></script> </head> <body onload="inicia()"> <div id=openlayers style="width:500px;height:500px;"></div> <script> /* Title: Interface OpenLayers para a ferramenta tela remota Clone de um mapa aberto no i3Geo.