mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-06-25 05:25:32 -04:00
Add parameters back
This commit is contained in:
parent
4b7d8be838
commit
3c75159e2a
@ -8,12 +8,11 @@ else{
|
|||||||
require_once("../config.php");
|
require_once("../config.php");
|
||||||
require_once("../classes/constellation.php");
|
require_once("../classes/constellation.php");
|
||||||
|
|
||||||
if (isset($_GET['future']) && $_GET['future'] == true)
|
$limit = (isset($_GET['limit'])?$_GET['limit']:5);
|
||||||
{
|
$offset = (isset($_GET['offset'])?$_GET['offset']:0);
|
||||||
$result = $constellation->get_incidents(true);
|
$timestamp = (isset($_GET['timestamp']))?$_GET['timestamp']:time();
|
||||||
}else{
|
|
||||||
$result = $constellation->get_incidents();
|
$result = $constellation->get_incidents((isset($_GET['future'])?$_GET['future']:false), $offset, $limit, $timestamp);
|
||||||
}
|
|
||||||
|
|
||||||
echo json_encode($result);
|
echo json_encode($result);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user