From 055cc204005a82c81018dfc337c42a05848b787d Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 1 Feb 2024 10:51:40 +0100 Subject: [PATCH] remove debug prints --- lib/page.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/page.php b/lib/page.php index 317cbef..9d5cbc8 100644 --- a/lib/page.php +++ b/lib/page.php @@ -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($is_secret_page == 1) { $page_tmp = file_get_contents($routerConfig["template_dir"] . "404.html");