tupali_fork/milfs/api.php

40 lines
1.5 KiB
PHP
Raw Normal View History

2016-10-29 15:07:15 +00:00
<?php
session_start();
//ini_set('display_errors', 'On');
2016-11-24 16:34:52 +00:00
2016-10-29 15:07:15 +00:00
require ('xajax/xajax.inc.php');
$xajax = new xajax();
require ('funciones/funciones.php');
require ('funciones/convert.php');
require ("includes/markdown.php");
require ("funciones/conex.php");
2017-02-03 17:37:39 +00:00
$datos['id']=$_REQUEST['id'];
2017-10-18 21:58:33 +00:00
if(isset($_REQUEST['identificador'])) {$datos['identificador']=$_REQUEST['identificador'];}
if(isset($_REQUEST['dato'])) {$datos['dato']=$_REQUEST['dato'];}
if(isset($_REQUEST['inicio'])) {$datos['inicio']=$_REQUEST['inicio'];}
if(isset($_REQUEST['start'])) {$datos['start']=$_REQUEST['start'];}
if(isset($_REQUEST['fin'])) {$datos['fin']=$_REQUEST['fin'];}
if(isset($_REQUEST['end'])) {$datos['end']=$_REQUEST['end'];}
if(isset($_REQUEST['tipo'])) {$datos['tipo']=$_REQUEST['tipo'];}
2017-11-06 16:23:43 +00:00
if(isset($_REQUEST['formato'])) {$datos['formato']=$_REQUEST['formato'];}
if(isset($_REQUEST['registros'])) {$datos['registros']=$_REQUEST['registros'];}
if(isset($_REQUEST['pagina'])) {$datos['pagina']=$_REQUEST['pagina'];}
2017-10-18 21:58:33 +00:00
/*$datos['dato']=$_REQUEST['dato'];
2017-02-03 17:37:39 +00:00
$datos['inicio']=$_REQUEST['inicio'];
2017-10-18 21:16:07 +00:00
$datos['start']=$_REQUEST['start'];
2017-02-03 17:37:39 +00:00
$datos['fin']=$_REQUEST['fin'];
2017-10-18 21:16:07 +00:00
$datos['end']=$_REQUEST['end'];
2017-10-18 21:58:33 +00:00
$datos['tipo']=$_REQUEST['tipo'];*/
2017-11-06 16:23:43 +00:00
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
if(!isset($_REQUEST['formato'])) {
2016-10-29 15:07:15 +00:00
header('Content-Type: application/json');
echo json($datos);
2017-11-06 16:23:43 +00:00
}else{
2017-11-06 16:49:07 +00:00
echo "".consultar_contenido_formulario("$datos[id]","$datos[registros]","$datos[pagina]","$datos[formato]",'',"li");
2017-11-06 16:23:43 +00:00
}
//echo "hola /// $_REQUEST[id] // " ;
2016-10-29 15:07:15 +00:00
?>