stylehub/pages/account/settings.php

23 lines
505 B
PHP
Raw Normal View History

2024-02-03 16:08:26 +01:00
<?php
2024-04-27 11:48:58 +02:00
declare(strict_types=1);
2024-02-03 16:08:26 +01:00
require_once "lib/router.php";
require_once "lib/account.php";
2024-02-03 16:59:27 +01:00
global $routerConfig;
2024-02-03 17:30:51 +01:00
$output = file_get_contents($routerConfig["template_dir"] . "userActions.html");
2024-02-03 16:59:27 +01:00
if (isUserAdmin()) {
2024-02-03 17:30:51 +01:00
$output .= file_get_contents($routerConfig["template_dir"] . "adminActions.html");
2024-02-03 16:59:27 +01:00
}
2024-02-03 16:08:26 +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" => 2,
"secret" => "no",
2024-02-15 10:51:23 +01:00
"page_title" => "Nastavenia"
2024-02-03 16:33:00 +01:00
]
];