Errorpages/php/index.php

37 lines
1.2 KiB
PHP

<?php
include "messages.php";
global $response;
$response = get_status_message($_SERVER["REQUEST_URI"]);
http_response_code($response[2]);
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Montehaselino - Automatic Status Response</title>
<link href="master.css" rel="stylesheet"/>
</head>
<body>
<div>
<div id="cloud1"></div>
<div id="cloud2"></div>
<div id="cloud3"></div>
<img id="mountain" src="res/svg/error-page-overlay.svg" alt="">
<div id="rocks"></div>
<h1>ERROR</h1>
<?php
global $response;
echo "<h2>" . $response[0] ."</h2>";
echo "<h3>" . $response[1] . "</h3>";
?>
<a href="javascript:window.history.back();">Go Back</a>
<hr>
<div class="subtle">This is an automatically generated error response page.<br>Please contact administration if you feel this shouldn't be here.</div>
</div>
</body>
</html>