%PDF- %PDF-
| Direktori : /data/www_bck/varak.net_bck/mpd.varak.net/rompr/ |
| Current File : //data/www_bck/varak.net_bck/mpd.varak.net/rompr/404.php |
<html>
<head>
<?php
include('vars.php');
include("functions.php");
$request = $_SERVER['REQUEST_URI'];
// Custom redirect for small album covers that don't exist.
if (preg_match('/albumart\/small\//', $request)) {
header("HTTP/1.1 301 Moved Permanently");
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
header("Location: ".get_base_url()."/images/album-unknown-small.png");
} elseif (preg_match('/albumart\/firefoxiscrap\/(.*?)---.*/', $request, $matches)) {
header("HTTP/1.1 301 Moved Permanently");
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
header("Location: ".get_base_url()."/albumart/original/".$matches[1].".jpg");
} else {
// Custom 404 page for anything else
header("HTTP/1.1 404 Not Found");
?>
<link rel="stylesheet" type="text/css" href="layout.css" />
<link rel="stylesheet" type="text/css" href="Darkness.css" />
<title>Badgers!</title>
</head>
<body>
<br><br><br>
<h2 align="center">404 Error!</h2>
<br><br>
<h2 align="center">It's all gone horribly wrong</h2>
<br><br>
<?php
print '<h3 align="center">The document "'.$request."" doesn't exist. Are you sure you know what you're doing?</h3>";
?>
</body>
<?php
}
?>
</html>