404 Not Found

Page doesn't exist


vichan
"; } else { header("Location: ".$config['page_404']); } header("X-Accel-Expires: 120"); die(); } if ($reached) { if ($request[strlen($request)-1] == '/') { $request .= 'index.html'; } $request = '.'.$request; if (!file_exists($request)) { die_404(); } header("HTTP/1.1 200 OK"); header("Status: 200 OK"); if (preg_match('/\.json$/', $request)) { header("Content-Type", "application/json"); } elseif (preg_match('/\.js$/', $request)) { header("Content-Type", "text/javascript; charset=utf-8"); } elseif (preg_match('/\.xml$/', $request)) { header("Content-Type", "application/xml"); } elseif (preg_match('/\.rss$/', $request)) { header("Content-Type", "application/rss+xml"); } else { header("Content-Type", "text/html; charset=utf-8"); } header("Cache-Control: public, nocache, no-cache, max-age=0, must-revalidate"); header("Expires: Fri, 22 Feb 1991 06:00:00 GMT"); header("Last-Modified: ".date('r', filemtime($request))); //if (isset ($_SERVER['HTTP_ACCEPT_ENCODING']) && preg_match('/gzip/', $_SERVER['HTTP_ACCEPT_ENCODING']) && file_exists($request.".gz")) { // header("Content-Encoding: gzip"); // $file = fopen($request.".gz", 'r'); //} //else { $file = fopen($request, 'r'); //} fpassthru($file); fclose($file); } else { die_404(); }