無法找到數(shù)據(jù)庫,請(qǐng)確認(rèn)數(shù)據(jù)庫名稱正確!
- /www/wwwroot/szyh/en/SpeedPHP/Drivers/mysql.php on line 93
88.
*/
89.
public function __construct($dbConfig)
90.
{
91.
$linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' : 'mysql_connect';
92.
$this->conn = $linkfunction($dbConfig['host'].":".$dbConfig['port'], $dbConfig['login'], $dbConfig['password']) or spError("數(shù)據(jù)庫鏈接錯(cuò)誤 : " . mysql_error());
93.
94.
mysql_select_db($dbConfig['database'], $this->conn) or spError("無法找到數(shù)據(jù)庫,請(qǐng)確認(rèn)數(shù)據(jù)庫名稱正確!");
$this->exec("SET NAMES UTF8");
95.
}
96.
/**
97.
* 對(duì)特殊字符進(jìn)行過濾
98.
*
- /www/wwwroot/szyh/en/SpeedPHP/spFunctions.php on line 156
151.
}
152.
}
153.
if(FALSE != $has_define){
154.
$argString = '';$comma = '';
155.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', '; }
156.
157.
eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_SP']["inst_class"][$class_name];
158.
}
159.
//spError($class_name."類定義不存在,請(qǐng)檢查。");
160.
Urljumpdebug($GLOBALS['_pnfConfig']['hosturl'],'類定義不存在,請(qǐng)檢查。',1);
161.
}
- /www/wwwroot/szyh/en/SpeedPHP/Core/spModel.php on line 52
47.
{
48.
if( null == $this->tbl_name )$this->tbl_name = $GLOBALS['G_SP']['db']['prefix'] . $this->table;
49.
if( '' == $GLOBALS['G_SP']['db_driver_path'] ){
50.
$GLOBALS['G_SP']['db_driver_path'] = $GLOBALS['G_SP']['sp_drivers_path'].'/'.$GLOBALS['G_SP']['db']['driver'].'.php';
51.
}
52.
53.
$this->_db = spClass('db_'.$GLOBALS['G_SP']['db']['driver'], array(0=>$GLOBALS['G_SP']['db']), $GLOBALS['G_SP']['db_driver_path']);
}
54.
55.
/**
56.
* 從數(shù)據(jù)表中查找一條記錄
57.
*
- /www/wwwroot/szyh/en/SpeedPHP/spFunctions.php on line 156
151.
}
152.
}
153.
if(FALSE != $has_define){
154.
$argString = '';$comma = '';
155.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', '; }
156.
157.
eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_SP']["inst_class"][$class_name];
158.
}
159.
//spError($class_name."類定義不存在,請(qǐng)檢查。");
160.
Urljumpdebug($GLOBALS['_pnfConfig']['hosturl'],'類定義不存在,請(qǐng)檢查。',1);
161.
}
- /www/wwwroot/szyh/en/func/common.func.php on line 451
446.
獲取導(dǎo)航二級(jí)菜單
447.
$nav導(dǎo)航
448.
**********************/
449.
function getNavigatorChild($nav)
450.
{
451.
452.
$md_article_class = spClass('md_article_class');
$md_article = spClass('md_article');
453.
foreach($nav as $key=>$val){
454.
if($val['type'] == 'inSite'){
455.
$navChild['class'.$val['class']] = $md_article_class->findAll(array('pclass_id'=>$val['class']));
456.
}else{
- /www/wwwroot/szyh/en/class/index/main.php on line 33
28.
29.
$contactInfo = json_decode(file_get_contents("data/contactInfo.".$_SESSION["language"].".data.php"), true);
30.
31.
$this->contactInfo = $contactInfo;//賦值聯(lián)系信息數(shù)據(jù)至模板
32.
$this->topnavs = getNavigatorByOrder();
33.
34.
$this->navChild = getNavigatorChild($this->topnavs);
//dump($this->navChild);
35.
$this->footernavs = getNavigator('footer');
36.
$this->pnfConfig = $GLOBALS['_pnfConfig'];//賦值系統(tǒng)基本配置信息至模板
37.
$this->Title = $GLOBALS['_pnfConfig']['webTitle']." - 首頁";//賦值頁面標(biāo)題至模板
38.
$this->display("index.html");
- /www/wwwroot/szyh/en/SpeedPHP/spFunctions.php on line 22
17.
//eval($GLOBALS['G_SP']["dispatcher_error"]); //路由錯(cuò)誤,請(qǐng)檢查控制器目錄下是否存在該控制器/動(dòng)作。
18.
Urljumpdebug($GLOBALS['_pnfConfig']['hosturl'],'路由錯(cuò)誤,請(qǐng)檢查控制器目錄下是否存在該控制器/動(dòng)作',1);
19.
exit;
20.
}
21.
// 路由并執(zhí)行用戶代碼
22.
23.
$handle_controller->$__action();
// 控制器程序運(yùn)行完畢,進(jìn)行模板的自動(dòng)輸出
24.
if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
25.
$__tplname = $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
26.
$__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼裝模板路徑
27.
$handle_controller->auto_display($__tplname);
- /www/wwwroot/szyh/en/index.php on line 20
15.
require(SP_PATH."/SpeedPHP.php");
16.
17.
//注冊(cè)模板函數(shù)
18.
require(APP_PATH."/include/spViewFunction.inc.php");
19.
20.
spRun();