-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path404.php
55 lines (46 loc) · 1.11 KB
/
404.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
47
48
49
50
51
52
53
54
55
<?php
$URI=$_SERVER['HTTP_REFERER'];
$SITE="http://".$_SERVER['HTTP_HOST'];
if( !isset($_GET['css']) ) {
header("HTTP/1.1 404 Not Found");
header("Content-Type: text/html; charset=utf-8");
header('Link: </404.php?css>; rel="stylesheet"; type="text/css"; title="404 CSS";');
header('Title: 404');
?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>404</title>
</head>
<body>
<p>If you were using a browser that supported Link: headers this page would show a fancy 404 error. I reccomend you use <a href="http://www.mozilla.com/firefox/">Firefox</a> and <a href="http://www.opera.com/browser/download/">Opera</a>.</p>
</body>
</html>
<?php
}
else if( isset($_GET['css']) ) {
header("Content-type: text/css; charset: utf-8");
header("Expires: -1");
echo "body {
background: orange;
font-size: 50px;
font-weight: bold;
text-align: center;
color: black;
width: 100%;
margin: 0px;
}
p {
display: none;
}
body:after {
content:\"The URI: ".$URI." could not be found.\"
}
body:hover {
color:white;
}
body:hover:after {
content:\"The URI: →".$URI."← could not be found.\";
}";
}
?>