示例#1
0
 function setup()
 {
     $this->smarty->assign('themes', theme_list());
     $this->smarty->assign('lang_list', lang_list());
     $static_list = array();
     foreach (static_getlist() as $id) {
         $static_list[$id] = static_parse($id);
     }
     $this->smarty->assign('static_list', $static_list);
 }
示例#2
0
         exit;
     } else {
         header('Location:index.php?ac=1&f=' . urlencode('index.php?b=' . $blog_serial . '&c=' . $category_name));
         exit;
     }
     break;
 case '12':
     // settings form
     if (admin_check()) {
         if (isset($_GET['e'])) {
             $has_error = true;
         } else {
             $has_error = false;
         }
         $tpls = tpl_list();
         $langs = lang_list();
         $avail_blocks = block_list();
         $avail_blocks_str = '';
         if ($avail_blocks) {
             for ($i = 0, $size = count($avail_blocks); $i < $size; $i++) {
                 $avail_blocks_str .= ',' . $avail_blocks[$i];
             }
             $avail_blocks_str = substr($avail_blocks_str, 1);
         }
         $block_str = '';
         if (sizeof($blocks) > 0) {
             for ($i = 0, $size = count($blocks); $i < $size; $i++) {
                 $block_str .= ',' . $blocks[$i];
             }
             $block_str = substr($block_str, 1);
         }