search.php?wd=%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD%EF%BF%BD类名称错误,请检查。
- /data/wwwroot/default/SpeedPHP/spFunctions.php on line 131
126.
* @param sdir 载入类举例文件名称的路线,需要是导航+文档文件夹的玩法,也还可以随便是子目录。sdir的值将传到import()进行载入
127.
* @param force_inst 是否强制重新实例化对象
128.
*/
129.
function spClass($class_name, $args = null, $sdir = null, $force_inst = FALSE){
130.
// 检查类名称是否正确,以保证类定义文件载入的安全性
131.
132.
if(preg_match('/[^a-z0-9\-_.]/i', $class_name))spError($class_name."类标题系统错误,请检测。");
// 检查是否该类已经实例化,直接返回已实例对象,避免再次实例化
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.
- /data/wwwroot/default/SpeedPHP/spFunctions.php on line 14
9.
function spRun(){
10.
GLOBAL $__controller, $__action;
11.
// 对路由进行自动执行相关操作
12.
spLaunch("router_prefilter");
13.
// 对将要访问的控制器类进行实例化
14.
15.
$handle_controller = spClass($__controller, null, $GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php");
// 调用控制器出错将调用路由错误处理函数
16.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
17.
;
18.
exit;
19.
}
- /data/wwwroot/default/index.php on line 29
24.
),
25.
);
26.
27.
require(SP_PATH."/SpeedPHP.php");
28.
require(SP_PATH."/Extensions/cyFunctions.php");
29.
30.
spRun();
31.
?>