mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 02:20:54 +08:00
fix announce
This commit is contained in:
@@ -7,8 +7,9 @@ include_once($rootpath . 'include/config.php');
|
||||
|
||||
function dbconn_announce() {
|
||||
global $mysql_host, $mysql_user, $mysql_pass, $mysql_db;
|
||||
global $BASIC;
|
||||
|
||||
if (!@mysql_connect($mysql_host, $mysql_user, $mysql_pass))
|
||||
if (!@mysql_connect($mysql_host, $mysql_user, $mysql_pass, $BASIC['mysql_db'], $BASIC['mysql_port']))
|
||||
{
|
||||
die('dbconn: mysql_connect: ' . mysql_error());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user