示例#1
0
 function list_child_file($local)
 {
     global $compile_type;
     $ref = opendir("../templates/" . $local);
     while ($tp_dir = readdir($ref)) {
         if (!preg_match("/^\\./", $tp_dir)) {
             if (filetype("../templates/" . $local . "/" . $tp_dir) == "dir") {
                 list_child_file($local . "/" . $tp_dir);
             }
             if (filetype("../templates/" . $local . "/" . $tp_dir) == "file") {
                 global $loc;
                 $show_local = $local . '/' . $tp_dir;
                 $show_local = preg_replace("/{$loc}\\//", "", $show_local);
                 tpl_engine($loc, $show_local, 0, $compile_type);
             }
         }
     }
 }
示例#2
0
function comp_plugins_position()
{
    global $tplAct;
    global $pluginOpsition;
    global $compileType;
    foreach ($pluginOpsition as $file_name) {
        tpl_engine($tplAct, $file_name, 0, $compileType);
    }
}