From ac279a143e54f3c64c1562e99288f6fa10571350 Mon Sep 17 00:00:00 2001 From: bruno Date: Thu, 1 Feb 2024 10:01:41 +0100 Subject: [PATCH] more debug print --- lib/page.php | 3 ++- templates/403.html | 2 +- templates/404.html | 2 +- templates/500.html | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/page.php b/lib/page.php index f6b726f..f228db1 100644 --- a/lib/page.php +++ b/lib/page.php @@ -98,7 +98,8 @@ function getPage($page_name = null): array|false|string } $curprivlvl = $_SESSION["privilegelevel"]; - echo "Secrecy: $is_secret_page, you need to have $page_required_permission, you have $curprivlvl"; + $orig = $pageMetadata["parameters"]["secret"]; + echo "Secrecy: $is_secret_page($orig), you need to have $page_required_permission, you have $curprivlvl"; if($page_required_permission > $_SESSION["privilegelevel"]){ if($is_secret_page == 1) { diff --git a/templates/403.html b/templates/403.html index f0ceaff..5f1667f 100644 --- a/templates/403.html +++ b/templates/403.html @@ -1,6 +1,6 @@

TY KÁR KAM TO DEŠ

403

-

Našli sme stránku ktorú hľadáš, ale nemáš práva na ňu pristupovať: __TEMPLATE_PAGE_NAME__.

+

Našli sme stránku ktorú hľadáš, ale nemáš práva na ňu pristupovať: __TEMPLATE_PAGE_TITLE__.

SPÄŤ DOMOV
\ No newline at end of file diff --git a/templates/404.html b/templates/404.html index 324a00a..d060e94 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,6 +1,6 @@

TY KÁR KAM TO DEŠ

404

-

Nenašli sme stránku ktorú hľadáš: __TEMPLATE_PAGE_NAME__.

+

Nenašli sme stránku ktorú hľadáš: __TEMPLATE_PAGE_TITLE__.

SPÄŤ DOMOV
\ No newline at end of file diff --git a/templates/500.html b/templates/500.html index 93e5228..03607ba 100644 --- a/templates/500.html +++ b/templates/500.html @@ -1,6 +1,6 @@

Niekto to pobabral

500

-

Nejaký neschopný vývojár nevedel robiť túto stránku: __TEMPLATE_PAGE_NAME__.

+

Nejaký neschopný vývojár nevedel robiť túto stránku.

SPÄŤ DOMOV
\ No newline at end of file