mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-06 11:50:48 +02:00
Initial commit
Functional, without SSO
This commit is contained in:
11
sources/app/install/init.php
Normal file
11
sources/app/install/init.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
if (is_file($config->getFilename()) && !isset($_GET["success"])) {
|
||||
header("LOCATION: ?mod=install&a=upgrade");
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($action == "upgrade" && $auth->getUsername() != "admin") {
|
||||
header("HTTP/1.1 403 Forbidden");
|
||||
exit;
|
||||
}
|
Reference in New Issue
Block a user