|
defined('DS') or define('DS' | DIRECTORY_SEPARATOR |
|
defined('NWLINE') or define('NWLINE' | n |
|
| $xoopsOption ['nocommon'] = true |
|
| $xoops = new xos_kernel_Xoops2() |
|
if(!isset($path) &&!empty($_SERVER['QUERY_STRING'])) if($path_type==='var') | $file = realpath($xoops->path($path)) |
|
| $dir = realpath($xoops->paths[$path_type][0]) |
|
if(!file_exists($file)) | $ext = substr($file, strrpos($file, '.') + 1) |
|
| $types = include $xoops->path('include/mimetypes.inc.php') |
|
if(!isset($types[$ext])) | $expires = 60 * 60 * 24 * 15 |
|
| $handle = fopen($file, 'rb') |
|