Cofem/pages/home/account.php

23 lines
566 B
PHP
Raw Normal View History

2024-01-16 19:24:40 +01:00
<?php
2024-01-18 11:49:38 +01:00
require_once "lib/router.php";
2024-02-03 16:08:26 +01:00
require_once "lib/account.php";
2024-01-16 20:43:57 +01:00
2024-02-03 16:33:00 +01:00
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"
]
];