2024-02-03 16:08:26 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once "lib/router.php";
|
|
|
|
require_once "lib/account.php";
|
|
|
|
|
2024-02-03 16:21:28 +01:00
|
|
|
$page_parameters = ["minimal_permission_level" => 2, "secret" => "no", "page_title" => "Settings"];
|
2024-02-03 16:08:26 +01:00
|
|
|
|
|
|
|
function render(): string
|
|
|
|
{
|
|
|
|
global $routerConfig;
|
|
|
|
|
|
|
|
ob_start();
|
|
|
|
|
|
|
|
if (isUserAdmin()) {
|
|
|
|
echo file_get_contents($routerConfig["template_dir"] . "adminActions.html");
|
|
|
|
} else {
|
|
|
|
echo file_get_contents($routerConfig["template_dir"] . "userActions.html");
|
|
|
|
}
|
|
|
|
|
|
|
|
return ob_get_clean();
|
|
|
|
}
|