Exemplo n.º 1
0
 private static function permanent()
 {
     $router_array = array_keys(self::$cfg["lang"]);
     self::$root = self::$cfg["router"] == $router_array[0] ? self::$cfg["root"] : self::$cfg["root"] . self::$cfg["router"] . '/';
     self::$manage = self::$root . self::$cfg["manage"];
     self::$prefix = self::$cfg["prefix"];
     self::$langtag = self::$cfg["langtag"];
     self::$temp = self::$path . self::$cfg["temp_path"] . '_' . self::$cfg["router"] . '/' . self::$mobileDir;
     self::$admin_temp = self::$path . self::$cfg["admin_temp"];
     self::$lang = (include self::$path . 'lang/lang-' . self::$cfg["langfix"] . '.php');
     self::$temp_main = self::$cfg["temp"]['main'];
     self::$temp_option = self::$cfg["temp"]['option'];
     self::$temp_admin = self::$cfg["temp"]['admin'];
     SYSTEM::setting();
     # 取得系統設定
     new SEO();
     # 啟動 SEO 功能檢測
     new MAIL();
     # 啟動 phpmailer
     new CRUMBS();
     # 啟動 麵包屑功能
     #### 各語系資源分開增加路徑 ####
     $lang_keys = array_keys(self::$cfg["lang"]);
     list($main_lang) = $lang_keys;
     if (self::$langtag != self::$cfg["lang"][$main_lang][0]) {
         $path_plus = self::$langtag . '/';
     }
     ################################
     VIEW::assignGlobal(array("TAG_ROOT_PATH" => self::$root, "TAG_MANAGE_PATH" => self::$manage, "TAG_THEME_PATH" => self::$cfg["images"], "TAG_CSS_PATH" => self::$cfg["css"] . self::$mobileDir, "TAG_JS_PATH" => self::$cfg["js"], "TAG_FILE_PATH" => self::$cfg["file"], "TAG_URL_PATH" => 'http://' . self::$cfg["url"] . '/', "TAG_REAL_PATH" => self::$cfg["root"], "TAG_NO_IMG" => self::$cfg["noimg"]));
     new LOAD();
 }