mirror of
https://github.com/YunoHost-Apps/cheky_ynh.git
synced 2024-09-03 18:16:00 +02:00
11 lines
No EOL
247 B
PHP
11 lines
No EOL
247 B
PHP
<?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;
|
|
} |