Fix for slave reporting DB in several VERM scripts
git-svn-id: svn://192.168.202.10@3747 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
# CHANGELOG:
|
||||
# 220825-1601 - First build
|
||||
#
|
||||
$report_name="VERM reports";
|
||||
|
||||
$startMS = microtime();
|
||||
|
||||
@@ -51,6 +52,15 @@ if ($SSallow_web_debug < 1) {$DB=0;}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
|
||||
if ( (strlen($slave_db_server)>5) and (preg_match("/$report_name/",$reports_use_slave_db)) )
|
||||
{
|
||||
mysqli_close($link);
|
||||
$use_slave_server=1;
|
||||
$db_source = 'S';
|
||||
require("dbconnect_mysqli.php");
|
||||
}
|
||||
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB);
|
||||
|
||||
Reference in New Issue
Block a user