mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2025-05-23 17:52:26 -04:00
This reverts commit 18b89e8c35ff28b22696ff028e483a53430d7cdb, reversing changes made to 81132e9ccfb433fffe376902fd2597f1f62ea1f1.
51 lines
1.1 KiB
PHP
51 lines
1.1 KiB
PHP
<?php
|
|
|
|
if (!file_exists("config.php"))
|
|
{
|
|
require_once("template.php");
|
|
require_once("install.php");
|
|
}
|
|
else{
|
|
|
|
require_once("config.php");
|
|
require_once("template.php");
|
|
require_once("classes/constellation.php");
|
|
|
|
$offset = 0;
|
|
|
|
if (isset($_GET['ajax']))
|
|
{
|
|
$constellation->render_incidents(false,$_GET['offset'],5);
|
|
exit();
|
|
}else if (isset($_GET['offset']))
|
|
{
|
|
$offset = $_GET['offset'];
|
|
}
|
|
|
|
Template::render_header("Status");
|
|
?>
|
|
<div class="text-center">
|
|
<h2><?php echo _("Current status");?></h2>
|
|
</div>
|
|
<div id="current">
|
|
<?php $constellation->render_status();?>
|
|
</div>
|
|
|
|
<?php if ($mysqli->query("SELECT count(*) FROM status")->num_rows)
|
|
{
|
|
?>
|
|
<div id="timeline">
|
|
<div class="item">
|
|
<div class="timeline">
|
|
<div class="line text-muted"></div>
|
|
<?php
|
|
$constellation->render_incidents(true,$offset);
|
|
$constellation->render_incidents(false,$offset);
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php }
|
|
|
|
Template::render_footer();
|
|
}
|