Added error pages

Šī revīzija ir iekļauta:
keplyx 2019-07-27 10:59:05 +02:00
vecāks 090e57dad5
revīzija 779d799bdd
2 mainīti faili ar 46 papildinājumiem un 0 dzēšanām

25
errors/401.php Parasts fails
Parādīt failu

@ -0,0 +1,25 @@
<?php
ob_start(); // Start reading html
$relativePath = "../";
?>
<div class="inner">
<h1>Acces non autorise</h1>
<h2>Erreur 401</h2>
<p>
Vous n'avez pas le droit d'accéder à cette page
</p>
<a href="<?= $relativePath ?>index.php" class="website-back-button">
Retour sur le site
</a>
</div>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Erreur 401";
include($relativePath . "includes/template.php"); // Display template with variable content
?>

21
errors/404.php Parasts fails
Parādīt failu

@ -0,0 +1,21 @@
<?php
ob_start(); // Start reading html
$relativePath = "../";
?>
<div class="inner">
<h1>Page non trouvee</h1>
<h2>Erreur 404</h2>
<a href="<?= $relativePath ?>index.php" class="website-back-button">
Retour sur le site
</a>
</div>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Erreur 404";
include($relativePath . "includes/template.php"); // Display template with variable content
?>