數據庫鏈接錯誤 : ????????????????????????????
- D:\wwwroot\jtctian\wwwroot\SpeedPHPs\Drivers\mysql.php on line 78
73.
* @param dbConfig 數據庫配置
74.
*/
75.
public function __construct($dbConfig)
76.
{
77.
$linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' : 'mysql_connect';
78.
79.
$this->conn = $linkfunction($dbConfig['host'].":".$dbConfig['port'], $dbConfig['login'], $dbConfig['password']) or spError("數據庫鏈接錯誤 : " . mysql_error());
mysql_select_db($dbConfig['database'], $this->conn) or spError("無法找到數據庫,請確認數據庫名稱正確!");
80.
$this->exec("SET NAMES UTF8");
81.
}
82.
83.
/**
- D:\wwwroot\jtctian\wwwroot\SpeedPHPs\spFunctions.php on line 152
147.
if( TRUE == import($class_name.'.php')){
148.
$has_define = TRUE;
149.
}
150.
}
151.
if(FALSE != $has_define){
152.
153.
$GLOBALS['G_SP']["inst_class"][$class_name] = new $class_name($args);
return $GLOBALS['G_SP']["inst_class"][$class_name];
154.
}
155.
spError($class_name."類定義不存在,請檢查。");
156.
}
157.
- D:\wwwroot\jtctian\wwwroot\SpeedPHPs\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'], $GLOBALS['G_SP']['db'], $GLOBALS['G_SP']['db_driver_path']);
}
54.
55.
56.
/**
57.
* 獲取數據庫版本
- D:\wwwroot\jtctian\wwwroot\SpeedPHPs\spFunctions.php on line 152
147.
if( TRUE == import($class_name.'.php')){
148.
$has_define = TRUE;
149.
}
150.
}
151.
if(FALSE != $has_define){
152.
153.
$GLOBALS['G_SP']["inst_class"][$class_name] = new $class_name($args);
return $GLOBALS['G_SP']["inst_class"][$class_name];
154.
}
155.
spError($class_name."類定義不存在,請檢查。");
156.
}
157.
- D:\wwwroot\jtctian\wwwroot\libs\zxinit.php on line 327
322.
private function c_defaultaddsitemapurl(){
323.
324.
}
325.
326.
private function c_gettoprs(){
327.
328.
$articlestyle = spClass('articlestyle');
if ($list_rs = $articlestyle->findAll(array("frontdisplay"=>1), null, "sid, islist, outlink")) {
329.
foreach ($list_rs as $key => $val){
330.
if ($val['outlink']) {
331.
$columnurl[$val['sid']] = substr($val['outlink'],0,7) !== "http://" ? WEB_ROOT."/".$val['outlink'] : $val['outlink'];
332.
continue;
- D:\wwwroot\jtctian\wwwroot\libs\zxinit.php on line 259
254.
}
255.
}
256.
257.
//接口方法
258.
protected function c_default(){
259.
260.
$this->c_gettoprs();
}
261.
262.
private function c_default404(){
263.
if ($_SERVER['REQUEST_URI'] !== WEB_ROOT."/" && strpos($_SERVER['REQUEST_URI'], WEB_ROOT."/"."index.php") === false) {
264.
$url = WEB_ROOT."/nofound.php";
- D:\wwwroot\jtctian\wwwroot\libs\zxinit.php on line 5
1.
<?php
2.
class ZAction extends spController {
3.
4.
function index(){
5.
6.
$this->c_default();
}
7.
8.
function shareInfo(){
9.
$postdata = $this->spArgs();
10.
require("app_config.php");
- D:\wwwroot\jtctian\wwwroot\controller\main.php on line 11
6.
if (strpos($_SERVER['SERVER_NAME'], "www.") === false || $this->spArgs("a") == "index") {
7.
@header('HTTP/1.1 301 Moved Permanently');
8.
@header("location: http://www.zgsszy.com");
9.
exit();
10.
}*/
11.
12.
parent::index();
}
13.
14.
function rongyu_ajax(){
15.
$page = intval($this->spArgs("page"));
16.
$page_size = 9;
- D:\wwwroot\jtctian\wwwroot\SpeedPHPs\spFunctions.php on line 26
21.
22.
//執行before_display注入函數
23.
spInject('before_display', array($handle_controller) );
24.
25.
// 路由并執行用戶代碼
26.
27.
$handle_controller->$__action();
28.
// 控制器程序運行完畢,進行模板的自動輸出
29.
if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
30.
$__tplname = $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
31.
$__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼裝模板路徑
- D:\wwwroot\jtctian\wwwroot\index.php on line 93
88.
unset($in);
89.
}
90.
91.
//dump($_SESSION);
92.
require(APP_PATH . DS . "libs" . DS . "zxinit.php");
93.
94.
spRun();
95.
?>