getSetting($mysqli,"name")); define("TITLE", $db->getSetting($mysqli,"title")); define("WEB_URL", $db->getSetting($mysqli,"url")); define("MAILER_NAME", $db->getSetting($mysqli,"mailer")); define("MAILER_ADDRESS", $db->getSetting($mysqli,"mailer_email")); $offset = 0; if (isset($_GET['ajax'])) { $constellation->render_incidents(false,$_GET['offset'],5); exit(); }else if (isset($_GET['offset'])) { $offset = $_GET['offset']; } if (isset($_GET['subscriber_logout'])){ setcookie('tg_user', ''); setcookie('referer', '', time() - 3600); $_SESSION['subscriber_valid'] = false; unset($_SESSION['subscriber_userid']); unset($_SESSION['subscriber_typeid']); unset($_SESSION['subscriber_id']); header('Location: index.php'); } $versionfile = fopen("versionfile", "r") or die("Unable to open version file!"); $appversion = fread($versionfile,filesize("versionfile")); fclose($versionfile); if($db->getSetting($mysqli,"dbConfigVersion") != $appversion){ die("Database needs to be updated. Please update the database and try again. App Version: '".$appversion."' DB Settings Version: '".$db->getSetting($mysqli,"dbConfigVersion")."'."); } $useedf = fopen("updateseed", "r") or die("Unable to open updateseed file!"); $useed = fread($versionfile,filesize("updateseed")); fclose($useedf); if($useed == "stable"){ $remoteversion = file_get_contents("https://skkyfallenhosted.ml/serverstatus/versionauthority/stable/version"); $remotedl = file_get_contents("https://skkyfallenhosted.ml/serverstatus/versionauthority/stable/dl"); } if($useed == "beta"){ $remoteversion = file_get_contents("https://skkyfallenhosted.ml/serverstatus/versionauthority/beta/version"); $remotedl = file_get_contents("https://skkyfallenhosted.ml/serverstatus/versionauthority/beta/dl"); } if($db->getSetting($mysqli,"notifyUpdate") == "yes"){ if($remoteversion != $appversion){ die("Your installation is not upp to date! Download the new update from: '".$remotedl."'"); } } Template::render_header("Status"); ?>

render_status();?>
query("SELECT count(*) FROM status")->num_rows) { ?>
render_incidents(true,$offset); $constellation->render_incidents(false,$offset); ?>