This is the source code for the website of Serenum. https://serenum.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
791 B

<?php
require_once 'site-settings.php';
$version_live = file_get_contents('https://codeberg.org/serenum/website/raw/branch/main/VERSION');
$version_current = file_get_contents('VERSION');
$content = '<h2>Check for updates</h2>';
$content .= '<p>Current version: '.$version_current.'<br>Latest version: '.$version_live.'</p>';
if($version_current < $version_live) {
$content .= '<p>A new update are available for download. You can download it from here: '.link_('git.airikr.me/serenum/website', 'https://git.airikr.me/serenum/website').'</p>';
} elseif($version_current == $version_live) {
$content .= '<p>All files are up to date.</p>';
} else {
$content .= '<p>Somehow, your version are never.</p>';
}
die_content($config_title.', check for updates', $content);
?>