久久精品九九,亚洲欧美色视频,综合国产,www.6666ke.com,99久久久精品免费观看国产,精品在线免费视频,亚洲福利区

winning/1034類(lèi)名稱(chēng)錯誤,請檢查。

126.   * @param sdir 載入類(lèi)定義文件的路徑,可以是目錄+文件名的方式,也可以單獨是目錄。sdir的值將傳入import()進(jìn)行載入
127.   * @param force_inst 是否強制重新實(shí)例化對象
128.   */
129.  function spClass($class_name$args null$sdir null$force_inst FALSE){
130.      // 檢查類(lèi)名稱(chēng)是否正確,以保證類(lèi)定義文件載入的安全性
131.      if(preg_match('/[^a-z0-9\-_.]/i'$class_name))spError($class_name."類(lèi)名稱(chēng)錯誤,請檢查。");
132.      // 檢查是否該類(lèi)已經(jīng)實(shí)例化,直接返回已實(shí)例對象,避免再次實(shí)例化
133.      if(TRUE != $force_inst)if(isset($GLOBALS['G_SP']["inst_class"][$class_name]))return $GLOBALS['G_SP']["inst_class"][$class_name];
134.      // 如果$sdir不能讀取,則測試是否僅路徑
135.      if(null != $sdir && !import($sdir) && !import($sdir.'/'.$class_name.'.php'))return FALSE;
136.      
9.  function spRun(){
10.      GLOBAL $__controller$__action;
11.      // 對路由進(jìn)行自動(dòng)執行相關(guān)操作
12.      spLaunch("router_prefilter");
13.      // 對將要訪(fǎng)問(wèn)的控制器類(lèi)進(jìn)行實(shí)例化
14.      $handle_controller spClass($__controllernull$GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php");
15.      // 調用控制器出錯將調用路由錯誤處理函數
16.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
17.          eval($GLOBALS['G_SP']["dispatcher_error"]);
18.          exit;
19.      }
13.  //加載配置文件
14.  require(APP_PATH.'/data/config.php');
15.  //加載框架核心
16.  require(SP_PATH.'/SpeedPHP.php');
17.  //執行應用
18.  spRun();
江阴市| 哈巴河县| 庆云县| 合作市| 宣汉县| 女性| 衡水市| 汽车| 辽阳市| 达拉特旗| 井研县| 临邑县| 左权县| 丽水市| 简阳市| 岑巩县| 喜德县| 民勤县| 西盟| 泉州市| 璧山县| 会理县| 龙川县| 临颍县| 新密市| 泗洪县| 鹤山市| 丘北县| 满洲里市| 杂多县| 永靖县| 同江市| 嘉鱼县| 长武县| 基隆市| 绥阳县| 蓝田县| 六盘水市| 天峨县| 伊春市| 巴塘县|