Jimmy Monin 57708e3169 Initial commit
Functional, without SSO
2016-09-18 11:03:26 +02:00

11 lines
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;
}