more debug print
This commit is contained in:
parent
c78f86a600
commit
ac279a143e
@ -98,7 +98,8 @@ function getPage($page_name = null): array|false|string
|
|||||||
}
|
}
|
||||||
|
|
||||||
$curprivlvl = $_SESSION["privilegelevel"];
|
$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($page_required_permission > $_SESSION["privilegelevel"]){
|
||||||
if($is_secret_page == 1) {
|
if($is_secret_page == 1) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="wrapper-403">
|
<div class="wrapper-403">
|
||||||
<h2>TY KÁR KAM TO DEŠ</h2>
|
<h2>TY KÁR KAM TO DEŠ</h2>
|
||||||
<h1 class="error-code">403</h1>
|
<h1 class="error-code">403</h1>
|
||||||
<h3><i class="fa-solid fa-circle-exclamation error"></i> Našli sme stránku ktorú hľadáš, ale nemáš práva na ňu pristupovať: <span class="error">__TEMPLATE_PAGE_NAME__</span>. <i class="fa-solid fa-circle-exclamation error"></i></h3>
|
<h3><i class="fa-solid fa-circle-exclamation error"></i> Našli sme stránku ktorú hľadáš, ale nemáš práva na ňu pristupovať: <span class="error">__TEMPLATE_PAGE_TITLE__</span>. <i class="fa-solid fa-circle-exclamation error"></i></h3>
|
||||||
<a href="/domov" class="back"><i class="fa-solid fa-arrow-left"></i> SPÄŤ DOMOV</a>
|
<a href="/domov" class="back"><i class="fa-solid fa-arrow-left"></i> SPÄŤ DOMOV</a>
|
||||||
</div>
|
</div>
|
@ -1,6 +1,6 @@
|
|||||||
<div class="wrapper-404">
|
<div class="wrapper-404">
|
||||||
<h2>TY KÁR KAM TO DEŠ</h2>
|
<h2>TY KÁR KAM TO DEŠ</h2>
|
||||||
<h1 class="error-code">404</h1>
|
<h1 class="error-code">404</h1>
|
||||||
<h3><i class="fa-solid fa-circle-exclamation error"></i> Nenašli sme stránku ktorú hľadáš: <span class="error">__TEMPLATE_PAGE_NAME__</span>. <i class="fa-solid fa-circle-exclamation error"></i></h3>
|
<h3><i class="fa-solid fa-circle-exclamation error"></i> Nenašli sme stránku ktorú hľadáš: <span class="error">__TEMPLATE_PAGE_TITLE__</span>. <i class="fa-solid fa-circle-exclamation error"></i></h3>
|
||||||
<a href="/domov" class="back"><i class="fa-solid fa-arrow-left"></i> SPÄŤ DOMOV</a>
|
<a href="/domov" class="back"><i class="fa-solid fa-arrow-left"></i> SPÄŤ DOMOV</a>
|
||||||
</div>
|
</div>
|
@ -1,6 +1,6 @@
|
|||||||
<div class="wrapper-500">
|
<div class="wrapper-500">
|
||||||
<h2>Niekto to pobabral</h2>
|
<h2>Niekto to pobabral</h2>
|
||||||
<h1 class="error-code">500</h1>
|
<h1 class="error-code">500</h1>
|
||||||
<h3><i class="fa-solid fa-circle-exclamation error"></i> Nejaký neschopný vývojár nevedel robiť túto stránku: <span class="error">__TEMPLATE_PAGE_NAME__</span>. <i class="fa-solid fa-circle-exclamation error"></i></h3>
|
<h3><i class="fa-solid fa-circle-exclamation error"></i> Nejaký neschopný vývojár nevedel robiť túto stránku. <i class="fa-solid fa-circle-exclamation error"></i></h3>
|
||||||
<a href="/domov" class="back"><i class="fa-solid fa-arrow-left"></i> SPÄŤ DOMOV</a>
|
<a href="/domov" class="back"><i class="fa-solid fa-arrow-left"></i> SPÄŤ DOMOV</a>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user