files reformatted

for better readability
This commit is contained in:
Tealk
2021-03-18 18:26:03 +01:00
parent e2e4a9620b
commit bf3048baf8
40 changed files with 2079 additions and 2205 deletions
+8 -10
View File
@@ -1,19 +1,17 @@
<?php
if (!file_exists("../config.php"))
{
header("Location: ../");
}
else{
if (!file_exists("../config.php")) {
header("Location: ../");
} else {
require_once("../config.php");
require_once("../classes/constellation.php");
$limit = (isset($_GET['limit'])?$_GET['limit']:5);
$offset = (isset($_GET['offset'])?$_GET['offset']:0);
$timestamp = (isset($_GET['timestamp']))?$_GET['timestamp']:time();
$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);
$result = $constellation->get_incidents((isset($_GET['future']) ? $_GET['future'] : false), $offset, $limit, $timestamp);
header('Cache-Control: no-cache');
header('Content-type: application/json');
echo json_encode($result);
}
}