mirror of
https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
synced 2024-11-23 20:58:46 -05:00
Merge branch 'master' of https://github.com/yigitkeremoktay/server-status
This commit is contained in:
commit
5a15207476
16
index.php
16
index.php
@ -66,6 +66,22 @@ 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");
|
||||
?>
|
||||
<div class="text-center">
|
||||
|
Loading…
Reference in New Issue
Block a user