add debug print

This commit is contained in:
Bruno Rybársky 2024-02-01 09:24:58 +01:00
parent f1dc7d866f
commit 1f915ce374

@ -56,9 +56,9 @@ function getPage($page_name = null): array|false|string
}
elseif (file_exists($page_file_global)){
$pagetmp = file_get_contents($page_file_global);
$page_tmp = file_get_contents($page_file_global);
$pageMetadata = parsePageTag($pagetmp);
$pageMetadata = parsePageTag($page_tmp);
$page = $pageMetadata["output"];
}
elseif (file_exists($dynamic_page_file)){
@ -67,9 +67,9 @@ function getPage($page_name = null): array|false|string
$page = $pageMetadata["output"];
}
elseif (file_exists($page_file)){
$pagetmp = file_get_contents($page_file);
$page_tmp = file_get_contents($page_file);
$pageMetadata = parsePageTag($pagetmp);
$pageMetadata = parsePageTag($page_tmp);
$page = $pageMetadata["output"];
}
else{
@ -79,7 +79,7 @@ function getPage($page_name = null): array|false|string
$pageMetadata = parsePageTag($page);
$page = $pageMetadata["output"];
print_r($pageMetadata["parameters"]);
if(!empty($pageMetadata["parameters"]["minimal_permission_level"])){
$page_required_permission = intval($pageMetadata["parameters"]["minimal_permission_level"]);
}