uploads/source/98/img/pgcnpwleqwyyr3xx.jpg类名称错误,请检查。

143.   * @param sdir 载入类定义文件的路径,可以是目录+文件名的方式,也可以单独是目录。sdir的值将传入import()进行载入
144.   * @param force_inst 是否强制重新实例化对象
145.   */
146.  function spClass($class_name$args null$sdir null$force_inst FALSE){
147.      // 检查类名称是否正确,以保证类定义文件载入的安全性
148.      if(preg_match('/[^a-z0-9\-_.]/i'$class_name))spError($class_name."类名称错误,请检查。");
149.      // 检查是否该类已经实例化,直接返回已实例对象,避免再次实例化
150.      if(TRUE != $force_inst)if(isset($GLOBALS['G_SP']["inst_class"][$class_name]))return $GLOBALS['G_SP']["inst_class"][$class_name];
151.      // 如果$sdir不能读取,则测试是否仅路径
152.      if(null != $sdir && !import($sdir) && !import($sdir.'/'.$class_name.'.php'))return FALSE;
153.      
21.          $_REQUEST["id"] = $url_rs["pid"];
22.      }
23.      */
24.      /* 根据路由重定向全局方法 end */
25.      // 对将要访问的控制器类进行实例化
26.      $handle_controller spClass($__controllernull$GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php");
27. 
28.      // 调用控制器出错将调用路由错误处理函数
29.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
30.          eval($GLOBALS['G_SP']["dispatcher_error"]);
31.          exit;
31.          )
32.       )
33.      */
34.  );
35.  require("base.php");
36.  spRun();
37.  ?>