stylehub/pages/home/account.php

24 lines
503 B
PHP

<?php
require_once "lib/router.php";
require_once "lib/account.php";
function get_parameters():array
{
return ["minimal_permission_level" => 1, "secret" => "no", "page_title" => "Account"];
}
function render(): string
{
global $routerConfig;
ob_start();
if (isLoggedIn()) {
echo file_get_contents($routerConfig["template_dir"] . "dashboard.html");
} else {
echo file_get_contents($routerConfig["template_dir"] . "login.html");
}
return ob_get_clean();
}