forked from rebillar/site-accueil-insa
patch error
This commit is contained in:
parent
77fb0ca753
commit
4d6add6799
3 changed files with 14 additions and 8 deletions
10
error.php
Normal file
10
error.php
Normal 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
3
errors/401.php
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<?php
|
||||||
|
header('Location: ../error.php');
|
||||||
|
?>
|
|
@ -1,10 +1,3 @@
|
||||||
<?php
|
<?php
|
||||||
ob_start(); // Start reading html
|
header('Location: ../error.php');
|
||||||
?>
|
|
||||||
<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");
|
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue