More agent screen PHP7 fixes
git-svn-id: svn://192.168.202.10@3145 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# audit_comments.php
|
||||
#
|
||||
# Copyright (C) 2014 poundteam.com,vicidial.org LICENSE: AGPLv2
|
||||
# Copyright (C) 2019 poundteam.com,vicidial.org LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed to display QC audit comments, contributed by poundteam.com
|
||||
#
|
||||
@@ -10,6 +10,7 @@
|
||||
# 130802-0957 - Changed to PHP mysqli functions
|
||||
# 140304-2154 - Enabled special characters in comments
|
||||
# 141120-1053 - Added user name and date and flag for admin user for comment log display, code cleanup
|
||||
# 191014-0630 - Fixes for PHP7
|
||||
#
|
||||
|
||||
require_once("functions.php");
|
||||
@@ -87,6 +88,11 @@ function get_audited_comments($lead_id,$format,$user,$mel,$NOW_TIME,$link,$serve
|
||||
$ACcount=mysqli_num_rows($rslt);
|
||||
if($ACcount>0)
|
||||
{
|
||||
$C_user = array();
|
||||
$C_comment = array();
|
||||
$C_date = array();
|
||||
$C_name = array();
|
||||
$C_level = array();
|
||||
$i=0;
|
||||
while ($i < $ACcount)
|
||||
{
|
||||
|
||||
@@ -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] ~";
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# vdc_script_display.php
|
||||
#
|
||||
# Copyright (C) 2018 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2019 Matt Florell <vicidial@gmail.com> 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)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# vdc_soundboard_display.php
|
||||
#
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2019 Matt Florell <vicidial@gmail.com> 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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user