You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
744B

  1. <?php
  2. if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
  3. require ('xajax/xajax.inc.php');
  4. $xajax = new xajax();
  5. require ('funciones/funciones.php');
  6. require ('funciones/convert.php');
  7. include ('librerias/parsedown/Parsedown.php');
  8. require ("funciones/conex.php");
  9. if(isset($_REQUEST['buscar'])){$buscar=$_REQUEST['buscar'];}else{$buscar="";}
  10. if(isset($_REQUEST['item'])){$item=$_REQUEST['item'];}else{$item="";}
  11. if(isset($_REQUEST['id'])){$id=$_REQUEST['id'];}else{$id="";}
  12. if(!isset($_REQUEST['plantilla'])) {
  13. $geojson = imprime_geojson("$id","","mapa","$buscar","$item");
  14. }else{
  15. $geojson = imprime_geojson("$id","","$_REQUEST[plantilla]","$buscar","$item");
  16. }
  17. //header('Content-Type: application/json');
  18. echo $geojson;
  19. ?>