partyinfo.aspx?newsId=7E6522343657F1F2類名稱錯誤,請檢查。
- /var/www/html/src/SpeedPHP/spFunctions.php on line 132
127.
* @param sdir 載入類定義文件的路徑,可以是目錄+文件名的方式,也可以單獨是目錄。sdir的值將傳入import()進行載入
128.
* @param force_inst 是否強制重新實例化對象
129.
*/
130.
function spClass($class_name, $args = null, $sdir = null, $force_inst = FALSE){
131.
// 檢查類名稱是否正確,以保證類定義文件載入的安全性
132.
133.
if(preg_match('/[^a-z0-9\-_.]/i', $class_name))spError(htmlentities($class_name)."類名稱錯誤,請檢查。");
// 檢查是否該類已經實例化,直接返回已實例對象,避免再次實例化
134.
if(TRUE != $force_inst) {
135.
if(isset($GLOBALS['G_SP']["inst_class"][$class_name]))
136.
return $GLOBALS['G_SP']["inst_class"][$class_name];
137.
}
- /var/www/html/src/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.
eval($GLOBALS['G_SP']["dispatcher_error"]);
18.
exit;
19.
}