婷婷综合伊人,多野结衣av一区,国产精品视频精品,性直播体位视频在线观看

2020/11/04/steakhouse類(lèi)名稱(chēng)錯(cuò)誤,請(qǐng)檢查。

126.   * @param sdir 載入類(lèi)定義文件的路徑,可以是目錄+文件名的方式,也可以單獨(dú)是目錄。sdir的值將傳入import()進(jìn)行載入
127.   * @param force_inst 是否強(qiáng)制重新實(shí)例化對(duì)象
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)錯(cuò)誤,請(qǐng)檢查。");
132.      // 檢查是否該類(lèi)已經(jīng)實(shí)例化,直接返回已實(shí)例對(duì)象,避免再次實(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不能讀取,則測(cè)試是否僅路徑
135.      if(null != $sdir && !import($sdir) && !import($sdir.'/'.$class_name.'.php'))return FALSE;
136.      
9.  function spRun(){
10.      GLOBAL $__controller$__action;
11.      // 對(duì)路由進(jìn)行自動(dòng)執(zhí)行相關(guān)操作
12.      spLaunch("router_prefilter");
13.      // 對(duì)將要訪問(wèn)的控制器類(lèi)進(jìn)行實(shí)例化
14.      $handle_controller spClass($__controllernull$GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php");
15.      // 調(diào)用控制器出錯(cuò)將調(diào)用路由錯(cuò)誤處理函數(shù)
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.  //執(zhí)行應(yīng)用
18.  spRun();
主站蜘蛛池模板: 佛教| 江永县| 潞西市| 大理市| 三穗县| 油尖旺区| 临夏市| 沙田区| 文成县| 仁布县| 宁明县| 武强县| 富民县| 德钦县| 织金县| 赣州市| 陕西省| 揭西县| 崇州市| 交城县| 三台县| 绥中县| 江达县| 五峰| 仁怀市| 卓尼县| 昌江| 灵山县| 宜兰县| 葫芦岛市| 韩城市| 文山县| 岳阳县| 什邡市| 顺平县| 徐水县| 临颍县| 太白县| 额尔古纳市| 塔河县| 玉林市|