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