数据库链接澳门app网站下载 : Unknown MySQL server host 'bdm241050120.my3w.com' (1)
- /usr/home/byu2666360001/htdocs/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
(
"数据库链接澳门app网站下载 : "
.
mysql_error
());
mysql_select_db
(
$dbConfig
[
'database'
],
$this
->
conn
) or
spError
(
"无法找到数据库,请确认数据库名称正确!"
);
80.
$this
->
exec
(
"SET NAMES UTF8"
);
81.
}
82.
83.
/**
- /usr/home/byu2666360001/htdocs/SpeedPHPs/spFunctions.php on line 155
150.
}
151.
}
152.
if(
FALSE
!=
$has_define
){
153.
$argString
=
''
;
$comma
=
''
;
154.
if(
null
!=
$args
)for (
$i
=
0
;
$i
<
count
(
$args
);
$i
++) {
$argString
.=
$comma
.
"\$args[
$i
]"
;
$comma
=
', '
; }
155.
156.
eval(
"\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name(
$argString
);"
);
return
$GLOBALS
[
'G_SP'
][
"inst_class"
][
$class_name
];
157.
}
158.
spError
(
$class_name
.
"类定义不存在,请检查。"
);
159.
}
160.
- /usr/home/byu2666360001/htdocs/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'
], array(
0
=>
$GLOBALS
[
'G_SP'
][
'db'
]),
$GLOBALS
[
'G_SP'
][
'db_driver_path'
]);
}
54.
55.
public function
conn_other_db
(
$db_config
){
56.
if(
null
==
$this
->
tbl_name
)
$this
->
tbl_name
=
$GLOBALS
[
'G_SP'
][
'db'
][
'prefix'
] .
$this
->
table
;
57.
$this
->
_db
=
spClass
(
'db_mysql'
, array(
$db_config
),
SP_PATH
.
'/Drivers/mysql.php'
,
true
);
- /usr/home/byu2666360001/htdocs/SpeedPHPs/spFunctions.php on line 155
150.
}
151.
}
152.
if(
FALSE
!=
$has_define
){
153.
$argString
=
''
;
$comma
=
''
;
154.
if(
null
!=
$args
)for (
$i
=
0
;
$i
<
count
(
$args
);
$i
++) {
$argString
.=
$comma
.
"\$args[
$i
]"
;
$comma
=
', '
; }
155.
156.
eval(
"\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name(
$argString
);"
);
return
$GLOBALS
[
'G_SP'
][
"inst_class"
][
$class_name
];
157.
}
158.
spError
(
$class_name
.
"类定义不存在,请检查。"
);
159.
}
160.
- /usr/home/byu2666360001/htdocs/libs/zxinit.php on line 510
505.
private function
c_defaultaddsitemapurl
(){
506.
507.
}
508.
509.
private function
c_gettoprs
(){
510.
511.
$articlestyle
=
spClass
(
'articlestyle'
);
$condition
= array(
"frontdisplay"
=>
1
);
512.
if (
$list_rs
=
$articlestyle
->
findAll
(
null
,
null
,
"sid, islist, outlink"
)) {
513.
foreach (
$list_rs
as
$key
=>
$val
){
514.
if (
$val
[
'outlink'
]) {
515.
$root_columnurl
[
$val
[
'sid'
]] =
$columnurl
[
$val
[
'sid'
]] =
substr
(
$val
[
'outlink'
],
0
,
7
) !==
"http://"
?
WEB_ROOT
.
"/"
.
$val
[
'outlink'
] :
$val
[
'outlink'
];
- /usr/home/byu2666360001/htdocs/libs/zxinit.php on line 442
437.
}
438.
}
439.
440.
//接口方法
441.
protected function
c_default
(){
442.
443.
$this
->
c_gettoprs
();
}
444.
445.
private function
c_default404
(){
446.
if (
$_SERVER
[
'REQUEST_URI'
] !==
WEB_ROOT
.
"/"
&&
strpos
(
$_SERVER
[
'REQUEST_URI'
],
WEB_ROOT
.
"/"
.
"index.php"
) ===
false
) {
447.
$url
=
WEB_ROOT
.
"/nofound.php"
;
- /usr/home/byu2666360001/htdocs/libs/zxinit.php on line 6
1.
2.
class
ZAction
extends
spController
{
3.
4.
public function
__construct
(){
5.
parent
::
__construct
();
6.
7.
$this
->
c_default
();
}
8.
9.
function
index
(){
10.
$this
->
is_index
=
1
;
11.
}
- /usr/home/byu2666360001/htdocs/controller/bases.php on line 7
2.
require(
APP_PATH
.
DS
.
"libs"
.
DS
.
"zxinit.php"
);
3.
4.
class
bases
extends
ZAction
{
5.
6.
public function
__construct
(){
7.
8.
parent
::
__construct
();
try{
9.
10.
}catch(
Exception $e
){
11.
12.
}
- /usr/home/byu2666360001/htdocs/controller/main.php on line 7
2.
require(
"bases.php"
);
3.
4.
class
main
extends
bases
{
5.
6.
public function
__construct
(){
7.
8.
parent
::
__construct
();
try{
9.
$left_rs
=
bases
::
getProLeft
();
10.
$this
->
left_rs
=
$left_rs
;
11.
}catch(
Exception $e
){
12.
- /usr/home/byu2666360001/htdocs/SpeedPHPs/spFunctions.php on line 155
150.
}
151.
}
152.
if(
FALSE
!=
$has_define
){
153.
$argString
=
''
;
$comma
=
''
;
154.
if(
null
!=
$args
)for (
$i
=
0
;
$i
<
count
(
$args
);
$i
++) {
$argString
.=
$comma
.
"\$args[
$i
]"
;
$comma
=
', '
; }
155.
156.
eval(
"\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name(
$argString
);"
);
return
$GLOBALS
[
'G_SP'
][
"inst_class"
][
$class_name
];
157.
}
158.
spError
(
$class_name
.
"类定义不存在,请检查。"
);
159.
}
160.
- /usr/home/byu2666360001/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"
);
// 调用控制器出错将调用路由澳门app网站下载处理函数
17.
if(!
is_object
(
$handle_controller
) || !
method_exists
(
$handle_controller
,
$__action
)){
18.
eval(
$GLOBALS
[
'G_SP'
][
"dispatcher_error"
]);
19.
exit;
20.
}
- /usr/home/byu2666360001/htdocs/index.php on line 36
31.
)
32.
)
33.
*/
34.
);
35.
require(
"base.php"
);
36.
37.
spRun
();
?>