adlerka.space/pages/home/account.php
2024-02-03 16:33:00 +01:00

23 lines
566 B
PHP

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