ответвлён от rebillar/site-accueil-insa
patch error
Этот коммит содержится в:
родитель
77fb0ca753
коммит
4d6add6799
3 изменённых файлов: 14 добавлений и 8 удалений
10
error.php
Обычный файл
10
error.php
Обычный файл
|
@ -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
Обычный файл
3
errors/401.php
Обычный файл
|
@ -0,0 +1,3 @@
|
|||
<?php
|
||||
header('Location: ../error.php');
|
||||
?>
|
|
@ -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');
|
||||
?>
|
Загрузка…
Сослаться в новой задаче