示例#1
0
    cpjson(array("erro" => "linkquebrado"));
    exit;
}
include_once "classe_vermultilayer.php";
if ($map_file != "") {
    //
    //copia o map_file atual com outro nome para restaurar caso ocorra algum problema
    //
    copiaSeguranca($map_file);
    //
    //substitui a string de conexão
    //
    substituiCon($map_file, $postgis_mapa);
}
include $locaplic . "/admin/php/xml.php";
$xml = geraXmlAtlas($locaplic, $editores);
$xml = simplexml_load_string($xml);
//
//faz a busca da função que deve ser executada
//
switch (strtoupper($funcao)) {
    /*
    Valor: PEGALISTADEATLAS
    
    Pega a lista de Atlas definida no arquivo xml menutemas/atlas.xml.
    
    <pegaListaDeAtlas()>
    */
    case "PEGALISTADEATLAS":
        include_once "classe_atlas.php";
        $atl = new Atlas($xml);
示例#2
0
<?php

/*DEPRECIADO*/
error_reporting(0);
if (!isset($locaplic)) {
    include dirname(__FILE__) . "/../ms_configura.php";
}
include_once $locaplic . "/admin/safe.php";
include_once $locaplic . "/admin/php/xml.php";
echo header("Content-type: application/xml");
echo geraXmlAtlas($locaplic);