2018-07-01 22:21:48 +00:00
|
|
|
<?php
|
|
|
|
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
|
|
|
|
require ('xajax/xajax.inc.php');
|
|
|
|
$xajax = new xajax();
|
|
|
|
require ('funciones/funciones.php');
|
|
|
|
require ('funciones/convert.php');
|
2019-10-27 09:10:37 +00:00
|
|
|
include ('librerias/parsedown/Parsedown.php');
|
2018-07-01 22:21:48 +00:00
|
|
|
|
|
|
|
require ("funciones/conex.php");
|
2019-10-27 09:10:37 +00:00
|
|
|
if(isset($_REQUEST['buscar'])){$buscar=$_REQUEST['buscar'];}else{$buscar="";}
|
|
|
|
if(isset($_REQUEST['item'])){$item=$_REQUEST['item'];}else{$item="";}
|
|
|
|
if(isset($_REQUEST['id'])){$id=$_REQUEST['id'];}else{$id="";}
|
2018-07-01 22:21:48 +00:00
|
|
|
|
|
|
|
if(!isset($_REQUEST['plantilla'])) {
|
2019-10-27 09:10:37 +00:00
|
|
|
$geojson = imprime_geojson("$id","","mapa","$buscar","$item");
|
2018-07-01 22:21:48 +00:00
|
|
|
|
|
|
|
}else{
|
2019-10-27 09:10:37 +00:00
|
|
|
$geojson = imprime_geojson("$id","","$_REQUEST[plantilla]","$buscar","$item");
|
2018-07-01 22:21:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//header('Content-Type: application/json');
|
|
|
|
echo $geojson;
|
|
|
|
|
2019-10-27 09:10:37 +00:00
|
|
|
?>
|