This commit is contained in:
2024-02-02 12:41:02 +01:00
parent 7f6afabab2
commit 9ad8af8c6f
3 changed files with 9 additions and 4 deletions

View File

@@ -1,25 +0,0 @@
<?php
require_once "lib/router.php";
function get_parameters():array
{
return ["minimal_permission_level" => 1, "secret" => "no", "page_title" => "Domov"];
}
function render(): string
{
global $routerConfig;
ob_start();
if ($_SESSION["ID"] > 0) {
$account_template = file_get_contents($routerConfig["template_dir"] . "account.html");
echo $account_template;
} else {
$login_template = file_get_contents($routerConfig["template_dir"] . "login.html");
echo $login_template;
}
return ob_get_clean();
}