forked from Adleraci/adlerka.top
remove debug prints
This commit is contained in:
parent
cbcbb9f4b0
commit
055cc20400
@ -103,13 +103,6 @@ function getPage($page_name = null): array|false|string
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$origminlvl = $pageMetadata["parameters"]["minimal_permission_level"];
|
|
||||||
$intvalmillvl = intval($origminlvl);
|
|
||||||
$curprivlvl = $_SESSION["privilegelevel"];
|
|
||||||
$emptyy = empty($pageMetadata["parameters"]["minimal_permission_level"]);
|
|
||||||
echo "Need $page_required_permission(orig: $origminlvl, intval: $intvalmillvl, empty: $emptyy), u have: $curprivlvl";
|
|
||||||
print_r($pageMetadata["parameters"]);
|
|
||||||
|
|
||||||
if($page_required_permission > $_SESSION["privilegelevel"]){
|
if($page_required_permission > $_SESSION["privilegelevel"]){
|
||||||
if($is_secret_page == 1) {
|
if($is_secret_page == 1) {
|
||||||
$page_tmp = file_get_contents($routerConfig["template_dir"] . "404.html");
|
$page_tmp = file_get_contents($routerConfig["template_dir"] . "404.html");
|
||||||
|
Loading…
Reference in New Issue
Block a user