Fixed slave DB report bug
git-svn-id: svn://192.168.202.10@2040 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
# CHANGES:
|
||||
# 130328-0022 - Converted ereg to preg functions
|
||||
# 130802-0957 - Changed to PHP mysqli functions, added
|
||||
# 131101-0713 - Fixed slave server setting
|
||||
#
|
||||
|
||||
if ( file_exists("/etc/astguiclient.conf") )
|
||||
@@ -52,6 +53,8 @@ else
|
||||
$WeBServeRRooT = '/usr/local/apache2/htdocs';
|
||||
}
|
||||
|
||||
if ( ($use_slave_server > 0) and (strlen($slave_db_server)>5) )
|
||||
{$VARDB_server = $slave_db_server;}
|
||||
$link=mysqli_connect("$VARDB_server", "$VARDB_user", "$VARDB_pass", "$VARDB_database", $VARDB_port);
|
||||
if (!$link)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user