func_code = "index"; $func_title = array ( 'tw' => '首頁', 'cn' => '首页', 'en' => 'Home', ); $CFG->func_title = $func_title[$CFG->lang]; $CFG->title_disable = true; $CFG->name_disable = true; // ---------------------------------------------------------------------------- // 主判斷式 // ---------------------------------------------------------------------------- if ($_REQUEST["mode"]) { $_REQUEST["mode"]($_REQUEST); } else { $_SESSION['web']['back_url'] = $CFG->this_url; show($_REQUEST); } // 主判斷式結束 // ---------------------------------------------------------------------------- // 函式集 // ---------------------------------------------------------------------------- function show($frm) { global $CFG,$WFunc,$UFunc; // 最新文章 $news_query_string = "SELECT * FROM ".$CFG->table_prefix."news WHERE type = 'news' AND status = '1' ORDER BY id DESC LIMIT 4"; $news_db_result = mysql_query($news_query_string); #################################################################### # 載入樣板 #################################################################### // 頁首 !$_REQUEST['pjax'] ? include ($CFG->themes."header.php") : false; // 畫面 include ($CFG->themes."index_list.php"); // 頁尾 !$_REQUEST['pjax'] ? include ($CFG->themes."footer.php") : false; } ?>