forked from open-mpi/ompi-www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.php
49 lines (45 loc) · 1.39 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
<?php
// Error documents are hard. The browser believes the error doc is at
// the location of the requested url (ie,
// https://www.open-mpi.org/blah/blah/blah.txt), but the PHP is
// running relative to <topdir>/404.php. All our includes assume the
// PHP relative path and browser relative path are the same, which, as
// we just said, isn't true for error documents.
//
// Rather than fix all that code, have a super simple error document
// in this file.
$script_base = dirname($_SERVER["SCRIPT_NAME"]);
$image_base_url = "https://" .
$_SERVER["SERVER_NAME"] . $script_base . "/images";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Open MPI: We couldn't find what you were looking for -- Sadness</title>
</head>
<body>
<br />
<div align="center">
<table>
<tr>
<td valign="center" align="center"><img src="<?php print($image_base_url); ?>/open-mpi-logo.png" width="200"></td>
<td valign="top" align="center"><strong>
<br />
<br />
<br />
<br />
Sorry, we couldn't find<br />
what you were looking for.</strong>
<br />
<br />
Perhaps a <a
href="http://theoatmeal.com/comics/state_web_winter#tumblr">tumblebeast<a/>
ate it?</td>
<td valign="center" align="center"><img src="<?php print($image_base_url); ?>/tb_sign1.png"
width="300"></td>
</tr>
</table>
</div>
</body>
</html>