-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherr404.php
46 lines (31 loc) · 903 Bytes
/
err404.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php ob_start('ob_gzhandler');
// Version 20140829
// Erreur 404 personnalisée
// Voir http://httpd.apache.org/docs/custom-error.html
// Sur Free sont vides : $HTTP_SERVER_VARS["Redirect_URL"] et $_SERVER :(
// NAVIGATION
$RelBasePath = (!preg_match('/free\.fr$/', $_SERVER['SERVER_NAME'])) ? "/GepapiR/" : "/";
$title = "Erreur 404 [GEPApiR]";
?><!DOCTYPE HTML>
<html lang="fr">
<head>
<title><?=$title?></title>
<link href="<?=$RelBasePath?>communs/gepapir.css" rel="stylesheet" type="text/css">
<style type="text/css">
p
{
width: 100%;
text-align: center;
margin: 4em 0;
}
</style>
</head>
<body>
<h1>
<img src="<?=$RelBasePath?>images/err-404.png" width="438" height="253" alt="404 - la ressource n'existe pas (ou plus)">
</h1>
<p>
<a href="<?=$RelBasePath?>index.php">Retour à l'accueil</a></p>
</body>
</html>
<?php ob_end_flush(); ?>