adlerka.space/pages/home/account.php

22 lines
476 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:59:27 +01:00
global $routerConfig;
if (isLoggedIn()) {
$output = file_get_contents($routerConfig["template_dir"] . "dashboard.html");
} else {
$output = file_get_contents($routerConfig["template_dir"] . "login.html");
}
2024-02-03 16:33:00 +01:00
2024-02-03 16:59:27 +01:00
return [
"output" => $output,
2024-02-03 16:33:00 +01:00
"parameters" =>
[
"minimal_permission_level" => 1,
"secret" => "no",
2024-02-15 10:51:23 +01:00
"page_title" => "Účet"
2024-02-03 16:33:00 +01:00
]
];