mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-05-30 12:52:25 -04:00
19 lines
354 B
PHP
19 lines
354 B
PHP
<?php
|
|
|
|
if (!file_exists("../config.php"))
|
|
{
|
|
header("Location: ../");
|
|
}
|
|
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();
|
|
}
|
|
|
|
echo json_encode($result);
|
|
} |