数据库链接错误 : Access denied for user 'test88_f'@'183.3.222.194' (using password: YES)
- /www/users/mybiocos.com/SpeedPHP/Drivers/mysql.php on line 92
87.
* @param dbConfig 数据库配置
88.
*/
89.
public function __construct($dbConfig)
90.
{
91.
$linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' : 'mysql_connect';
92.
93.
$this->conn = $linkfunction($dbConfig['host'].":".$dbConfig['port'], $dbConfig['login'], $dbConfig['password']) or spError("数据库链接错误 : " . mysql_error());
mysql_select_db($dbConfig['database'], $this->conn) or spError("无法找到数据库,请确认数据库名称正确!");
94.
$this->exec("SET NAMES UTF8");
95.
}
96.
/**
97.
* 对特殊字符进行过滤
- /www/users/mybiocos.com/SpeedPHP/spFunctions.php on line 149
144.
}
145.
}
146.
if(FALSE != $has_define){
147.
$argString = '';$comma = '';
148.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', '; }
149.
150.
eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_SP']["inst_class"][$class_name];
151.
}
152.
spError($class_name."类定义不存在,请检查。");
153.
}
154.
- /www/users/mybiocos.com/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.
* 从数据表中查找一条记录
57.
*
- /www/users/mybiocos.com/SpeedPHP/spFunctions.php on line 149
144.
}
145.
}
146.
if(FALSE != $has_define){
147.
$argString = '';$comma = '';
148.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', '; }
149.
150.
eval("\$GLOBALS['G_SP']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_SP']["inst_class"][$class_name];
151.
}
152.
spError($class_name."类定义不存在,请检查。");
153.
}
154.
- /www/users/mybiocos.com/controller/index/common.php on line 22
17.
//$ip=$_SERVER["REMOTE_ADDR"];
18.
//echo $ip;
19.
20.
21.
//site info
22.
23.
$site = spClass('config_list')->find('id=1');
// $site['qq'] = explode(',', $site['qq']);
24.
$this->site = $site;
25.
// print_R($site);exit;
26.
27.
$this->edition=$this->getLang();
- /www/users/mybiocos.com/controller/index/member.php on line 91
86.
87.
}
88.
89.
function oath()
90.
{
91.
92.
require('common.php');
$this->className = __CLASS__;
93.
$type = empty($_REQUEST['type']) ? '' : $_REQUEST['type'];
94.
95.
if($type == "taobao"){
96.
header("location:include/website/tb_index.php");exit;
- /www/users/mybiocos.com/SpeedPHP/spFunctions.php on line 21
16.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
17.
eval($GLOBALS['G_SP']["dispatcher_error"]);
18.
exit;
19.
}
20.
// 路由并执行用户代码
21.
22.
$handle_controller->$__action();
// 控制器程序运行完毕,进行模板的自动输出
23.
if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
24.
$__tplname = $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
25.
$__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼装模板路径
26.
$handle_controller->auto_display($__tplname);
- /www/users/mybiocos.com/index.php on line 33
28.
require(SP_PATH."/SpeedPHP.php");
29.
30.
// 这里是入口文件全局位置
31.
import(APP_PATH.'/include/index/tpl_func.php');
32.
33.
34.
spRun(); // SpeedPHP 3新特性
35.
function isMobile() {
36.
$user_agent = $_SERVER['HTTP_USER_AGENT'];
37.
$mobile_agents = Array("240x320", "acer", "acoon",
38.
"acs-", "abacho", "ahong", "airness", "alcatel",