From 19be0745ce2f1738a6fc034f433f8ce301a2bb25 Mon Sep 17 00:00:00 2001 From: mattf Date: Mon, 2 Sep 2019 13:16:08 +0000 Subject: [PATCH] Fixes for PHP 7.2 git-svn-id: svn://192.168.202.10@3133 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/www/agc/vdc_chat_display.php | 6 +++- agc_2-X/trunk/www/agc/vicidial.php | 7 +++-- agc_2-X/trunk/www/vicidial/admin.php | 33 ++++++++++++++++++---- 3 files changed, 36 insertions(+), 10 deletions(-) diff --git a/agc_2-X/trunk/www/agc/vdc_chat_display.php b/agc_2-X/trunk/www/agc/vdc_chat_display.php index e1ade8ee..03d92ae8 100644 --- a/agc_2-X/trunk/www/agc/vdc_chat_display.php +++ b/agc_2-X/trunk/www/agc/vdc_chat_display.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2019 Joe Johnson, Matt Florell LICENSE: AGPLv2 # # This is the interface for agents to chat with customers and each other. It's separate from the manager-to-agent # chat interface out of necessity and calls the chat_db_query.php page to send information and display it. It will @@ -17,11 +17,15 @@ # 160303-0051 - Added code for chat transfers # 160818-1235 - Added line colors and scrolling # 170528-1001 - Added variable filtering +# 190902-0914 - Fix for PHP 7.2 # require("dbconnect_mysqli.php"); require("functions.php"); +$MT[0]=''; +$chat_group_ids=$MT; + if (isset($_GET["email"])) {$email=$_GET["email"];} elseif (isset($_POST["email"])) {$email=$_POST["email"];} if (isset($_GET["email_invite_lead_id"])) {$email_invite_lead_id=$_GET["email_invite_lead_id"];} diff --git a/agc_2-X/trunk/www/agc/vicidial.php b/agc_2-X/trunk/www/agc/vicidial.php index f2a00de0..d4e16505 100644 --- a/agc_2-X/trunk/www/agc/vicidial.php +++ b/agc_2-X/trunk/www/agc/vicidial.php @@ -617,10 +617,11 @@ # 190723-1655 - Fix for script tab custom fields # 190730-0925 - Added campaign SIP Actions processing # 190901-0956 - Added cid_choice option to API transfer_conference function +# 190902-0914 - Fix for PHP 7.2 # -$version = '2.14-586c'; -$build = '190901-0956'; +$version = '2.14-587c'; +$build = '190902-0914'; $mel=1; # Mysql Error Log enabled = 1 $mysql_log_count=87; $one_mysql_log=0; @@ -4014,7 +4015,7 @@ while ($CINC < 12) $CCAL_OUT .= ""; $CCAL_OUT .= ""; $CCAL_OUT .= "
"; - $CCAL_OUT .= $Cmonths[$CfirstdayARY[mon]]." $CfirstdayARY[year]"; + $CCAL_OUT .= $Cmonths[$CfirstdayARY['mon']]." $CfirstdayARY[year]"; $CCAL_OUT .= "
"; $CCAL_OUT .= ""; $CCAL_OUT .= ""; diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index 897a5dd4..ad11ffeb 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -4522,12 +4522,13 @@ else # 190705-1012 - Added call_quota_lead_ranking settings # 190722-1602 - Added ENABLED_EXTENDED_RANGE Agent Screen Time campaign option # 190724-1603 - Added sip_event_logging campaign actions +# 190902-0839 - Fixes for PHP 7.2 # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time -$admin_version = '2.14-717a'; -$build = '190724-1603'; +$admin_version = '2.14-718a'; +$build = '190902-0839'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -27176,10 +27177,10 @@ if ($ADD==311) if ($SSexpanded_list_stats > 0) { - if ( ($complete_total < 1) or ($lead_list[count] < 1) ) + if ( ($complete_total < 1) or ($lead_list['count'] < 1) ) {$total_complete_pct = "0";} else - {$total_complete_pct = intval(($complete_total / $lead_list[count]) * 100);} + {$total_complete_pct = intval(($complete_total / $lead_list['count']) * 100);} echo ""._QXZ("SUBTOTALS")."$lead_list[Y_count]$lead_list[N_count]     \n"; echo ""._QXZ("TOTAL")."$lead_list[count]$dialable_total $total_complete_pct%   \n"; } @@ -27540,6 +27541,7 @@ if ($ADD==311) $rslt=mysql_to_mysqli($stmt, $link); $status_called_to_print = mysqli_num_rows($rslt); + $status = $MT; $o=0; $sts=0; $first_row=1; @@ -40190,7 +40192,9 @@ if ($ADD==193000000000) echo "\n"; $o=0; - $menu_id = $MT; + $status_group_id = $MT; + $status_group_notes = $MT; + $admin_group = $MT; while ($status_groups_to_print > $o) { @@ -40296,6 +40300,11 @@ if ($ADD==195000000000) echo ""._QXZ("MODIFY")."\n"; echo "\n"; + $Xip_list_id = $MT; + $ip_list_name = $MT; + $active = $MT; + $admin_group = $MT; + $o=0; while ($ip_lists_to_print > $o) { @@ -40354,7 +40363,10 @@ if ($ADD==196000000000) echo "\n"; $o=0; - $menu_id = $MT; + $cid_group_id = $MT; + $cid_group_notes = $MT; + $cid_group_type = $MT; + $admin_group = $MT; while ($cid_groups_to_print > $o) { @@ -42664,6 +42676,15 @@ if ($ADD==999991) { if ($reports_only_user < 1) { + $server_id = $MT; + $server_description = $MT; + $server_ip = $MT; + $active = $MT; + $sysload = $MT; + $channels_total = $MT; + $cpu_idle_percent = $MT; + $disk_usage = $MT; + echo "
\n";
 
 			echo "";
"._QXZ("SERVER")."