patch error

This commit is contained in:
Baptiste Rebillard 2022-06-14 14:07:32 +02:00
parent 77fb0ca753
commit 4d6add6799
3 changed files with 14 additions and 8 deletions

10
error.php Normal file
View file

@ -0,0 +1,10 @@
<?php
ob_start(); // Start reading html
?>
<main>
<img src="assets/img/error.JPG" style="margin-top: 50px;width:50vw;">
</main>
<?php
$infopage = ["", "Erreur 404", ob_get_clean(), "", "erreur"]; //relativepath, pagetitle, pagecontent, pagescript, pagename | cf structure/template.php ligne 2 à 6
include("structure/template.php");
?>

3
errors/401.php Normal file
View file

@ -0,0 +1,3 @@
<?php
header('Location: ../error.php');
?>

View file

@ -1,10 +1,3 @@
<?php
ob_start(); // Start reading html
?>
<main>
<img src="assets/img/error.JPG" style="margin-top: 50px;width:50vw;">
</main>
<?php
$infopage = ["", "Erreur 404", ob_get_clean(), "", "erreur"]; //relativepath, pagetitle, pagecontent, pagescript, pagename | cf structure/template.php ligne 2 à 6
include("structure/template.php");
header('Location: ../error.php');
?>