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" => ""));