feito fork de rebillar/site-accueil-insa
patch error
Esse commit está contido em:
pai
77fb0ca753
commit
4d6add6799
3 arquivos alterados com 14 adições e 8 exclusões
10
error.php
Arquivo normal
10
error.php
Arquivo normal
|
|
@ -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
Arquivo normal
3
errors/401.php
Arquivo normal
|
|
@ -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");
|
|
||||||
?>
|
?>
|
||||||
Carregando…
Referência em uma nova issue