if ($cachetime == 0)
$cachetime = 86400;
+ if (is_writable($path)){
if ($dh = opendir($path)) {
while (($file = readdir($dh)) !== false) {
$fullpath = $path."/".$file;
}
closedir($dh);
}
+ }
}
function set_template_engine(&$a, $engine = 'internal') {