From 9cb3e7f8e761d304574dbd039ec898a172619948 Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 14 Oct 2019 10:50:00 +0000 Subject: [PATCH] More agent screen PHP7 fixes git-svn-id: svn://192.168.202.10@3145 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/agc/audit_comments.php | 8 ++++++- agc_2-X/trunk/www/agc/conf_exten_check.php | 12 ++++++---- agc_2-X/trunk/www/agc/dispo_send_email.php | 4 +++- agc_2-X/trunk/www/agc/manager_send.php | 8 ++++--- agc_2-X/trunk/www/agc/vdc_script_display.php | 24 ++++++++++++++++--- .../trunk/www/agc/vdc_soundboard_display.php | 23 +++++++++++++++--- 6 files changed, 63 insertions(+), 16 deletions(-) diff --git a/agc_2-X/trunk/www/agc/audit_comments.php b/agc_2-X/trunk/www/agc/audit_comments.php index 341d1e03..52d53e40 100644 --- a/agc_2-X/trunk/www/agc/audit_comments.php +++ b/agc_2-X/trunk/www/agc/audit_comments.php @@ -1,7 +1,7 @@ 0) { + $C_user = array(); + $C_comment = array(); + $C_date = array(); + $C_name = array(); + $C_level = array(); $i=0; while ($i < $ACcount) { diff --git a/agc_2-X/trunk/www/agc/conf_exten_check.php b/agc_2-X/trunk/www/agc/conf_exten_check.php index cd441d8d..955940fb 100644 --- a/agc_2-X/trunk/www/agc/conf_exten_check.php +++ b/agc_2-X/trunk/www/agc/conf_exten_check.php @@ -82,10 +82,11 @@ # 180602-0149 - Changed SQL query for email queue count for accuracy # 190730-0927 - Added campaign SIP Actions processing # 190925-1348 - Added logtable SIP Action +# 191013-2105 - Fixes for PHP7 # -$version = '2.14-56'; -$build = '190925-1348'; +$version = '2.14-57'; +$build = '191013-2105'; $php_script = 'conf_exten_check.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=51; @@ -1043,8 +1044,9 @@ if ($ACTION == 'refresh') if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'03011',$user,$server_ip,$session_name,$one_mysql_log);} if ($rslt) {$sip_list = mysqli_num_rows($rslt);} # echo "$sip_list|"; + $ChannelA = array(); $loop_count=0; - while ($sip_list>$loop_count) + while ($sip_list > $loop_count) { $loop_count++; $total_conf++; $row=mysqli_fetch_row($rslt); @@ -1058,7 +1060,7 @@ if ($ACTION == 'refresh') if ($rslt) {$channels_list = mysqli_num_rows($rslt);} # echo "$channels_list|"; $loop_count=0; - while ($channels_list>$loop_count) + while ($channels_list > $loop_count) { $loop_count++; $total_conf++; $row=mysqli_fetch_row($rslt); @@ -1071,7 +1073,7 @@ if ($ACTION == 'refresh') $counter=0; $countecho=''; - while($total_conf > $counter) + while ($total_conf > $counter) { $counter++; $countecho = "$countecho$ChannelA[$counter] ~"; diff --git a/agc_2-X/trunk/www/agc/dispo_send_email.php b/agc_2-X/trunk/www/agc/dispo_send_email.php index cfb72d17..017910f3 100644 --- a/agc_2-X/trunk/www/agc/dispo_send_email.php +++ b/agc_2-X/trunk/www/agc/dispo_send_email.php @@ -38,6 +38,7 @@ # 180909-1907 - Added channel_group variable # 190129-1855 - Added --A--RUSfullname--B-- special variable flag # 190521-1715 - Added --A--dispo--B-- and --A--dispo_name--B-- to email_body +# 191013-2113 - Fixes for PHP7 # $api_script = 'send_email'; @@ -486,6 +487,7 @@ if ($match_found > 0) if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'60013',$user,$server_ip,$session_name,$one_mysql_log);} if ($DB) {echo "$stmt\n";} $cffn_ct = mysqli_num_rows($rslt); + $field_name_id = array(); $d=0; $field_query_SQL=''; while ($cffn_ct > $d) { @@ -1331,7 +1333,7 @@ if ($match_found > 0) } else { - $MESSAGE = _QXZ("DONE: dispo is not a sale status: %1s Count: ",0,'',$dispo) . $called_count|$called_count_trigger; + $MESSAGE = _QXZ("DONE: dispo is not a sale status: %1s Count: ",0,'',$dispo) . "$called_count|$called_count_trigger"; echo "$MESSAGE\n"; } diff --git a/agc_2-X/trunk/www/agc/manager_send.php b/agc_2-X/trunk/www/agc/manager_send.php index e7208936..42cd4abc 100644 --- a/agc_2-X/trunk/www/agc/manager_send.php +++ b/agc_2-X/trunk/www/agc/manager_send.php @@ -142,10 +142,11 @@ # 180522-1920 - Added more agent debug output for recordings # 190222-1318 - Added recent session per-call logging # 190310-1202 - Added MuteRecording function +# 191013-2114 - Fixes for PHP7 # -$version = '2.14-89'; -$build = '190310-1202'; +$version = '2.14-90'; +$build = '191013-2114'; $php_script = 'manager_send.php'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=143; @@ -2536,8 +2537,9 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") ) if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02080',$user,$server_ip,$session_name,$one_mysql_log);} # $rec_count = intval(mysqli_num_rows($rslt) / 2); $rec_count = mysqli_num_rows($rslt); + $HUchannel = array(); $h=0; - while ($rec_count>$h) + while ($rec_count > $h) { $rowx=mysqli_fetch_row($rslt); $HUchannel[$h] = $rowx[0]; diff --git a/agc_2-X/trunk/www/agc/vdc_script_display.php b/agc_2-X/trunk/www/agc/vdc_script_display.php index 2c485360..7bdf8679 100644 --- a/agc_2-X/trunk/www/agc/vdc_script_display.php +++ b/agc_2-X/trunk/www/agc/vdc_script_display.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2019 Matt Florell LICENSE: AGPLv2 # # This script is designed display the contents of the SCRIPT tab in the agent interface # @@ -39,10 +39,11 @@ # 171126-1124 - Added email message display from inbound emails only # 180224-1406 - Added LOGINvar variables, and options.php $INSERT_ variables # 180327-1356 - Added code for LOCALFQDN conversion to browser-used server URL for script iframes +# 191013-2145 - Fixes for PHP7 # -$version = '2.14-33'; -$build = '180224-1406'; +$version = '2.14-34'; +$build = '191013-2145'; require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -754,6 +755,23 @@ if (preg_match('/--A--TABLEper_call_notes--B--/i',$script_text)) $out_logs_to_print = mysqli_num_rows($rslt); if ($format=='debug') {$NOTESout .= "|$out_logs_to_print|$stmt|";} + $ALLsort = array(); + $ALLstart_epoch = array(); + $ALLcall_date = array(); + $ALLcampaign_id = array(); + $ALLlength_in_sec = array(); + $ALLstatus = array(); + $ALLphone_code = array(); + $ALLphone_number = array(); + $ALLlead_id = array(); + $ALLhangup_reason = array(); + $ALLalt_dial = array(); + $ALLuniqueid = array(); + $ALLuser = array(); + $ALLin_out = array(); + $Allcall_notes = array(); + $ALLemail = array(); + $Allcounter = array(); $g=0; $u=0; while ($out_logs_to_print > $u) diff --git a/agc_2-X/trunk/www/agc/vdc_soundboard_display.php b/agc_2-X/trunk/www/agc/vdc_soundboard_display.php index 86b8838d..fe820ed5 100644 --- a/agc_2-X/trunk/www/agc/vdc_soundboard_display.php +++ b/agc_2-X/trunk/www/agc/vdc_soundboard_display.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2019 Matt Florell LICENSE: AGPLv2 # # This script is designed display the contents of an audio soundboard in the system # @@ -12,10 +12,11 @@ # 160428-1848 - Fix for user_authorization # 161103-1656 - Added Agent Debug Logging # 161111-1647 - Added HIDENUMBERS display option, Font size, button type and layout options +# 191013-2122 - Fixes for PHP7 # -$version = '2.12-6'; -$build = '161111-1647'; +$version = '2.12-7'; +$build = '191013-2122'; require_once("dbconnect_mysqli.php"); require_once("functions.php"); @@ -524,6 +525,22 @@ $soundboardfiles_to_print = mysqli_num_rows($rsltx); $levels = 2; $ranks=0; $rank_max_count=0; +$Aaudio_filename = array(); +$Aaudio_name = array(); +$Arank = array(); +$Alevel = array(); +$Aparent_audio_filename = array(); +$Aparent_rank = array(); +$Ah_ord = array(); +$Abutton_type = array(); +$Afont_size = array(); +$Abold_start = array(); +$Abold_end = array(); +$Aitalic_start = array(); +$Aitalic_end = array(); +$Uranks = array(); +$Rcount = array(); +$Rtally = array(); $o=0; while ($soundboardfiles_to_print > $o) {