###类称号错误,请反省。
- /usr/home/byu7833820001/htdocs/SpeedPHPs/spFunctions.php on line 137
132.
* @param sdir 载入类界说文件的途径,可以是目次+文件名的方法,也可以独自是目次。sdir的值将传入import()举行载入
133.
* @param force_inst 能否强迫重新实例化工具
134.
*/
135.
function spClass($class_name, $args = null, $sdir = null, $force_inst = FALSE){
136.
// 反省类称号能否准确,以包管类界说文件载入的宁静性
137.
138.
if(preg_match('/[^a-z0-9\-_.]/i', $class_name))spError($class_name."类称号错误,请反省。");
// 反省能否该类曾经实例化,间接前往已实例工具,制止再次实例化
139.
if(TRUE != $force_inst)if(isset($GLOBALS['G_SP']["inst_class"][$class_name]))return $GLOBALS['G_SP']["inst_class"][$class_name];
140.
// 假如$sdir不克不及读取,则测试能否仅途径
141.
if(null != $sdir && !import($sdir) && !import($sdir.'/'.$class_name.'.php'))return FALSE;
142.
- /usr/home/byu7833820001/htdocs/SpeedPHPs/spFunctions.php on line 15
10.
GLOBAL $__controller, $__action;
11.
12.
// 对路由举行主动实行相干操纵
13.
spLaunch("router_prefilter");
14.
// 对将要拜访的控制器类举行实例化
15.
16.
$handle_controller = spClass($__controller, null, $GLOBALS['G_SP']["controller_path"].'/'.$__controller.".php");
// 挪用控制器堕落将挪用路由错误处置函数
17.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
18.
eval($GLOBALS['G_SP']["dispatcher_error"]);
19.
exit;
20.
}
- /usr/home/byu7833820001/htdocs/index.php on line 36
31.
)
32.
)
33.
*/
34.
);
35.
require("base.php");
36.
37.
spRun();
?>