Convert error pages to PHP

This commit is contained in:
Fred Boniface 2022-09-20 21:52:56 +01:00
parent c771e080fb
commit aa8e0c965f
6 changed files with 81 additions and 108 deletions

View File

@ -1,36 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Athena</title>
<meta charset="UTF-8"/>
<meta name="description" content="Athena - Quick links to live train departures for traincrew."/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="application-name" content="Athena">
<meta name="author" content="Frederick Boniface">
<link rel="stylesheet" type="text/css" href="/styles/style.css"/>
<link rel="icon" type="image/png" href="/assets/icons/favicon.ico"/>
</head>
<body>
<!-- Main Content Begins -->
<img class="titleimg" src="/assets/title/title.webp"></img>
<h1>You're not allowed to see that!</h1>
<p><a href="/">Go back to the homepage</a></p>
<h3>403 - Forbidden</h3>
<!-- Footer -->
<footer>
<p>Created by Fred Boniface - v0.4.0-devel</p>
</footer>
</body>
</html>

27
error-pages/403.php Normal file
View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<?php
set_include_path("./../");
include './page-blocks/headers.php';
?>
<title>Athena - Error 403</title>
</head>
<body>
<!-- Main Content Begins -->
<?php require "./page-blocks/title-image.php";?>
<h1>You're not allowed to see that!</h1>
<p><a class="actionbutton" href="/">Go back to the homepage</a></p>
<h3>403 - Forbidden</h3>
<!-- Footer -->
<?php include './page-blocks/footer.php';?>
</body>
</html>

View File

@ -1,36 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Athena</title>
<meta charset="UTF-8"/>
<meta name="description" content="Athena - Quick links to live train departures for traincrew."/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="application-name" content="Athena">
<meta name="author" content="Frederick Boniface">
<link rel="stylesheet" type="text/css" href="/styles/style.css"/>
<link rel="icon" type="image/png" href="/assets/icons/favicon.ico"/>
</head>
<body>
<!-- Main Content Begins -->
<img class="titleimg" src="/assets/title/title.webp"></img>
<h1>Oh no! That page can't be found</h1>
<p><a href="/">Go back to the homepage</a></p>
<h3>404 - Not Found</h3>
<!-- Footer -->
<footer>
<p>Created by Fred Boniface - v0.4.0-devel</p>
</footer>
</body>
</html>

27
error-pages/404.php Normal file
View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<?php
set_include_path("./../");
include './page-blocks/headers.php';
?>
<title>Athena - Error 404</title>
</head>
<body>
<!-- Main Content Begins -->
<?php require "./page-blocks/title-image.php";?>
<h1>Oh no! That page can't be found</h1>
<p><a class="actionbutton" href="/">Go back to the homepage</a></p>
<h3>404 - Not Found</h3>
<!-- Footer -->
<?php include './page-blocks/footer.php';?>
</body>
</html>

View File

@ -1,36 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Athena</title>
<meta charset="UTF-8"/>
<meta name="description" content="Athena - Quick links to live train departures for traincrew."/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="application-name" content="Athena">
<meta name="author" content="Frederick Boniface">
<link rel="stylesheet" type="text/css" href="/styles/style.css"/>
<link rel="icon" type="image/png" href="/assets/icons/favicon.ico"/>
</head>
<body>
<!-- Main Content Begins -->
<img class="titleimg" src="/assets/title/title.webp"></img>
<h1>Ah, sorry. There's a problem at our end</h1>
<p><a href="/">Try the homepage</a></p>
<h3>50x - Server Error</h3>
<!-- Footer -->
<footer>
<p>Created by Fred Boniface - v0.4.0-devel</p>
</footer>
</body>
</html>

27
error-pages/50x.php Normal file
View File

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<?php
set_include_path("./../");
include './page-blocks/headers.php';
?>
<title>Athena - Server Error</title>
</head>
<body>
<!-- Main Content Begins -->
<?php require "./page-blocks/title-image.php";?>
<h1>Ah, sorry. There's a problem at our end</h1>
<p><a class="actionbutton" href="/">Try the homepage</a></p>
<h3>50x - Server Error</h3>
<!-- Footer -->
<?php include './page-blocks/footer.php';?>
</body>
</html>