diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-10-18 09:35:23 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-10-20 18:28:17 +0200 |
commit | f0be65875b0fbc0fcb087d5caf7f3ad0999dfcea (patch) | |
tree | 7da915f372c743c35a0a7c34c11c99425e2b2cd9 /web/html/404.php | |
parent | 361e251bb194a698cf06cdc1badfdbad489ec6dc (diff) | |
download | aur-f0be65875b0fbc0fcb087d5caf7f3ad0999dfcea.tar.gz aur-f0be65875b0fbc0fcb087d5caf7f3ad0999dfcea.tar.xz |
Display an error page if a virtual path doesn't exist
Give user feedback instead of bailing out with an empty HTTP response
body.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/404.php')
-rw-r--r-- | web/html/404.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/web/html/404.php b/web/html/404.php new file mode 100644 index 00000000..06ad683a --- /dev/null +++ b/web/html/404.php @@ -0,0 +1,14 @@ +<?php + +set_include_path(get_include_path() . PATH_SEPARATOR . '../lib'); + +html_header( __("Page Not Found") ); +?> + +<div id="error-page" class="box 404"> + <h2>404 - <?= __("Page Not Found") ?></h2> + <p><?= __("Sorry, the page you've requested does not exist.") ?></p> +</div> + +<?php +html_footer(AUR_VERSION); |