在线快3官方

  • <tr id='FSqI9D'><strong id='FSqI9D'></strong><small id='FSqI9D'></small><button id='FSqI9D'></button><li id='FSqI9D'><noscript id='FSqI9D'><big id='FSqI9D'></big><dt id='FSqI9D'></dt></noscript></li></tr><ol id='FSqI9D'><option id='FSqI9D'><table id='FSqI9D'><blockquote id='FSqI9D'><tbody id='FSqI9D'></tbody></blockquote></table></option></ol><u id='FSqI9D'></u><kbd id='FSqI9D'><kbd id='FSqI9D'></kbd></kbd>

    <code id='FSqI9D'><strong id='FSqI9D'></strong></code>

    <fieldset id='FSqI9D'></fieldset>
          <span id='FSqI9D'></span>

              <ins id='FSqI9D'></ins>
              <acronym id='FSqI9D'><em id='FSqI9D'></em><td id='FSqI9D'><div id='FSqI9D'></div></td></acronym><address id='FSqI9D'><big id='FSqI9D'><big id='FSqI9D'></big><legend id='FSqI9D'></legend></big></address>

              <i id='FSqI9D'><div id='FSqI9D'><ins id='FSqI9D'></ins></div></i>
              <i id='FSqI9D'></i>
            1. <dl id='FSqI9D'></dl>
              1. <blockquote id='FSqI9D'><q id='FSqI9D'><noscript id='FSqI9D'></noscript><dt id='FSqI9D'></dt></q></blockquote><noframes id='FSqI9D'><i id='FSqI9D'></i>

                i4rdk5/article/detail/233类名称错』误∴,请检查。

                126.   * @param sdir 载入类定义文件的路径,可以是目录+文件名的★方式,也可以单独是目录。sdir的值将【传入import()进行载入
                127.   * @param force_inst 是ω否强制重新实例化对象
                128.   */
                129.  function spClass($class_name$args null$sdir null$force_inst FALSE){
                130.      // 检卐查类名称是否正确,以保证类〖定义文件载入的安全性
                131.      if(preg_match('/[^a-z0-9\-_.]/i'$class_name))spError($class_name."类名称错误,请检查。");
                132.      // 检查是否该类已经实例化,直接返回已实例对象,避免再次实例化
                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.      // 对路由进行自动执行相关操作
                12.      spLaunch("router_prefilter");
                13.      // 对将要访问◥的控制器类进行实例化
                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.      }
                37.      ),
                38.  );
                39. 
                40.  require(SP_PATH."/SpeedPHP.php");
                41.  require(SP_PATH."/Extensions/cyFunctions.php");
                42.  spRun();
                43. 
                44.  ?>