fix
This commit is contained in:
parent
b1792bd29a
commit
f380a889e2
@ -3,17 +3,16 @@
|
|||||||
require_once "lib/router.php";
|
require_once "lib/router.php";
|
||||||
require_once "lib/account.php";
|
require_once "lib/account.php";
|
||||||
|
|
||||||
return [
|
global $routerConfig;
|
||||||
"output" =>
|
|
||||||
function () {
|
|
||||||
global $routerConfig;
|
|
||||||
|
|
||||||
if (isLoggedIn()) {
|
if (isLoggedIn()) {
|
||||||
return file_get_contents($routerConfig["template_dir"] . "dashboard.html");
|
$output = file_get_contents($routerConfig["template_dir"] . "dashboard.html");
|
||||||
} else {
|
} else {
|
||||||
return file_get_contents($routerConfig["template_dir"] . "login.html");
|
$output = file_get_contents($routerConfig["template_dir"] . "login.html");
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
return [
|
||||||
|
"output" => $output,
|
||||||
"parameters" =>
|
"parameters" =>
|
||||||
[
|
[
|
||||||
"minimal_permission_level" => 1,
|
"minimal_permission_level" => 1,
|
||||||
|
@ -3,17 +3,16 @@
|
|||||||
require_once "lib/router.php";
|
require_once "lib/router.php";
|
||||||
require_once "lib/account.php";
|
require_once "lib/account.php";
|
||||||
|
|
||||||
return [
|
global $routerConfig;
|
||||||
"output" =>
|
|
||||||
function () {
|
|
||||||
global $routerConfig;
|
|
||||||
|
|
||||||
if (isUserAdmin()) {
|
if (isUserAdmin()) {
|
||||||
return file_get_contents($routerConfig["template_dir"] . "adminActions.html");
|
$output = file_get_contents($routerConfig["template_dir"] . "adminActions.html");
|
||||||
} else {
|
} else {
|
||||||
return file_get_contents($routerConfig["template_dir"] . "userActions.html");
|
$output = file_get_contents($routerConfig["template_dir"] . "userActions.html");
|
||||||
}
|
}
|
||||||
},
|
|
||||||
|
return [
|
||||||
|
"output" => $output,
|
||||||
"parameters" =>
|
"parameters" =>
|
||||||
[
|
[
|
||||||
"minimal_permission_level" => 2,
|
"minimal_permission_level" => 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user