Пример #1
0
include_once "../config.inc.php";
include_once INCLUDE_PATH . "cls_fast_template.php";
include_once INCLUDE_LANGUAGE_PATH . $LANG . ".inc.php";
include_once INCLUDE_LANGUAGE_PATH . $LANG . ".admintool.inc.php";
include_once INCLUDE_PATH . "connection.php";
include_once INCLUDE_PATH . "cls_sidebar.php";
$stringutil = new String("");
$all_url_vars = array();
$all_url_vars = $stringutil->parse_all();
/**
 * @author   - Test Developer
 * @desc     - autentication will be called here
 * @vers     - 1.0
 **/
$util = new Authenticate();
$util->check_authentification();
$sb = new Sidebar();
$action = $all_url_vars["action"];
$template_name = $all_url_vars["template_name"];
if ($action != "mod") {
    $files_array = array();
    //kiolvassuk a template directoryt
    foreach ($scanned_directories as $dir) {
        $i = 0;
        $d = dir(INDEX_PATH . $dir);
        while (false !== ($entry = $d->read())) {
            $templ[$i] = $dir . $entry;
            $i++;
        }
        $d->close();
        sort($templ);