diff --git a/404.php b/404.php new file mode 100644 index 00000000..364ae33a --- /dev/null +++ b/404.php @@ -0,0 +1,33 @@ +init(); + +if($cache->get("404glob") == false){ +$files = glob("404/*.*"); +$cache->set("404glob", $files); +}else +$files = $cache->get("404glob"); + +if(count($files) == 0) + $errorimage = ""; +else + $errorimage = $files[array_rand($files)]; + +$page = << +
+

404 Not Found

+ + +
+ +EOT; + +echo Element("page.html", array("config" => $config, "body" => $page, "title" => ""));