stylehub/pages/home/settings.php
2024-02-03 16:33:00 +01:00

24 lines
577 B
PHP

<?php
require_once "lib/router.php";
require_once "lib/account.php";
return [
"output" =>
function () {
global $routerConfig;
if (isUserAdmin()) {
return file_get_contents($routerConfig["template_dir"] . "adminActions.html");
} else {
return file_get_contents($routerConfig["template_dir"] . "userActions.html");
}
},
"parameters" =>
[
"minimal_permission_level" => 2,
"secret" => "no",
"page_title" => "Account"
]
];