This commit is contained in:
Thomas Nilsen 2020-08-16 23:04:24 +02:00
commit 5a15207476

View File

@ -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">