From c04185cb654be817d9fead80de8f435c2ecb78eb Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 8 Mar 2023 18:40:52 +0000 Subject: [PATCH] Added option to show customer phone code to Real-Time Report git-svn-id: svn://192.168.202.10@3696 3d104415-ff17-0410-8863-d5cf3c621b8a --- .../trunk/www/vicidial/AST_timeonVDADall.php | 102 ++++++++++-------- .../trunk/www/vicidial/realtime_report.php | 32 +++++- 2 files changed, 86 insertions(+), 48 deletions(-) diff --git a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php index 726a8797..02e279b1 100644 --- a/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php +++ b/agc_2-X/trunk/www/vicidial/AST_timeonVDADall.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2023 Matt Florell LICENSE: AGPLv2 # # live real-time stats for the VICIDIAL Auto-Dialer all servers # @@ -127,10 +127,11 @@ # 210625-1432 - Added options.php RS_BargeSwap variable # 220217-2045 - Added input variable filters # 220221-1535 - Added allow_web_debug system setting +# 230308-0215 - Added option to show customer phone code # -$version = '2.14-112'; -$build = '220221-1536'; +$version = '2.14-113'; +$build = '230308-0215'; $php_script='AST_timeonVDADall.php'; require("dbconnect_mysqli.php"); @@ -225,6 +226,8 @@ if (isset($_GET["monitor_active"])) {$monitor_active=$_GET["monitor_active"]; elseif (isset($_POST["monitor_active"])) {$monitor_active=$_POST["monitor_active"];} if (isset($_GET["monitor_phone"])) {$monitor_phone=$_GET["monitor_phone"];} elseif (isset($_POST["monitor_phone"])) {$monitor_phone=$_POST["monitor_phone"];} +if (isset($_GET["ShowCustPhoneCode"])) {$ShowCustPhoneCode=$_GET["ShowCustPhoneCode"];} + elseif (isset($_POST["ShowCustPhoneCode"])) {$ShowCustPhoneCode=$_POST["ShowCustPhoneCode"];} if (isset($_GET["CARRIERstats"])) {$CARRIERstats=$_GET["CARRIERstats"];} elseif (isset($_POST["CARRIERstats"])) {$CARRIERstats=$_POST["CARRIERstats"];} if (isset($_GET["PRESETstats"])) {$PRESETstats=$_GET["PRESETstats"];} @@ -444,6 +447,7 @@ $ALLINGROUPstats = preg_replace('/[^-_0-9a-zA-Z]/', '', $ALLINGROUPstats); $with_inbound = preg_replace('/[^-_0-9a-zA-Z]/', '', $with_inbound); $monitor_active = preg_replace('/[^-_0-9a-zA-Z]/', '', $monitor_active); $monitor_phone = preg_replace('/[^-_0-9a-zA-Z]/', '', $monitor_phone); +$ShowCustPhoneCode = preg_replace('/[^-_0-9a-zA-Z]/', '', $ShowCustPhoneCode); $CARRIERstats = preg_replace('/[^-_0-9a-zA-Z]/', '', $CARRIERstats); $PRESETstats = preg_replace('/[^-_0-9a-zA-Z]/', '', $PRESETstats); $AGENTtimeSTATS = preg_replace('/[^-_0-9a-zA-Z]/', '', $AGENTtimeSTATS); @@ -1016,6 +1020,16 @@ $select_list .= "