forked from Adleraci/adlerka.top
Fix error pages
This commit is contained in:
parent
80c278ca99
commit
d5f3a1bb59
@ -99,7 +99,7 @@ function renderPage($page_name = null, $site_name = null): array
|
|||||||
else{
|
else{
|
||||||
$page_tmp = file_get_contents($routerConfig["template_dir"] . "403.html");
|
$page_tmp = file_get_contents($routerConfig["template_dir"] . "403.html");
|
||||||
$pageMetadata = parsePageTag($page_tmp);
|
$pageMetadata = parsePageTag($page_tmp);
|
||||||
$page = $pageMetadata["output"];
|
$page = str_replace("__DEFAULT_LINK__", "/" . $routerConfig["default_site"] . "/" . $routerConfig["default_page"], $pageMetadata["output"]);
|
||||||
http_response_code(403);
|
http_response_code(403);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
<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="ri-error-warning-line"></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="ri-error-warning-line"></i></h3>
|
<h3><i class="ri-error-warning-line"></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="ri-error-warning-line"></i></h3>
|
||||||
<a href="/index" class="back"><i class="ri-arrow-left-line"></i> SPÄŤ DOMOV</a>
|
<a href="__DEFAULT_LINK__" class="back"><i class="ri-arrow-left-line"></i> SPÄŤ DOMOV</a>
|
||||||
</div>
|
</div>
|
@ -2,5 +2,5 @@
|
|||||||
<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="ri-error-warning-line"></i> Nenašli sme stránku ktorú hľadáš: <span class="error">__TEMPLATE_PAGE_TITLE__</span>. <i class="ri-error-warning-line"></i></h3>
|
<h3><i class="ri-error-warning-line"></i> Nenašli sme stránku ktorú hľadáš: <span class="error">__TEMPLATE_PAGE_TITLE__</span>. <i class="ri-error-warning-line"></i></h3>
|
||||||
<a href="/index" class="back"><i class="ri-arrow-left-line"></i> SPÄŤ DOMOV</a>
|
<a href="__DEFAULT_LINK__" class="back"><i class="ri-arrow-left-line"></i> SPÄŤ DOMOV</a>
|
||||||
</div>
|
</div>
|
@ -2,5 +2,5 @@
|
|||||||
<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="ri-error-warning-line"></i> Nejaký neschopný vývojár nevedel robiť túto stránku. <i class="ri-error-warning-line"></i></h3>
|
<h3><i class="ri-error-warning-line"></i> Nejaký neschopný vývojár nevedel robiť túto stránku. <i class="ri-error-warning-line"></i></h3>
|
||||||
<a href="/index" class="back"><i class="ri-arrow-left-line"></i> SPÄŤ DOMOV</a>
|
<a href="__DEFAULT_LINK__" class="back"><i class="ri-arrow-left-line"></i> SPÄŤ DOMOV</a>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user