23 require_once __DIR__ .
'/mainfile.php';
34 if (!empty(
$_SERVER[
'QUERY_STRING'])) {
38 header(
"HTTP/1.0 404 Not Found");
51 header(
"HTTP/1.0 404 Not Found");
60 header(
"HTTP/1.0 404 Not Found");
65 if (empty(
$file) || strpos(
$file,
'.php') !==
false) {
66 header(
"HTTP/1.0 404 Not Found");
75 header(
"HTTP/1.0 404 Not Found");
79 if (isset(
$_SERVER[
'HTTP_IF_MODIFIED_SINCE'])) {
81 header(
'HTTP/1.0 304 Not Modified');
91 header(
"HTTP/1.0 404 Not Found");
99 header(
"Cache-Control: public, max-age=" .
$expires);
100 header(
'Expires: ' . gmdate(
'D, d M Y H:i:s', time() +
$expires) .
' GMT');
101 header(
'Last-Modified: ' . gmdate(
'D, d M Y H:i:s T',
$mtime));
if(!isset($path)) $path_type
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file
if(empty($mimetype)) $expires
if($mtime===false) if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) $path_parts
if($file===false||$dir===false||!strstr($file, $dir)) if(empty($file)||strpos($file, '.php')!==false) $mtime