mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 12:23:48 +01:00
Create 404.php
This commit is contained in:
parent
416a48838c
commit
c291952477
20
404.php
Normal file
20
404.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
include "inc/functions.php";
|
||||
|
||||
$errorimages = array("http://www.submitawebsite.com/blog/wp-content/uploads/2010/06/404.png",
|
||||
"http://upload.wikimedia.org/wikipedia/commons/thumb/a/a5/Georgia_404.svg/750px-Georgia_404.svg.png");
|
||||
|
||||
$errorimage = $errorimages[array_rand($errorimages)];
|
||||
|
||||
$page = <<<EOT
|
||||
<center>
|
||||
<div class="ban">
|
||||
<h2>404 Not Found</h2>
|
||||
|
||||
<img src="{$errorimage}" style="width: 700px;">
|
||||
</div>
|
||||
</center>
|
||||
EOT;
|
||||
|
||||
echo Element("page.html", array("config" => $config, "body" => $page, "title" => ""));
|
Loading…
x
Reference in New Issue
Block a user