Beispiel #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);
             }
         }
     }
 }
Beispiel #2
0
function list_child_file($local)
{
    global $u_langpackage;
    $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") {
                $act_time = date("Y-m-d H:i:s", filemtime("../templates/" . $local));
                global $loc;
                $show_local = $local . '/' . $tp_dir;
                $show_local = preg_replace("/{$loc}\\//", "", $show_local);
                echo '<tr><td><input type="checkbox" name="c_tmp[]" value="' . $show_local . '" /></td><td>' . $show_local . '</td><td>' . $act_time . '</td><td><a href="change_tmp.php?tmp_path=' . $local . '/' . $tp_dir . '">' . $u_langpackage->u_amend . '</a></td></tr>';
            }
        }
    }
}