21 defined('NWLINE')or define('NWLINE', "\
n");
24 require_once dirname(__FILE__) . DS . 'mainfile.php';
28 include_once XOOPS_ROOT_PATH . DS . 'include' . DS .'defines.php';
29 include_once XOOPS_ROOT_PATH . DS . 'include' . DS . 'version.php';
30 require_once XOOPS_ROOT_PATH . DS . 'class' . DS . 'xoopsload.php';
40 $path_type = substr(
$path, 0, strpos(
$path,
'/'));
41 if (!isset(
$xoops->paths[$path_type])) {
48 if ($path_type ==
'var') {
49 header(
"HTTP/1.0 404 Not Found");
58 header(
"HTTP/1.0 404 Not Found");
63 if (empty(
$file) || strpos(
$file,
'.php' ) !==
false) {
64 header(
"HTTP/1.0 404 Not Found");
70 if (!file_exists(
$file)) {
71 header(
"HTTP/1.0 404 Not Found");
80 header(
"HTTP/1.0 404 Not Found");
87 header(
"Pragma: public");
88 header(
"Cache-Control: maxage=" .
$expires);
89 header(
'Expires: ' . gmdate(
'D, d M Y H:i:s', time() +
$expires) .
' GMT');
90 header(
'Content-type: ' .
$types[$ext]);