mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-06-07 13:05:30 +02:00
17 lines
331 B
PHP
17 lines
331 B
PHP
<?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;
|
|
} |