mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-06 20:00:48 +02:00
Initial commit
Functional, without SSO
This commit is contained in:
17
sources/app/install/scripts/upgrade.php
Normal file
17
sources/app/install/scripts/upgrade.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
if (!is_file($config->getFilename())) {
|
||||
header("LOCATION: ?mod=install");
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($auth->getUsername() != "admin") {
|
||||
header("HTTP/1.1 403 Forbidden");
|
||||
exit;
|
||||
}
|
||||
|
||||
$require_upgrade = false;
|
||||
|
||||
if (-1 == version_compare($config->get("general", "version"), APPLICATION_VERSION)) {
|
||||
$require_upgrade = true;
|
||||
}
|
Reference in New Issue
Block a user