tupali_fork/milfs/api.php

32 lines
1.1 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'];}
/*$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'];*/
2016-11-24 16:34:52 +00:00
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');
}
2016-10-29 15:07:15 +00:00
header('Content-Type: application/json');
2017-02-03 17:37:39 +00:00
//echo "hola /// $_REQUEST[id] // " ;
2016-10-29 15:07:15 +00:00
echo json($datos);
?>