diff --git a/404.php b/404.php new file mode 100644 index 00000000..bacac61f --- /dev/null +++ b/404.php @@ -0,0 +1,21 @@ +\n"; + +$path=trim($_SERVER['REQUEST_URI'], '/'); +$path=str_replace($base.'/', '', $path); +if (file_exists($path) && !is_dir($path)) { + if (strpos($path, 'css')!==false) { + header('Content-type: text/css'); + } + readfile($path); + exit(); +} +if (is_dir($path)) { + $path.='/index.html'; +} +$key='vichan_filecache_'.$path; +echo Cache::get($key); +?>