2024-01-02 03:55:23 +01:00
|
|
|
<?php session_start();
|
|
|
|
|
|
|
|
include "config.php";
|
|
|
|
include "core.php";
|
|
|
|
|
|
|
|
$Error = "";
|
|
|
|
$html = "";
|
2024-03-23 22:34:24 +01:00
|
|
|
$subdir = "";
|
2024-01-02 03:55:23 +01:00
|
|
|
|
|
|
|
if (isset($_REQUEST['e'])) $Error = htmlspecialchars($_REQUEST['e']);
|
2024-03-23 22:34:24 +01:00
|
|
|
|
|
|
|
if (isset($_GET['endpoint'])) {
|
|
|
|
$subdir = $_GET['endpoint'];
|
|
|
|
} else if (isset($_SERVER['REQUEST_URI'])) {
|
|
|
|
$subdir = '/' . trim(strtok($_SERVER['REQUEST_URI'], '?'), '/');
|
|
|
|
} else {
|
|
|
|
$subdir = '/';
|
|
|
|
}
|
2024-01-02 03:55:23 +01:00
|
|
|
|
|
|
|
if (!checkIfAdminExists()) {
|
|
|
|
header("Location: setup.php");
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
|
2024-03-23 22:34:24 +01:00
|
|
|
$html = printHeader($html, 1); // also prints page content
|
2024-01-02 03:55:23 +01:00
|
|
|
$html = printFooter($html);
|
|
|
|
|
|
|
|
print "$html";
|
|
|
|
|
|
|
|
?>
|