39 $filesize = $stat[
'size'];
40 $fp = fopen(
$tpl,
'r');
41 $source = ($filesize > 0) ? fread($fp, $filesize) :
'';
59 static $cache = array();
61 $tpl_info =
$xoops->getTplInfo(
'admin:'.$tpl_name);
62 $tpl_name = $tpl_info[
'tpl_name'];
64 $file = $tpl_info[
'file'];
66 $theme_set =
$xoops->getConfig(
'theme_set') ?
$xoops->getConfig(
'theme_set') :
'default';
67 if (!file_exists($file_path =
$xoops->path(
"themes/{$theme_set}/modules/{$dirname}/admin/{$file}"))) {
68 $file_path =
$xoops->path(
"modules/{$dirname}/templates/admin/{$file}");
70 return $cache[$tpl_name] = $file_path;
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file
fetch($name, &$source, &$mtime)
if($file===false||$dir===false||!strstr($file, $dir)) if(empty($file)||strpos($file, '.php')!==false) $mtime