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:
mattf
2023-08-02 06:21:55 +00:00
parent ead378d914
commit c96bec3c75
8 changed files with 466 additions and 3 deletions
+11
View File
@@ -6,6 +6,7 @@
# CHANGELOG:
# 220825-1600 - First build
#
$report_name="VERM reports";
$startMS = microtime();
@@ -51,6 +52,16 @@ 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");
echo "<!-- Using slave server $slave_db_server $db_source -->\n";
}
# $report_name = 'Vicidial Enhanced Reporting Module';
require("../$SSadmin_web_directory/screen_colors.php");