Added in-group and campaign custom fields 1-5, for script/webform/dispo-call-url use, chat fixes, qc fixes
git-svn-id: svn://192.168.202.10@3725 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Call URL features(start call url, dispo call url, etc...) Updated: 2022-02-12
|
||||
Call URL features(start call url, dispo call url, etc...) Updated: 2022-05-18
|
||||
|
||||
|
||||
|
||||
@@ -174,7 +174,9 @@ preset_number_e, preset_number_f, preset_dtmf_a, preset_dtmf_b, entry_date,
|
||||
did_id, did_extension, did_pattern, did_description, closecallid, called_count,
|
||||
xfercallid, agent_log_id, entry_list_id, call_id, user_group, list_name,
|
||||
did_custom_one, did_custom_two, did_custom_three, did_custom_four,
|
||||
did_custom_five
|
||||
did_custom_five, ig_custom_one, ig_custom_two, ig_custom_three,, ig_custom_four,
|
||||
ig_custom_five, camp_custom_one, camp_custom_two, camp_custom_three,
|
||||
camp_custom_four, camp_custom_five
|
||||
|
||||
For most of the functions above, you can also reference custom list fields using
|
||||
the standard --A-- and --B-- around the custom field ID
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Sending email after agent dispositions a call Started: 2015-08-06 Updated: 2023-04-20
|
||||
Sending email after agent dispositions a call Started: 2015-08-06 Updated: 2023-05-18
|
||||
|
||||
These instructions will show you how to set up automatic emails to be sent out when an agent dispositions a call with a specific defined "sale status".
|
||||
|
||||
@@ -129,6 +129,16 @@ did_custom_two: --A--did_custom_two--B--
|
||||
did_custom_three: --A--did_custom_three--B--
|
||||
did_custom_four: --A--did_custom_four--B--
|
||||
did_custom_five: --A--did_custom_five--B--
|
||||
campaign custom 1: --A--camp_custom_one--B--
|
||||
campaign custom 2: --A--camp_custom_two--B--
|
||||
campaign custom 3: --A--camp_custom_three--B--
|
||||
campaign custom 4: --A--camp_custom_four--B--
|
||||
campaign custom 5: --A--camp_custom_five--B--
|
||||
in-group custom 1: --A--ig_custom_one--B--
|
||||
in-group custom 2: --A--ig_custom_two--B--
|
||||
in-group custom 3: --A--ig_custom_three--B--
|
||||
in-group custom 4: --A--ig_custom_four--B--
|
||||
in-group custom 5: --A--ig_custom_five--B--
|
||||
custom field x: --A--custom_xyz--B--
|
||||
call notes: --A--call_notes--B--
|
||||
|
||||
|
||||
@@ -1109,7 +1109,12 @@ demographic_quotas ENUM('DISABLED','ENABLED','INVALID','COMPLETE') default 'DISA
|
||||
demographic_quotas_container VARCHAR(40) default 'DISABLED',
|
||||
demographic_quotas_rerank ENUM('NO','NOW','HOUR','MINUTE','NOW_HOUR') default 'NO',
|
||||
demographic_quotas_last_rerank DATETIME default '2000-01-01 00:00:00',
|
||||
demographic_quotas_list_resets ENUM('AUTO','MANUAL') default 'MANUAL'
|
||||
demographic_quotas_list_resets ENUM('AUTO','MANUAL') default 'MANUAL',
|
||||
custom_one TEXT,
|
||||
custom_two TEXT,
|
||||
custom_three TEXT,
|
||||
custom_four TEXT,
|
||||
custom_five TEXT
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_lists (
|
||||
@@ -1415,7 +1420,12 @@ populate_lead_comments VARCHAR(40) default 'CALLERID_NAME',
|
||||
drop_call_seconds_override VARCHAR(40) default 'DISABLED',
|
||||
populate_lead_owner VARCHAR(20) default 'DISABLED',
|
||||
in_queue_nanque ENUM('N','Y','NO_PAUSED','NO_PAUSED_EXCEPTIONS','NO_READY') default 'N',
|
||||
in_queue_nanque_exceptions VARCHAR(40) default ''
|
||||
in_queue_nanque_exceptions VARCHAR(40) default '',
|
||||
custom_one TEXT,
|
||||
custom_two TEXT,
|
||||
custom_three TEXT,
|
||||
custom_four TEXT,
|
||||
custom_five TEXT
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
CREATE TABLE vicidial_stations (
|
||||
@@ -5039,6 +5049,18 @@ ALTER TABLE vicidial_hopper ENGINE=MEMORY;
|
||||
|
||||
UPDATE system_settings SET auto_user_add_value='1101';
|
||||
|
||||
UPDATE vicidial_campaigns SET custom_one='' WHERE custom_one IS NULL;
|
||||
UPDATE vicidial_campaigns SET custom_two='' WHERE custom_two IS NULL;
|
||||
UPDATE vicidial_campaigns SET custom_three='' WHERE custom_three IS NULL;
|
||||
UPDATE vicidial_campaigns SET custom_four='' WHERE custom_four IS NULL;
|
||||
UPDATE vicidial_campaigns SET custom_five='' WHERE custom_five IS NULL;
|
||||
|
||||
UPDATE vicidial_inbound_groups SET custom_one='' WHERE custom_one IS NULL;
|
||||
UPDATE vicidial_inbound_groups SET custom_two='' WHERE custom_two IS NULL;
|
||||
UPDATE vicidial_inbound_groups SET custom_three='' WHERE custom_three IS NULL;
|
||||
UPDATE vicidial_inbound_groups SET custom_four='' WHERE custom_four IS NULL;
|
||||
UPDATE vicidial_inbound_groups SET custom_five='' WHERE custom_five IS NULL;
|
||||
|
||||
INSERT INTO vicidial_music_on_hold SET moh_id='default',moh_name='Default Music On Hold',active='Y',random='N';
|
||||
INSERT INTO vicidial_music_on_hold_files SET moh_id='default',filename='conf',rank='1';
|
||||
|
||||
@@ -5391,4 +5413,4 @@ INSERT INTO `wallboard_reports` VALUES ('AGENTS_AND_QUEUES','Agents and Queues',
|
||||
|
||||
UPDATE system_settings set vdc_agent_api_active='1';
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1683',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
UPDATE system_settings SET db_schema_version='1684',db_schema_update_date=NOW(),reload_timestamp=NOW();
|
||||
|
||||
@@ -2324,3 +2324,29 @@ INSERT INTO vicidial_settings_containers(container_id,container_notes,container_
|
||||
INSERT INTO vicidial_settings_containers(container_id,container_notes,container_type,user_group,container_entry) VALUES ('AGENT_LATENCY_LOGGING','Default agent latency logging settings','PERL_CLI','---ALL---','minimum_gap => 30\r\nemail_sender => \r\nemail_list => \r\nemail_subject => Agent Network Alert');
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1683',db_schema_update_date=NOW() where db_schema_version < 1683;
|
||||
|
||||
ALTER TABLE vicidial_campaigns ADD custom_one TEXT;
|
||||
ALTER TABLE vicidial_campaigns ADD custom_two TEXT;
|
||||
ALTER TABLE vicidial_campaigns ADD custom_three TEXT;
|
||||
ALTER TABLE vicidial_campaigns ADD custom_four TEXT;
|
||||
ALTER TABLE vicidial_campaigns ADD custom_five TEXT;
|
||||
|
||||
ALTER TABLE vicidial_inbound_groups ADD custom_one TEXT;
|
||||
ALTER TABLE vicidial_inbound_groups ADD custom_two TEXT;
|
||||
ALTER TABLE vicidial_inbound_groups ADD custom_three TEXT;
|
||||
ALTER TABLE vicidial_inbound_groups ADD custom_four TEXT;
|
||||
ALTER TABLE vicidial_inbound_groups ADD custom_five TEXT;
|
||||
|
||||
UPDATE vicidial_campaigns SET custom_one='' WHERE custom_one IS NULL;
|
||||
UPDATE vicidial_campaigns SET custom_two='' WHERE custom_two IS NULL;
|
||||
UPDATE vicidial_campaigns SET custom_three='' WHERE custom_three IS NULL;
|
||||
UPDATE vicidial_campaigns SET custom_four='' WHERE custom_four IS NULL;
|
||||
UPDATE vicidial_campaigns SET custom_five='' WHERE custom_five IS NULL;
|
||||
|
||||
UPDATE vicidial_inbound_groups SET custom_one='' WHERE custom_one IS NULL;
|
||||
UPDATE vicidial_inbound_groups SET custom_two='' WHERE custom_two IS NULL;
|
||||
UPDATE vicidial_inbound_groups SET custom_three='' WHERE custom_three IS NULL;
|
||||
UPDATE vicidial_inbound_groups SET custom_four='' WHERE custom_four IS NULL;
|
||||
UPDATE vicidial_inbound_groups SET custom_five='' WHERE custom_five IS NULL;
|
||||
|
||||
UPDATE system_settings SET db_schema_version='1684',db_schema_update_date=NOW() where db_schema_version < 1684;
|
||||
|
||||
@@ -95,6 +95,8 @@ if (file_exists('options.php'))
|
||||
require_once('options.php');
|
||||
}
|
||||
|
||||
$manager_chat_refresh_milliseconds = ($manager_chat_refresh_seconds ? $manager_chat_refresh_seconds*1000 : 1000);
|
||||
|
||||
if ($action == 'BLANK')
|
||||
{
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -736,7 +738,7 @@ function ToggleSpan(span_name) {
|
||||
}
|
||||
|
||||
function MgrAgentAutoRefresh() {
|
||||
rInt=window.setInterval(function() {DisplayMgrAgentChat()}, 500);
|
||||
rInt=window.setInterval(function() {DisplayMgrAgentChat()}, <?php echo $manager_chat_refresh_milliseconds; ?>);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
# 220219-0135 - Added allow_web_debug system setting
|
||||
# 230113-0839 - Added dialed_number & dialed_label to allowed variables in email subject and body
|
||||
# 230420-1620 - Added email_display_name as a container option for the email sender
|
||||
# 230518-1035 - Added in-group and campaign custom fields 1-5, for script/webform/dispo-call-url use
|
||||
#
|
||||
|
||||
$api_script = 'send_email';
|
||||
@@ -142,6 +143,16 @@ if (isset($_GET["dialed_number"])) {$dialed_number=$_GET["dialed_number"];}
|
||||
elseif (isset($_POST["dialed_number"])) {$dialed_number=$_POST["dialed_number"];}
|
||||
if (isset($_GET["dialed_label"])) {$dialed_label=$_GET["dialed_label"];}
|
||||
elseif (isset($_POST["dialed_label"])) {$dialed_label=$_POST["dialed_label"];}
|
||||
if (isset($_GET["camp_custom_one"])) {$camp_custom_one=$_GET["camp_custom_one"];}
|
||||
elseif (isset($_POST["camp_custom_one"])) {$camp_custom_one=$_POST["camp_custom_one"];}
|
||||
if (isset($_GET["camp_custom_two"])) {$camp_custom_two=$_GET["camp_custom_two"];}
|
||||
elseif (isset($_POST["camp_custom_two"])) {$camp_custom_two=$_POST["camp_custom_two"];}
|
||||
if (isset($_GET["camp_custom_three"])) {$camp_custom_three=$_GET["camp_custom_three"];}
|
||||
elseif (isset($_POST["camp_custom_three"])) {$camp_custom_three=$_POST["camp_custom_three"];}
|
||||
if (isset($_GET["camp_custom_four"])) {$camp_custom_four=$_GET["camp_custom_four"];}
|
||||
elseif (isset($_POST["camp_custom_four"])) {$camp_custom_four=$_POST["camp_custom_four"];}
|
||||
if (isset($_GET["camp_custom_five"])) {$camp_custom_five=$_GET["camp_custom_five"];}
|
||||
elseif (isset($_POST["camp_custom_five"])) {$camp_custom_five=$_POST["camp_custom_five"];}
|
||||
|
||||
$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB);
|
||||
|
||||
@@ -155,7 +166,7 @@ $search_value='';
|
||||
$match_found=0;
|
||||
$k=0;
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=14;
|
||||
$mysql_log_count=20;
|
||||
$email_format = 'TEXT';
|
||||
$email_charset = 'iso-8859-1';
|
||||
#$email_attachment_path = '/dev/null';
|
||||
@@ -275,6 +286,11 @@ if ($non_latin < 1)
|
||||
$sale_status = preg_replace('/[^-_0-9a-zA-Z]/', '', $sale_status);
|
||||
$dispo = preg_replace('/[^-_0-9a-zA-Z]/', '', $dispo);
|
||||
$channel_group = preg_replace('/[^-_0-9a-zA-Z]/', '', $channel_group);
|
||||
$camp_custom_one = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_one);
|
||||
$camp_custom_two = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_two);
|
||||
$camp_custom_three = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_three);
|
||||
$camp_custom_four = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_four);
|
||||
$camp_custom_five = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_five );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -284,6 +300,11 @@ else
|
||||
$sale_status = preg_replace('/[^-_0-9\p{L}]/u', '', $sale_status);
|
||||
$dispo = preg_replace('/[^-_0-9\p{L}]/u', '', $dispo);
|
||||
$channel_group = preg_replace('/[^-_0-9\p{L}]/u', '', $channel_group);
|
||||
$camp_custom_one = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_one);
|
||||
$camp_custom_two = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_two);
|
||||
$camp_custom_three = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_three);
|
||||
$camp_custom_four = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_four);
|
||||
$camp_custom_five = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_five );
|
||||
}
|
||||
|
||||
|
||||
@@ -320,7 +341,7 @@ if ($match_found > 0)
|
||||
$stmt="SELECT count(*) from vicidial_user_log where user='$user' and event_date > \"$one_minute_ago\" and event='TIMEOUTLOGOUT';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'60XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'60015',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$authlive=$row[0];
|
||||
$auth=$row[0];
|
||||
@@ -569,6 +590,91 @@ if ($match_found > 0)
|
||||
}
|
||||
}
|
||||
|
||||
if ( (preg_match('/--A--camp_custom_|--A--campaign/i',$email_subject)) or (preg_match('/--A--camp_custom_|--A--campaign/i',$email_body)) or (preg_match('/--A--camp_custom_/i',$email_from)) or (preg_match('/--A--camp_custom_/i',$email_to)) or (preg_match('/--A--camp_custom_/i',$email_display_name)) )
|
||||
{
|
||||
$camp_custom_one='';
|
||||
$camp_custom_two='';
|
||||
$camp_custom_three='';
|
||||
$camp_custom_four='';
|
||||
$camp_custom_five='';
|
||||
|
||||
$stmt = "SELECT campaign_id from vicidial_log where uniqueid='$uniqueid' order by call_date desc limit 1;";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'60016',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIDL_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIDL_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$campaign = $row[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt = "SELECT campaign_id from vicidial_live_agents where user='$user' limit 1;";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'60017',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIDL_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIDL_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$campaign = $row[0];
|
||||
}
|
||||
}
|
||||
if (strlen($campaign) > 0)
|
||||
{
|
||||
$stmt = "SELECT custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_campaigns where campaign_id='$campaign' limit 1;";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'60018',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIDL_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIDL_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$camp_custom_one = $row[0];
|
||||
$camp_custom_two= $row[1];
|
||||
$camp_custom_three= $row[2];
|
||||
$camp_custom_four= $row[3];
|
||||
$camp_custom_five= $row[4];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( (preg_match('/--A--ig_custom_|--A--group_id/i',$email_subject)) or (preg_match('/--A--ig_custom_|--A--group_id/i',$email_body)) or (preg_match('/--A--ig_custom_/i',$email_from)) or (preg_match('/--A--ig_custom_/i',$email_to)) or (preg_match('/--A--ig_custom_/i',$email_display_name)) )
|
||||
{
|
||||
$ig_custom_one='';
|
||||
$ig_custom_two='';
|
||||
$ig_custom_three='';
|
||||
$ig_custom_four='';
|
||||
$ig_custom_five='';
|
||||
|
||||
$stmt = "SELECT campaign_id from vicidial_closer_log where uniqueid='$uniqueid' order by call_date desc limit 1;";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'60019',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIDL_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIDL_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$temp_group_id = $row[0];
|
||||
|
||||
$stmt = "SELECT custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_inbound_groups where group_id='$temp_group_id' limit 1;";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'60020',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIDL_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIDL_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$ig_custom_one = $row[0];
|
||||
$ig_custom_two= $row[1];
|
||||
$ig_custom_three= $row[2];
|
||||
$ig_custom_four= $row[3];
|
||||
$ig_custom_five= $row[4];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$stmt = "SELECT custom_one,custom_two,custom_three,custom_four,custom_five,full_name,user_group,email from vicidial_users where user='$user';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
@@ -683,6 +789,11 @@ if ($match_found > 0)
|
||||
$email_subject = preg_replace('/--A--user_custom_three--B--/i',"$user_custom_three",$email_subject);
|
||||
$email_subject = preg_replace('/--A--user_custom_four--B--/i',"$user_custom_four",$email_subject);
|
||||
$email_subject = preg_replace('/--A--user_custom_five--B--/i',"$user_custom_five",$email_subject);
|
||||
$email_subject = preg_replace('/--A--camp_custom_one--B--/i',"$camp_custom_one",$email_subject);
|
||||
$email_subject = preg_replace('/--A--camp_custom_two--B--/i',"$camp_custom_two",$email_subject);
|
||||
$email_subject = preg_replace('/--A--camp_custom_three--B--/i',"$camp_custom_three",$email_subject);
|
||||
$email_subject = preg_replace('/--A--camp_custom_four--B--/i',"$camp_custom_four",$email_subject);
|
||||
$email_subject = preg_replace('/--A--camp_custom_five--B--/i',"$camp_custom_five",$email_subject);
|
||||
$email_subject = preg_replace('/--A--user_group--B--/i',urlencode(trim($user_group)),$email_subject);
|
||||
$email_subject = preg_replace('/--A--agent_email--B--/i',"$agent_email",$email_subject);
|
||||
$email_subject = preg_replace('/--A--did_id--B--/i',"$DID_id",$email_subject);
|
||||
@@ -695,14 +806,20 @@ if ($match_found > 0)
|
||||
$email_subject = preg_replace('/--A--did_custom_three--B--/i',"$DID_custom_three",$email_subject);
|
||||
$email_subject = preg_replace('/--A--did_custom_four--B--/i',"$DID_custom_four",$email_subject);
|
||||
$email_subject = preg_replace('/--A--did_custom_five--B--/i',"$DID_custom_five",$email_subject);
|
||||
$email_subject = preg_replace('/--A--ig_custom_one--B--/i',"$ig_custom_one",$email_subject);
|
||||
$email_subject = preg_replace('/--A--ig_custom_two--B--/i',"$ig_custom_two",$email_subject);
|
||||
$email_subject = preg_replace('/--A--ig_custom_three--B--/i',"$ig_custom_three",$email_subject);
|
||||
$email_subject = preg_replace('/--A--ig_custom_four--B--/i',"$ig_custom_four",$email_subject);
|
||||
$email_subject = preg_replace('/--A--ig_custom_five--B--/i',"$ig_custom_five",$email_subject);
|
||||
$email_subject = preg_replace('/--A--uniqueid--B--/i',"$uniqueid",$email_subject);
|
||||
$email_subject = preg_replace('/--A--group--B--/i',"$channel_group",$email_subject);
|
||||
$email_subject = preg_replace('/--A--channel_group--B--/i',"$channel_group",$email_subject);
|
||||
$email_subject = preg_replace('/--A--dialed_number--B--/i',"$dialed_number",$email_subject);
|
||||
$email_subject = preg_replace('/--A--dialed_label--B--/i',"$dialed_label",$email_subject);
|
||||
$email_subject = preg_replace('/--A--campaign--B--/i',"$campaign",$email_subject);
|
||||
$email_subject = preg_replace('/--A--group_id--B--/i',"$temp_group_id",$email_subject);
|
||||
|
||||
# not currently active
|
||||
$email_subject = preg_replace('/--A--campaign--B--/i',"$campaign",$email_subject);
|
||||
$email_subject = preg_replace('/--A--phone_login--B--/i',"$phone_login",$email_subject);
|
||||
$email_subject = preg_replace('/--A--customer_zap_channel--B--/i',"$customer_zap_channel",$email_subject);
|
||||
$email_subject = preg_replace('/--A--customer_server_ip--B--/i',"$customer_server_ip",$email_subject);
|
||||
@@ -780,6 +897,11 @@ if ($match_found > 0)
|
||||
$email_body = preg_replace('/--A--user_custom_three--B--/i',"$user_custom_three",$email_body);
|
||||
$email_body = preg_replace('/--A--user_custom_four--B--/i',"$user_custom_four",$email_body);
|
||||
$email_body = preg_replace('/--A--user_custom_five--B--/i',"$user_custom_five",$email_body);
|
||||
$email_body = preg_replace('/--A--camp_custom_one--B--/i',"$camp_custom_one",$email_body);
|
||||
$email_body = preg_replace('/--A--camp_custom_two--B--/i',"$camp_custom_two",$email_body);
|
||||
$email_body = preg_replace('/--A--camp_custom_three--B--/i',"$camp_custom_three",$email_body);
|
||||
$email_body = preg_replace('/--A--camp_custom_four--B--/i',"$camp_custom_four",$email_body);
|
||||
$email_body = preg_replace('/--A--camp_custom_five--B--/i',"$camp_custom_five",$email_body);
|
||||
$email_body = preg_replace('/--A--user_group--B--/i',urlencode(trim($user_group)),$email_body);
|
||||
$email_body = preg_replace('/--A--agent_email--B--/i',"$agent_email",$email_body);
|
||||
$email_body = preg_replace('/--A--did_id--B--/i',"$DID_id",$email_body);
|
||||
@@ -792,6 +914,11 @@ if ($match_found > 0)
|
||||
$email_body = preg_replace('/--A--did_custom_three--B--/i',"$DID_custom_three",$email_body);
|
||||
$email_body = preg_replace('/--A--did_custom_four--B--/i',"$DID_custom_four",$email_body);
|
||||
$email_body = preg_replace('/--A--did_custom_five--B--/i',"$DID_custom_five",$email_body);
|
||||
$email_body = preg_replace('/--A--ig_custom_one--B--/i',"$ig_custom_one",$email_body);
|
||||
$email_body = preg_replace('/--A--ig_custom_two--B--/i',"$ig_custom_two",$email_body);
|
||||
$email_body = preg_replace('/--A--ig_custom_three--B--/i',"$ig_custom_three",$email_body);
|
||||
$email_body = preg_replace('/--A--ig_custom_four--B--/i',"$ig_custom_four",$email_body);
|
||||
$email_body = preg_replace('/--A--ig_custom_five--B--/i',"$ig_custom_five",$email_body);
|
||||
$email_body = preg_replace('/--A--uniqueid--B--/i',"$uniqueid",$email_body);
|
||||
$email_body = preg_replace('/--A--call_notes--B--/i',"$call_notes",$email_body);
|
||||
$email_body = preg_replace('/--A--additional_notes--B--/i',"$additional_notes",$email_body);
|
||||
@@ -799,6 +926,8 @@ if ($match_found > 0)
|
||||
$email_body = preg_replace('/--A--channel_group--B--/i',"$channel_group",$email_body);
|
||||
$email_body = preg_replace('/--A--dialed_number--B--/i',"$dialed_number",$email_body);
|
||||
$email_body = preg_replace('/--A--dialed_label--B--/i',"$dialed_label",$email_body);
|
||||
$email_body = preg_replace('/--A--campaign--B--/i',"$campaign",$email_body);
|
||||
$email_body = preg_replace('/--A--group_id--B--/i',"$temp_group_id",$email_body);
|
||||
$email_body = urldecode($email_body);
|
||||
}
|
||||
|
||||
@@ -809,6 +938,16 @@ if ($match_found > 0)
|
||||
$email_to = preg_replace('/--A--email--B--/i',"$email",$email_to);
|
||||
$email_to = preg_replace('/--A--customer_email--B--/i',"$email",$email_to);
|
||||
$email_to = preg_replace('/--A--agent_email--B--/i',"$agent_email",$email_to);
|
||||
$email_to = preg_replace('/--A--camp_custom_one--B--/i',"$camp_custom_one",$email_to);
|
||||
$email_to = preg_replace('/--A--camp_custom_two--B--/i',"$camp_custom_two",$email_to);
|
||||
$email_to = preg_replace('/--A--camp_custom_three--B--/i',"$camp_custom_three",$email_to);
|
||||
$email_to = preg_replace('/--A--camp_custom_four--B--/i',"$camp_custom_four",$email_to);
|
||||
$email_to = preg_replace('/--A--camp_custom_five--B--/i',"$camp_custom_five",$email_to);
|
||||
$email_to = preg_replace('/--A--ig_custom_one--B--/i',"$ig_custom_one",$email_to);
|
||||
$email_to = preg_replace('/--A--ig_custom_two--B--/i',"$ig_custom_two",$email_to);
|
||||
$email_to = preg_replace('/--A--ig_custom_three--B--/i',"$ig_custom_three",$email_to);
|
||||
$email_to = preg_replace('/--A--ig_custom_four--B--/i',"$ig_custom_four",$email_to);
|
||||
$email_to = preg_replace('/--A--ig_custom_five--B--/i',"$ig_custom_five",$email_to);
|
||||
$email_to = urldecode($email_to);
|
||||
}
|
||||
|
||||
@@ -819,6 +958,16 @@ if ($match_found > 0)
|
||||
$email_from = preg_replace('/--A--email--B--/i',"$email",$email_from);
|
||||
$email_from = preg_replace('/--A--customer_email--B--/i',"$email",$email_from);
|
||||
$email_from = preg_replace('/--A--agent_email--B--/i',"$agent_email",$email_from);
|
||||
$email_from = preg_replace('/--A--camp_custom_one--B--/i',"$camp_custom_one",$email_from);
|
||||
$email_from = preg_replace('/--A--camp_custom_two--B--/i',"$camp_custom_two",$email_from);
|
||||
$email_from = preg_replace('/--A--camp_custom_three--B--/i',"$camp_custom_three",$email_from);
|
||||
$email_from = preg_replace('/--A--camp_custom_four--B--/i',"$camp_custom_four",$email_from);
|
||||
$email_from = preg_replace('/--A--camp_custom_five--B--/i',"$camp_custom_five",$email_from);
|
||||
$email_from = preg_replace('/--A--ig_custom_one--B--/i',"$ig_custom_one",$email_from);
|
||||
$email_from = preg_replace('/--A--ig_custom_two--B--/i',"$ig_custom_two",$email_from);
|
||||
$email_from = preg_replace('/--A--ig_custom_three--B--/i',"$ig_custom_three",$email_from);
|
||||
$email_from = preg_replace('/--A--ig_custom_four--B--/i',"$ig_custom_four",$email_from);
|
||||
$email_from = preg_replace('/--A--ig_custom_five--B--/i',"$ig_custom_five",$email_from);
|
||||
$email_from = urldecode($email_from);
|
||||
}
|
||||
|
||||
@@ -844,6 +993,11 @@ if ($match_found > 0)
|
||||
$email_display_name = preg_replace('/--A--user_custom_three--B--/i',"$user_custom_three",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--user_custom_four--B--/i',"$user_custom_four",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--user_custom_five--B--/i',"$user_custom_five",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--camp_custom_one--B--/i',"$camp_custom_one",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--camp_custom_two--B--/i',"$camp_custom_two",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--camp_custom_three--B--/i',"$camp_custom_three",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--camp_custom_four--B--/i',"$camp_custom_four",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--camp_custom_five--B--/i',"$camp_custom_five",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--did_description--B--/i',"$did_description",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--did_carrier_description--B--/i',"$did_carrier_description",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--did_custom_one--B--/i',"$did_custom_one",$email_display_name);
|
||||
@@ -851,6 +1005,11 @@ if ($match_found > 0)
|
||||
$email_display_name = preg_replace('/--A--did_custom_three--B--/i',"$did_custom_three",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--did_custom_four--B--/i',"$did_custom_four",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--did_custom_five--B--/i',"$did_custom_five",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--ig_custom_one--B--/i',"$ig_custom_one",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--ig_custom_two--B--/i',"$ig_custom_two",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--ig_custom_three--B--/i',"$ig_custom_three",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--ig_custom_four--B--/i',"$ig_custom_four",$email_display_name);
|
||||
$email_display_name = preg_replace('/--A--ig_custom_five--B--/i',"$ig_custom_five",$email_display_name);
|
||||
$email_display_name = urldecode($email_display_name);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# functions for agent scripts
|
||||
#
|
||||
# Copyright (C) 2022 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2023 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
#
|
||||
# CHANGES:
|
||||
@@ -57,6 +57,7 @@
|
||||
# 210603-1616 - Fix for specific custom field values with a slash in them
|
||||
# 210615-1032 - Default security fixes, CVE-2021-28854
|
||||
# 220921-1204 - Added more failed login logging in user_authorization function
|
||||
# 230518-1111 - Added in-group and campaign custom fields 1-5, for script/webform/dispo-call-url use
|
||||
#
|
||||
|
||||
# $mysql_queries = 28
|
||||
@@ -1292,8 +1293,6 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
|
||||
|
||||
if (preg_match('/--A--list_|--U--list_/i',$CFoutput))
|
||||
{
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
### find the dialed number and label for this call
|
||||
$stmt="SELECT list_name,list_description from vicidial_lists where list_id='$list_id';";
|
||||
if ($DB) {$CFoutput .= "$stmt\n";}
|
||||
@@ -1310,8 +1309,6 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
|
||||
|
||||
if (preg_match('/--A--did_|--U--did_/i',$CFoutput))
|
||||
{
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
### find the did_carrier_description for this call
|
||||
$stmt="SELECT did_carrier_description,custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_inbound_dids where did_id='$did_id';";
|
||||
if ($DB) {$CFoutput .= "$stmt\n";}
|
||||
@@ -1330,6 +1327,37 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
|
||||
}
|
||||
}
|
||||
|
||||
if (preg_match('/--A--ig_custom_|--U--ig_custom_/i',$CFoutput))
|
||||
{
|
||||
### find the in-group values for this call
|
||||
$stmt="SELECT campaign_id from vicidial_closer_log where uniqueid='$uniqueid' order by call_date desc limit 1;";
|
||||
if ($DB) {$CFoutput .= "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'05XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$dcd_ct = mysqli_num_rows($rslt);
|
||||
if ($dcd_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$temp_group_id = $row[0];
|
||||
}
|
||||
|
||||
### find the in-group values for this call
|
||||
$stmt="SELECT custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_inbound_groups where group_id='$temp_group_id';";
|
||||
if ($DB) {$CFoutput .= "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'05XXX',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$dcd_ct = mysqli_num_rows($rslt);
|
||||
if ($dcd_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$ig_custom_one = $row[0];
|
||||
$ig_custom_two = $row[1];
|
||||
$ig_custom_three = $row[2];
|
||||
$ig_custom_four = $row[3];
|
||||
$ig_custom_five = $row[4];
|
||||
}
|
||||
}
|
||||
|
||||
$CFoutput = preg_replace('/--U--lead_id--V--/i',urlencode($lead_id),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--entry_date--V--/i',urlencode($entry_date),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--vendor_id--V--/i',urlencode($vendor_id),$CFoutput);
|
||||
@@ -1373,6 +1401,11 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
|
||||
$CFoutput = preg_replace('/--U--user_custom_three--V--/i',urlencode($user_custom_three),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--user_custom_four--V--/i',urlencode($user_custom_four),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--user_custom_five--V--/i',urlencode($user_custom_five),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--camp_custom_one--V--/i',urlencode($camp_custom_one),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--camp_custom_two--V--/i',urlencode($camp_custom_two),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--camp_custom_three--V--/i',urlencode($camp_custom_three),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--camp_custom_four--V--/i',urlencode($camp_custom_four),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--camp_custom_five--V--/i',urlencode($camp_custom_five),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--preset_number_a--V--/i',urlencode($preset_number_a),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--preset_number_b--V--/i',urlencode($preset_number_b),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--preset_number_c--V--/i',urlencode($preset_number_c),$CFoutput);
|
||||
@@ -1394,6 +1427,11 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
|
||||
$CFoutput = preg_replace('/--U--did_custom_three--V--/i',urlencode($did_custom_three),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--did_custom_four--V--/i',urlencode($did_custom_four),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--did_custom_five--V--/i',urlencode($did_custom_five),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--ig_custom_one--V--/i',urlencode($ig_custom_one),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--ig_custom_two--V--/i',urlencode($ig_custom_two),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--ig_custom_three--V--/i',urlencode($ig_custom_three),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--ig_custom_four--V--/i',urlencode($ig_custom_four),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--ig_custom_five--V--/i',urlencode($ig_custom_five),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--did_carrier_description--V--/i',urlencode($did_carrier_description),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--list_name--V--/i',urlencode($list_name),$CFoutput);
|
||||
$CFoutput = preg_replace('/--U--list_description--V--/i',urlencode($list_description),$CFoutput);
|
||||
@@ -1441,6 +1479,11 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
|
||||
$CFoutput = preg_replace('/--A--user_custom_three--B--/i',"$user_custom_three",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--user_custom_four--B--/i',"$user_custom_four",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--user_custom_five--B--/i',"$user_custom_five",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--camp_custom_one--B--/i',"$camp_custom_one",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--camp_custom_two--B--/i',"$camp_custom_two",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--camp_custom_three--B--/i',"$camp_custom_three",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--camp_custom_four--B--/i',"$camp_custom_four",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--camp_custom_five--B--/i',"$camp_custom_five",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--preset_number_a--B--/i',"$preset_number_a",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--preset_number_b--B--/i',"$preset_number_b",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--preset_number_c--B--/i',"$preset_number_c",$CFoutput);
|
||||
@@ -1462,6 +1505,11 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user,$DB,$call_i
|
||||
$CFoutput = preg_replace('/--A--did_custom_three--B--/i',"$did_custom_three",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--did_custom_four--B--/i',"$did_custom_four",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--did_custom_five--B--/i',"$did_custom_five",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--ig_custom_one--B--/i',"$ig_custom_one",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--ig_custom_two--B--/i',"$ig_custom_two",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--ig_custom_three--B--/i',"$ig_custom_three",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--ig_custom_four--B--/i',"$ig_custom_four",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--ig_custom_five--B--/i',"$ig_custom_five",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--did_carrier_description--B--/i',"$did_carrier_description",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--list_name--B--/i',"$list_name",$CFoutput);
|
||||
$CFoutput = preg_replace('/--A--list_description--B--/i',"$list_description",$CFoutput);
|
||||
|
||||
@@ -124,4 +124,7 @@ $Xframe_options = 'N'; # Not part of CORS, but can prevent Iframe/embed/etc..
|
||||
$CORS_debug = 0; # 0 = no, 1 = yes (default is no) This will generate a lot of log entries in a CORSdebug_log.txt file
|
||||
# require_once('agentCORS.php');
|
||||
|
||||
$customer_chat_refresh_seconds = 1; # How often (in seconds) to refresh customer ang agent chat window
|
||||
$manager_chat_refresh_seconds = 1; # How often (in seconds) to refresh manager chat window
|
||||
|
||||
?>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# vdc_chat_display.php
|
||||
#
|
||||
# Copyright (C) 2022 Joe Johnson, Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2023 Joe Johnson, Matt Florell <vicidial@gmail.com> 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
|
||||
@@ -22,6 +22,7 @@
|
||||
# 210616-2040 - Added optional CORS support, see options.php for details
|
||||
# 220220-0928 - Added allow_web_debug system setting
|
||||
# 220518-2211 - Small fix for encrypted auth
|
||||
# 230518-2002 - Added customer_chat_refresh_seconds options.php setting, and message display
|
||||
#
|
||||
|
||||
require("dbconnect_mysqli.php");
|
||||
@@ -120,6 +121,9 @@ $stage = preg_replace('/[^-\_0-9a-zA-Z]/','',$stage);
|
||||
$email_invite_lead_id = preg_replace("/\'|\"|\\\\|;/","",$email_invite_lead_id);
|
||||
$child_window = preg_replace('/[^-\_0-9a-zA-Z]/','',$child_window);
|
||||
$chat_group_ids = preg_replace("/\"|\\\\|;/","",$chat_group_ids);
|
||||
$customer_chat_refresh_seconds=preg_replace("/[^0-9\.]/", "", $customer_chat_refresh_seconds);
|
||||
if (!$customer_chat_refresh_seconds) {$customer_chat_refresh_seconds=1;}
|
||||
$customer_chat_refresh_milliseconds = $customer_chat_refresh_seconds*1000;
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
@@ -650,7 +654,7 @@ function StartRefresh() {
|
||||
}
|
||||
else
|
||||
{
|
||||
rInt=window.setInterval(function() {RefreshLiveChatWindow()}, 1000);
|
||||
rInt=window.setInterval(function() {RefreshLiveChatWindow()}, <?php echo $customer_chat_refresh_milliseconds; ?>);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -876,6 +880,9 @@ if($child_window) {
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='center'>
|
||||
<?php
|
||||
echo ($customer_chat_refresh_seconds!=1 ? "<center><font class='chat_timestamp bold' color='red'>** "._QXZ("Messages are on a")." ".$customer_chat_refresh_seconds."-"._QXZ("second delay")." **</font></center>" : "");
|
||||
?>
|
||||
<span id="ChatConsoleSpan" name="ChatConsoleSpan" style="display: block;">
|
||||
<table width='400' align='center' border='0' cellpadding='0' cellspacing='0'>
|
||||
<tr>
|
||||
|
||||
@@ -534,13 +534,14 @@
|
||||
# 230418-0852 - Changed LogiNCamPaigns to require user auth for campaign list
|
||||
# 230418-1354 - Added vicidial_user_dial_log logging
|
||||
# 230513-2043 - Fix for manual dial errors
|
||||
# 230518-1033 - Added in-group and campaign custom fields 1-5, for script/webform/dispo-call-url use
|
||||
#
|
||||
|
||||
$version = '2.14-427';
|
||||
$build = '230513-2043';
|
||||
$version = '2.14-428';
|
||||
$build = '230518-1033';
|
||||
$php_script = 'vdc_db_query.php';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=911;
|
||||
$mysql_log_count=913;
|
||||
$one_mysql_log=0;
|
||||
$DB=0;
|
||||
$VD_login=0;
|
||||
@@ -2322,7 +2323,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
|
||||
$local_call_time='24hours';
|
||||
##### gather local call time, user_group_script settings from campaign
|
||||
$stmt="SELECT local_call_time,user_group_script FROM vicidial_campaigns where campaign_id='$campaign';";
|
||||
$stmt="SELECT local_call_time,user_group_script,custom_one,custom_two,custom_three,custom_four,custom_five FROM vicidial_campaigns where campaign_id='$campaign';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00353',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -2332,6 +2333,11 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$local_call_time = $row[0];
|
||||
$user_group_script = $row[1];
|
||||
$camp_custom_one = $row[2];
|
||||
$camp_custom_two = $row[3];
|
||||
$camp_custom_three = $row[4];
|
||||
$camp_custom_four = $row[5];
|
||||
$camp_custom_five = $row[6];
|
||||
}
|
||||
|
||||
$stmt="SELECT user_group,territory FROM vicidial_users where user='$user';";
|
||||
@@ -5508,6 +5514,11 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_three--B--/i',urlencode(trim($user_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_four--B--/i',urlencode(trim($user_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_five--B--/i',urlencode(trim($user_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_one--B--/i',urlencode(trim($camp_custom_one)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_two--B--/i',urlencode(trim($camp_custom_two)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_three--B--/i',urlencode(trim($camp_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_four--B--/i',urlencode(trim($camp_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_five--B--/i',urlencode(trim($camp_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--talk_time--B--/i',"0",$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--talk_time_min--B--/i',"0",$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--entry_list_id--B--/i',urlencode(trim($entry_list_id)),$VDCL_start_call_url);
|
||||
@@ -6187,7 +6198,7 @@ if ($ACTION == 'manDiaLonly')
|
||||
### check for manual dial filter and extension append settings in campaign
|
||||
$use_eac=0;
|
||||
$use_custom_cid='N';
|
||||
$stmt = "SELECT manual_dial_filter,use_internal_dnc,use_campaign_dnc,use_other_campaign_dnc,extension_appended_cidname,start_call_url,scheduled_callbacks_auto_reschedule,dial_timeout_lead_container,daily_call_count_limit,daily_limit_manual,call_limit_24hour_method,call_limit_24hour_scope,call_limit_24hour,call_limit_24hour_override FROM vicidial_campaigns where campaign_id='$campaign';";
|
||||
$stmt = "SELECT manual_dial_filter,use_internal_dnc,use_campaign_dnc,use_other_campaign_dnc,extension_appended_cidname,start_call_url,scheduled_callbacks_auto_reschedule,dial_timeout_lead_container,daily_call_count_limit,daily_limit_manual,call_limit_24hour_method,call_limit_24hour_scope,call_limit_24hour,call_limit_24hour_override,custom_one,custom_two,custom_three,custom_four,custom_five FROM vicidial_campaigns where campaign_id='$campaign';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00325',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -6209,6 +6220,11 @@ if ($ACTION == 'manDiaLonly')
|
||||
$call_limit_24hour_scope = $row[11];
|
||||
$call_limit_24hour = $row[12];
|
||||
$call_limit_24hour_override = $row[13];
|
||||
$camp_custom_one = $row[14];
|
||||
$camp_custom_two = $row[15];
|
||||
$camp_custom_three = $row[16];
|
||||
$camp_custom_four = $row[17];
|
||||
$camp_custom_five = $row[18];
|
||||
if ($extension_appended_cidname == 'Y')
|
||||
{$use_eac++;}
|
||||
}
|
||||
@@ -7456,6 +7472,11 @@ if ($ACTION == 'manDiaLonly')
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_three--B--/i',urlencode(trim($user_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_four--B--/i',urlencode(trim($user_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_five--B--/i',urlencode(trim($user_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_one--B--/i',urlencode(trim($camp_custom_one)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_two--B--/i',urlencode(trim($camp_custom_two)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_three--B--/i',urlencode(trim($camp_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_four--B--/i',urlencode(trim($camp_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_five--B--/i',urlencode(trim($camp_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--talk_time--B--/i',"0",$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--talk_time_min--B--/i',"0",$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--entry_list_id--B--/i',urlencode(trim($entry_list_id)),$VDCL_start_call_url);
|
||||
@@ -9828,7 +9849,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$CBcomments = trim("$row[3]");
|
||||
}
|
||||
}
|
||||
$stmt="SELECT owner_populate,user_group_script FROM vicidial_campaigns where campaign_id='$campaign';";
|
||||
$stmt="SELECT owner_populate,user_group_script,custom_one,custom_two,custom_three,custom_four,custom_five FROM vicidial_campaigns where campaign_id='$campaign';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00444',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -9838,6 +9859,11 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$owner_populate = $row[0];
|
||||
$user_group_script = $row[1];
|
||||
$camp_custom_one = $row[2];
|
||||
$camp_custom_two = $row[3];
|
||||
$camp_custom_three = $row[4];
|
||||
$camp_custom_four = $row[5];
|
||||
$camp_custom_five = $row[6];
|
||||
}
|
||||
$ownerSQL='';
|
||||
if ( ($owner_populate=='ENABLED') and ( (strlen($owner) < 1) or ($owner=='NULL') ) )
|
||||
@@ -10217,7 +10243,13 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
}
|
||||
}
|
||||
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,inbound_survey,ingroup_script_two,browser_alert_sound,browser_alert_volume from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
$ig_custom_one='';
|
||||
$ig_custom_two='';
|
||||
$ig_custom_three='';
|
||||
$ig_custom_four='';
|
||||
$ig_custom_five='';
|
||||
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,inbound_survey,ingroup_script_two,browser_alert_sound,browser_alert_volume,custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00119',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -10256,10 +10288,15 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$VDCL_ingroup_script_two = $row[29];
|
||||
$VDCL_browser_alert_sound = $row[30];
|
||||
$VDCL_browser_alert_volume = $row[31];
|
||||
$ig_custom_one = $row[32];
|
||||
$ig_custom_two = $row[33];
|
||||
$ig_custom_three = $row[34];
|
||||
$ig_custom_four = $row[35];
|
||||
$ig_custom_five = $row[36];
|
||||
|
||||
$status_group_gather_data = status_group_gather($row[27],'INGROUP');
|
||||
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,default_xfer_group,campaign_script_two,browser_alert_sound,browser_alert_volume from vicidial_campaigns where campaign_id='$campaign';";
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,default_xfer_group,campaign_script_two,browser_alert_sound,browser_alert_volume,custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_campaigns where campaign_id='$campaign';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00181',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -10302,6 +10339,11 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$VDCL_browser_alert_sound = $row[17];
|
||||
$VDCL_browser_alert_volume = $row[18];
|
||||
}
|
||||
$camp_custom_one = $row[19];
|
||||
$camp_custom_two = $row[20];
|
||||
$camp_custom_three = $row[21];
|
||||
$camp_custom_four = $row[22];
|
||||
$camp_custom_five = $row[23];
|
||||
|
||||
if ( ( (preg_match('/NONE/',$VDCL_ingroup_script)) and (strlen($VDCL_ingroup_script) < 5) ) or (strlen($VDCL_ingroup_script) < 1) )
|
||||
{
|
||||
@@ -10753,6 +10795,11 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color_two . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_sound . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_volume . "\n";
|
||||
$LeaD_InfO .= $ig_custom_one . "\n";
|
||||
$LeaD_InfO .= $ig_custom_two . "\n";
|
||||
$LeaD_InfO .= $ig_custom_three . "\n";
|
||||
$LeaD_InfO .= $ig_custom_four . "\n";
|
||||
$LeaD_InfO .= $ig_custom_five . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -10911,6 +10958,11 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_three--B--/i',urlencode(trim($user_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_four--B--/i',urlencode(trim($user_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_five--B--/i',urlencode(trim($user_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_one--B--/i',urlencode(trim($camp_custom_one)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_two--B--/i',urlencode(trim($camp_custom_two)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_three--B--/i',urlencode(trim($camp_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_four--B--/i',urlencode(trim($camp_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_five--B--/i',urlencode(trim($camp_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--talk_time--B--/i',"0",$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--talk_time_min--B--/i',"0",$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--entry_list_id--B--/i',urlencode(trim($entry_list_id)),$VDCL_start_call_url);
|
||||
@@ -10929,6 +10981,11 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$VDCL_start_call_url = preg_replace('/--A--did_custom_three--B--/i',urlencode(trim($DID_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--did_custom_four--B--/i',urlencode(trim($DID_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--did_custom_five--B--/i',urlencode(trim($DID_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--ig_custom_one--B--/i',urlencode(trim($ig_custom_one)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--ig_custom_two--B--/i',urlencode(trim($ig_custom_two)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--ig_custom_three--B--/i',urlencode(trim($ig_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--ig_custom_four--B--/i',urlencode(trim($ig_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--ig_custom_five--B--/i',urlencode(trim($ig_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--agent_email--B--/i',urlencode(trim($agent_email)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--called_count--B--/i',urlencode(trim($called_count)),$VDCL_start_call_url);
|
||||
|
||||
@@ -11704,7 +11761,7 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$VDCL_front_VDlog =$row[0];
|
||||
}
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,ingroup_script_two,browser_alert_sound,browser_alert_volume from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,ingroup_script_two,browser_alert_sound,browser_alert_volume,custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00500',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -11742,10 +11799,15 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$VDCL_ingroup_script_two = $row[28];
|
||||
$VDCL_browser_alert_sound = $row[29];
|
||||
$VDCL_browser_alert_volume = $row[30];
|
||||
$ig_custom_one = $row[31];
|
||||
$ig_custom_two = $row[32];
|
||||
$ig_custom_three = $row[33];
|
||||
$ig_custom_four = $row[34];
|
||||
$ig_custom_five = $row[35];
|
||||
|
||||
$status_group_gather_data = status_group_gather($row[27],'INGROUP');
|
||||
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two,browser_alert_sound,browser_alert_volume,user_group_script from vicidial_campaigns where campaign_id='$campaign';";
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two,browser_alert_sound,browser_alert_volume,user_group_script,custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_campaigns where campaign_id='$campaign';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00501',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -11782,6 +11844,11 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
if (strlen($VDCL_timer_action_destination) < 1)
|
||||
{$VDCL_timer_action_destination = $row[14];}
|
||||
$user_group_script = $row[18];
|
||||
$camp_custom_one = $row[19];
|
||||
$camp_custom_two = $row[20];
|
||||
$camp_custom_three = $row[21];
|
||||
$camp_custom_four = $row[22];
|
||||
$camp_custom_five = $row[23];
|
||||
}
|
||||
|
||||
# check for User Group override of agent script, and if that feature is enabled for this campaign
|
||||
@@ -11825,7 +11892,7 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt = "SELECT campaign_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two,user_group_script from vicidial_campaigns where campaign_id='$VDADchannel_group';";
|
||||
$stmt = "SELECT campaign_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two,user_group_script,custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_campaigns where campaign_id='$VDADchannel_group';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00505',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -11850,6 +11917,11 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$VDCL_xferconf_e_number = $row[14];
|
||||
$VDCL_timer_action_destination = $row[15];
|
||||
$user_group_script = $row[17];
|
||||
$camp_custom_one = $row[18];
|
||||
$camp_custom_two = $row[19];
|
||||
$camp_custom_three = $row[20];
|
||||
$camp_custom_four = $row[21];
|
||||
$camp_custom_five = $row[22];
|
||||
}
|
||||
|
||||
$stmt = "SELECT group_web_vars from vicidial_campaign_agents where campaign_id='$VDADchannel_group' and user='$user';";
|
||||
@@ -12113,6 +12185,11 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color_two . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_sound . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_volume . "\n";
|
||||
$LeaD_InfO .= $ig_custom_one . "\n";
|
||||
$LeaD_InfO .= $ig_custom_two . "\n";
|
||||
$LeaD_InfO .= $ig_custom_three . "\n";
|
||||
$LeaD_InfO .= $ig_custom_four . "\n";
|
||||
$LeaD_InfO .= $ig_custom_five . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -12271,6 +12348,11 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_three--B--/i',urlencode(trim($user_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_four--B--/i',urlencode(trim($user_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--user_custom_five--B--/i',urlencode(trim($user_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_one--B--/i',urlencode(trim($camp_custom_one)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_two--B--/i',urlencode(trim($camp_custom_two)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_three--B--/i',urlencode(trim($camp_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_four--B--/i',urlencode(trim($camp_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--camp_custom_five--B--/i',urlencode(trim($camp_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--talk_time--B--/i',"0",$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--talk_time_min--B--/i',"0",$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--entry_list_id--B--/i',urlencode(trim($entry_list_id)),$VDCL_start_call_url);
|
||||
@@ -12289,6 +12371,11 @@ if ($ACTION == 'VDADcheckINCOMINGother')
|
||||
$VDCL_start_call_url = preg_replace('/--A--did_custom_three--B--/i',urlencode(trim($DID_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--did_custom_four--B--/i',urlencode(trim($DID_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--did_custom_five--B--/i',urlencode(trim($DID_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--ig_custom_one--B--/i',urlencode(trim($ig_custom_one)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--ig_custom_two--B--/i',urlencode(trim($ig_custom_two)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--ig_custom_three--B--/i',urlencode(trim($ig_custom_three)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--ig_custom_four--B--/i',urlencode(trim($ig_custom_four)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--ig_custom_five--B--/i',urlencode(trim($ig_custom_five)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--agent_email--B--/i',urlencode(trim($agent_email)),$VDCL_start_call_url);
|
||||
$VDCL_start_call_url = preg_replace('/--A--called_count--B--/i',urlencode(trim($called_count)),$VDCL_start_call_url);
|
||||
|
||||
@@ -12865,7 +12952,7 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$script_recording_delay = $row[0];
|
||||
}
|
||||
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,ingroup_script_two,browser_alert_sound,browser_alert_volume from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
$stmt = "SELECT group_name,group_color,web_form_address,fronter_display,ingroup_script,get_call_launch,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_xfer_group,ingroup_recording_override,ingroup_rec_filename,default_group_alias,web_form_address_two,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,uniqueid_status_display,uniqueid_status_prefix,timer_action_destination,web_form_address_three,status_group_id,ingroup_script_two,browser_alert_sound,browser_alert_volume,custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_inbound_groups where group_id='$VDADchannel_group';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00468',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -12903,10 +12990,15 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$VDCL_ingroup_script_two = $row[28];
|
||||
$VDCL_browser_alert_sound = $row[29];
|
||||
$VDCL_browser_alert_volume = $row[30];
|
||||
$ig_custom_one = $row[31];
|
||||
$ig_custom_two = $row[32];
|
||||
$ig_custom_three = $row[33];
|
||||
$ig_custom_four = $row[34];
|
||||
$ig_custom_five = $row[35];
|
||||
|
||||
$status_group_gather_data = status_group_gather($row[27],'INGROUP');
|
||||
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two,browser_alert_sound,browser_alert_volume from vicidial_campaigns where campaign_id='$campaign';";
|
||||
$stmt = "SELECT campaign_script,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,default_group_alias,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,timer_action_destination,campaign_script_two,browser_alert_sound,browser_alert_volume,custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_campaigns where campaign_id='$campaign';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00469',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -12946,6 +13038,11 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
{
|
||||
$VDCL_browser_alert_sound = $row[16];
|
||||
$VDCL_browser_alert_volume = $row[17];
|
||||
$camp_custom_one = $row[18];
|
||||
$camp_custom_two = $row[19];
|
||||
$camp_custom_three = $row[20];
|
||||
$camp_custom_four = $row[21];
|
||||
$camp_custom_five = $row[22];
|
||||
}
|
||||
|
||||
if ( ( (preg_match('/NONE/',$VDCL_ingroup_script)) and (strlen($VDCL_ingroup_script) < 5) ) or (strlen($VDCL_ingroup_script) < 1) )
|
||||
@@ -13283,6 +13380,11 @@ if ($ACTION == 'LeaDSearcHSelecTUpdatE')
|
||||
$LeaD_InfO .= $VDCL_ingroup_script_color_two . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_sound . "\n";
|
||||
$LeaD_InfO .= $VDCL_browser_alert_volume . "\n";
|
||||
$LeaD_InfO .= $ig_custom_one . "\n";
|
||||
$LeaD_InfO .= $ig_custom_two . "\n";
|
||||
$LeaD_InfO .= $ig_custom_three . "\n";
|
||||
$LeaD_InfO .= $ig_custom_four . "\n";
|
||||
$LeaD_InfO .= $ig_custom_five . "\n";
|
||||
|
||||
echo $LeaD_InfO;
|
||||
|
||||
@@ -13372,7 +13474,7 @@ if ($ACTION == 'updateDISPO')
|
||||
$VU_max_inbound_calls = $row[5];
|
||||
}
|
||||
|
||||
$stmt = "SELECT dispo_call_url,queuemetrics_callstatus_override,comments_dispo_screen,comments_callback_screen,vc.campaign_id from vicidial_campaigns vc,vicidial_live_agents vla where vla.campaign_id=vc.campaign_id and vla.user='$user';";
|
||||
$stmt = "SELECT dispo_call_url,queuemetrics_callstatus_override,comments_dispo_screen,comments_callback_screen,vc.campaign_id,vc.custom_one,vc.custom_two,vc.custom_three,vc.custom_four,vc.custom_five from vicidial_campaigns vc,vicidial_live_agents vla where vla.campaign_id=vc.campaign_id and vla.user='$user';";
|
||||
if ($non_latin > 0) {$rslt=mysql_to_mysqli("SET NAMES 'UTF8'", $link);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
@@ -13386,6 +13488,11 @@ if ($ACTION == 'updateDISPO')
|
||||
$comments_dispo_screen = $row[2];
|
||||
$comments_callback_screen = $row[3];
|
||||
$DUcampaign_id = $row[4];
|
||||
$camp_custom_one = $row[5];
|
||||
$camp_custom_two = $row[6];
|
||||
$camp_custom_three = $row[7];
|
||||
$camp_custom_four = $row[8];
|
||||
$camp_custom_five = $row[9];
|
||||
$DUentry_type = 'campaign';
|
||||
}
|
||||
|
||||
@@ -13453,7 +13560,7 @@ if ($ACTION == 'updateDISPO')
|
||||
{
|
||||
$call_type='IN';
|
||||
|
||||
$stmt = "SELECT dispo_call_url from vicidial_inbound_groups where group_id='$stage';";
|
||||
$stmt = "SELECT dispo_call_url,custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_inbound_groups where group_id='$stage';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00286',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -13461,6 +13568,11 @@ if ($ACTION == 'updateDISPO')
|
||||
if ($row[0] != 'CAMP')
|
||||
{
|
||||
$dispo_call_url = $row[0];
|
||||
$ig_custom_one = $row[1];
|
||||
$ig_custom_two = $row[2];
|
||||
$ig_custom_three = $row[3];
|
||||
$ig_custom_four = $row[4];
|
||||
$ig_custom_five = $row[5];
|
||||
$DUcampaign_id = $stage;
|
||||
$DUentry_type = 'ingroup';
|
||||
}
|
||||
@@ -15292,6 +15404,11 @@ if ($ACTION == 'updateDISPO')
|
||||
if ( (preg_match("/^user_custom_three$/i",$temp_df[0])) and ($user_custom_three == $temp_df[1]) ) {$user_custom_three = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^user_custom_four$/i",$temp_df[0])) and ($user_custom_four == $temp_df[1]) ) {$user_custom_four = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^user_custom_five$/i",$temp_df[0])) and ($user_custom_five == $temp_df[1]) ) {$user_custom_five = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^camp_custom_one$/i",$temp_df[0])) and ($camp_custom_one == $temp_df[1]) ) {$camp_custom_one = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^camp_custom_two$/i",$temp_df[0])) and ($camp_custom_two == $temp_df[1]) ) {$camp_custom_two = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^camp_custom_three$/i",$temp_df[0])) and ($camp_custom_three == $temp_df[1]) ) {$camp_custom_three = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^camp_custom_four$/i",$temp_df[0])) and ($camp_custom_four == $temp_df[1]) ) {$camp_custom_four = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^camp_custom_five$/i",$temp_df[0])) and ($camp_custom_five == $temp_df[1]) ) {$camp_custom_five = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^talk_time$/i",$temp_df[0])) and ($talk_time == $temp_df[1]) ) {$talk_time = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^talk_time_ms$/i",$temp_df[0])) and ($talk_time_ms == $temp_df[1]) ) {$talk_time_ms = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^talk_time_min$/i",$temp_df[0])) and ($talk_time_min == $temp_df[1]) ) {$talk_time_min = $temp_df[2]; $lm++;}
|
||||
@@ -15314,6 +15431,11 @@ if ($ACTION == 'updateDISPO')
|
||||
if ( (preg_match("/^did_custom_three$/i",$temp_df[0])) and ($DID_custom_three == $temp_df[1]) ) {$DID_custom_three = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^did_custom_four$/i",$temp_df[0])) and ($DID_custom_four == $temp_df[1]) ) {$DID_custom_four = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^did_custom_five$/i",$temp_df[0])) and ($DID_custom_five == $temp_df[1]) ) {$DID_custom_five = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^ig_custom_one$/i",$temp_df[0])) and ($ig_custom_one == $temp_df[1]) ) {$ig_custom_one = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^ig_custom_two$/i",$temp_df[0])) and ($ig_custom_two == $temp_df[1]) ) {$ig_custom_two = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^ig_custom_three$/i",$temp_df[0])) and ($ig_custom_three == $temp_df[1]) ) {$ig_custom_three = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^ig_custom_four$/i",$temp_df[0])) and ($ig_custom_four == $temp_df[1]) ) {$ig_custom_four = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^ig_custom_five$/i",$temp_df[0])) and ($ig_custom_five == $temp_df[1]) ) {$ig_custom_five = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^agent_email$/i",$temp_df[0])) and ($agent_email == $temp_df[1]) ) {$agent_email = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^callback_lead_status$/i",$temp_df[0])) and ($CallBackLeadStatus == $temp_df[1]) ) {$CallBackLeadStatus = $temp_df[2]; $lm++;}
|
||||
if ( (preg_match("/^callback_datetime$/i",$temp_df[0])) and ($CallBackDatETimE == $temp_df[1]) ) {$CallBackDatETimE = $temp_df[2]; $lm++;}
|
||||
@@ -15391,6 +15513,11 @@ if ($ACTION == 'updateDISPO')
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--user_custom_three--B--/i',"$user_custom_three",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--user_custom_four--B--/i',"$user_custom_four",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--user_custom_five--B--/i',"$user_custom_five",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--camp_custom_one--B--/i',"$camp_custom_one",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--camp_custom_two--B--/i',"$camp_custom_two",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--camp_custom_three--B--/i',"$camp_custom_three",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--camp_custom_four--B--/i',"$camp_custom_four",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--camp_custom_five--B--/i',"$camp_custom_five",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--talk_time--B--/i',"$talk_time",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--talk_time_ms--B--/i',"$talk_time_ms",$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--talk_time_min--B--/i',"$talk_time_min",$dispo_call_urlARY[$j]);
|
||||
@@ -15413,6 +15540,11 @@ if ($ACTION == 'updateDISPO')
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--did_custom_three--B--/i',urlencode(trim($DID_custom_three)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--did_custom_four--B--/i',urlencode(trim($DID_custom_four)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--did_custom_five--B--/i',urlencode(trim($DID_custom_five)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--ig_custom_one--B--/i',urlencode(trim($ig_custom_one)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--ig_custom_two--B--/i',urlencode(trim($ig_custom_two)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--ig_custom_three--B--/i',urlencode(trim($ig_custom_three)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--ig_custom_four--B--/i',urlencode(trim($ig_custom_four)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--ig_custom_five--B--/i',urlencode(trim($ig_custom_five)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--agent_email--B--/i',urlencode(trim($agent_email)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--callback_lead_status--B--/i',urlencode(trim($CallBackLeadStatus)),$dispo_call_urlARY[$j]);
|
||||
$dispo_call_urlARY[$j] = preg_replace('/--A--callback_datetime--B--/i',urlencode(trim($CallBackDatETimE)),$dispo_call_urlARY[$j]);
|
||||
@@ -15648,7 +15780,7 @@ if ($ACTION == 'updateDISPO')
|
||||
################################################################################
|
||||
if ($ACTION == 'DEADtriggerURL')
|
||||
{
|
||||
$stmt = "SELECT dead_trigger_url,vc.campaign_id,agent_log_id from vicidial_campaigns vc,vicidial_live_agents vla where vla.campaign_id=vc.campaign_id and vla.user='$user';";
|
||||
$stmt = "SELECT dead_trigger_url,vc.campaign_id,agent_log_id,custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_campaigns vc,vicidial_live_agents vla where vla.campaign_id=vc.campaign_id and vla.user='$user';";
|
||||
if ($non_latin > 0) {$rslt=mysql_to_mysqli("SET NAMES 'UTF8'", $link);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
@@ -15661,6 +15793,11 @@ if ($ACTION == 'DEADtriggerURL')
|
||||
$DUcampaign_id = $row[1];
|
||||
$DUentry_type = 'campaign';
|
||||
$CALL_agent_log_id = $row[2];
|
||||
$camp_custom_one = $row[3];
|
||||
$camp_custom_two = $row[4];
|
||||
$camp_custom_three = $row[5];
|
||||
$camp_custom_four = $row[6];
|
||||
$camp_custom_five = $row[7];
|
||||
}
|
||||
|
||||
$user_group='';
|
||||
@@ -15752,6 +15889,11 @@ if ($ACTION == 'DEADtriggerURL')
|
||||
$DID_extension='';
|
||||
$DID_pattern='';
|
||||
$DID_description='';
|
||||
$DID_custom_one='';
|
||||
$DID_custom_two='';
|
||||
$DID_custom_three='';
|
||||
$DID_custom_four='';
|
||||
$DID_custom_five='';
|
||||
|
||||
$stmt = "SELECT did_id,extension from vicidial_did_log where uniqueid='$uniqueid' and caller_id_number='$phone_number' order by call_date desc limit 1;";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -15783,6 +15925,41 @@ if ($ACTION == 'DEADtriggerURL')
|
||||
}
|
||||
}
|
||||
|
||||
if (preg_match('/--A--ig_custom_/i',$dead_trigger_url))
|
||||
{
|
||||
$ig_custom_one='';
|
||||
$ig_custom_two='';
|
||||
$ig_custom_three='';
|
||||
$ig_custom_four='';
|
||||
$ig_custom_five='';
|
||||
|
||||
$stmt = "SELECT campaign_id from vicidial_closer_log where uniqueid='$uniqueid' order by call_date desc limit 1;";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00912',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIDL_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIDL_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$temp_group_id = $row[0];
|
||||
|
||||
$stmt = "SELECT custom_one,custom_two,custom_three,custom_four,custom_five from vicidial_inbound_groups where group_id='$temp_group_id' limit 1;";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00913',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
$VDIDL_ct = mysqli_num_rows($rslt);
|
||||
if ($VDIDL_ct > 0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$ig_custom_one = urlencode(trim($row[0]));
|
||||
$ig_custom_two = urlencode(trim($row[1]));
|
||||
$ig_custom_three= urlencode(trim($row[2]));
|
||||
$ig_custom_four= urlencode(trim($row[3]));
|
||||
$ig_custom_five= urlencode(trim($row[4]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((preg_match('/callid--B--/i',$dead_trigger_url)) or (preg_match('/group--B--/i',$dead_trigger_url)))
|
||||
{
|
||||
$INclosecallid='';
|
||||
@@ -15924,6 +16101,11 @@ if ($ACTION == 'DEADtriggerURL')
|
||||
$dead_trigger_url = preg_replace('/--A--user_custom_three--B--/i',"$user_custom_three",$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--user_custom_four--B--/i',"$user_custom_four",$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--user_custom_five--B--/i',"$user_custom_five",$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--camp_custom_one--B--/i',"$camp_custom_one",$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--camp_custom_two--B--/i',"$camp_custom_two",$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--camp_custom_three--B--/i',"$camp_custom_three",$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--camp_custom_four--B--/i',"$camp_custom_four",$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--camp_custom_five--B--/i',"$camp_custom_five",$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--dead_time--B--/i',"$dead_time",$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--talk_time--B--/i',"$talk_time",$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--talk_time_ms--B--/i',"$talk_time_ms",$dead_trigger_url);
|
||||
@@ -15947,6 +16129,11 @@ if ($ACTION == 'DEADtriggerURL')
|
||||
$dead_trigger_url = preg_replace('/--A--did_custom_three--B--/i',urlencode(trim($DID_custom_three)),$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--did_custom_four--B--/i',urlencode(trim($DID_custom_four)),$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--did_custom_five--B--/i',urlencode(trim($DID_custom_five)),$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--ig_custom_one--B--/i',urlencode(trim($ig_custom_one)),$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--ig_custom_two--B--/i',urlencode(trim($ig_custom_two)),$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--ig_custom_three--B--/i',urlencode(trim($ig_custom_three)),$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--ig_custom_four--B--/i',urlencode(trim($ig_custom_four)),$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--ig_custom_five--B--/i',urlencode(trim($ig_custom_five)),$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--agent_email--B--/i',urlencode(trim($agent_email)),$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--callback_lead_status--B--/i',urlencode(trim($CallBackLeadStatus)),$dead_trigger_url);
|
||||
$dead_trigger_url = preg_replace('/--A--callback_datetime--B--/i',urlencode(trim($CallBackDatETimE)),$dead_trigger_url);
|
||||
@@ -16866,7 +17053,7 @@ if ($ACTION == 'userLOGout')
|
||||
##### send URL request if Pause Max URL is set and triggered
|
||||
if ($pause_max_url_trigger > 0)
|
||||
{
|
||||
$stmt="SELECT pause_max_url FROM vicidial_campaigns where campaign_id='$campaign';";
|
||||
$stmt="SELECT pause_max_url,custom_one,custom_two,custom_three,custom_four,custom_five FROM vicidial_campaigns where campaign_id='$campaign';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'00899',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
@@ -16874,6 +17061,11 @@ if ($ACTION == 'userLOGout')
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
$pause_max_url = "$row[0]";
|
||||
$camp_custom_one = $row[1];
|
||||
$camp_custom_two = $row[2];
|
||||
$camp_custom_three = $row[3];
|
||||
$camp_custom_four = $row[4];
|
||||
$camp_custom_five = $row[5];
|
||||
if ($format=='debug') {echo "\n<!-- $row[0] -->";}
|
||||
|
||||
if (strlen($pause_max_url) > 5)
|
||||
@@ -16917,6 +17109,11 @@ if ($ACTION == 'userLOGout')
|
||||
$pause_max_url = preg_replace('/--A--user_custom_three--B--/i',"$user_custom_three",$pause_max_url);
|
||||
$pause_max_url = preg_replace('/--A--user_custom_four--B--/i',"$user_custom_four",$pause_max_url);
|
||||
$pause_max_url = preg_replace('/--A--user_custom_five--B--/i',"$user_custom_five",$pause_max_url);
|
||||
$pause_max_url = preg_replace('/--A--camp_custom_one--B--/i',"$camp_custom_one",$pause_max_url);
|
||||
$pause_max_url = preg_replace('/--A--camp_custom_two--B--/i',"$camp_custom_two",$pause_max_url);
|
||||
$pause_max_url = preg_replace('/--A--camp_custom_three--B--/i',"$camp_custom_three",$pause_max_url);
|
||||
$pause_max_url = preg_replace('/--A--camp_custom_four--B--/i',"$camp_custom_four",$pause_max_url);
|
||||
$pause_max_url = preg_replace('/--A--camp_custom_five--B--/i',"$camp_custom_five",$pause_max_url);
|
||||
$pause_max_url = preg_replace('/--A--agent_log_id--B--/i',"$CALL_agent_log_id",$pause_max_url);
|
||||
$pause_max_url = preg_replace('/--A--user_group--B--/i',urlencode(trim($user_group)),$pause_max_url);
|
||||
$pause_max_url = preg_replace('/--A--agent_email--B--/i',urlencode(trim($agent_email)),$pause_max_url);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# vdc_form_display.php
|
||||
#
|
||||
# Copyright (C) 2022 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2023 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed display the contents of the FORM tab in the agent
|
||||
# interface, as well as take submission of the form submission when the agent
|
||||
@@ -54,10 +54,11 @@
|
||||
# 210506-1825 - Fix for SELECTSOURCE reloading issue
|
||||
# 210616-2037 - Added optional CORS support, see options.php for details
|
||||
# 210825-0902 - Fix for XSS security issue
|
||||
# 230518-1053 - Added in-group and campaign custom fields 1-5, for script/webform/dispo-call-url use
|
||||
#
|
||||
|
||||
$version = '2.14-44';
|
||||
$build = '210825-0902';
|
||||
$version = '2.14-45';
|
||||
$build = '230518-1053';
|
||||
$php_script = 'vdc_form_display.php';
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
@@ -154,6 +155,16 @@ if (isset($_GET["user_custom_four"])) {$user_custom_four=$_GET["user_custom_four
|
||||
elseif (isset($_POST["user_custom_four"])) {$user_custom_four=$_POST["user_custom_four"];}
|
||||
if (isset($_GET["user_custom_five"])) {$user_custom_five=$_GET["user_custom_five"];}
|
||||
elseif (isset($_POST["user_custom_five"])) {$user_custom_five=$_POST["user_custom_five"];}
|
||||
if (isset($_GET["camp_custom_one"])) {$camp_custom_one=$_GET["camp_custom_one"];}
|
||||
elseif (isset($_POST["camp_custom_one"])) {$camp_custom_one=$_POST["camp_custom_one"];}
|
||||
if (isset($_GET["camp_custom_two"])) {$camp_custom_two=$_GET["camp_custom_two"];}
|
||||
elseif (isset($_POST["camp_custom_two"])) {$camp_custom_two=$_POST["camp_custom_two"];}
|
||||
if (isset($_GET["camp_custom_three"])) {$camp_custom_three=$_GET["camp_custom_three"];}
|
||||
elseif (isset($_POST["camp_custom_three"])) {$camp_custom_three=$_POST["camp_custom_three"];}
|
||||
if (isset($_GET["camp_custom_four"])) {$camp_custom_four=$_GET["camp_custom_four"];}
|
||||
elseif (isset($_POST["camp_custom_four"])) {$camp_custom_four=$_POST["camp_custom_four"];}
|
||||
if (isset($_GET["camp_custom_five"])) {$camp_custom_five=$_GET["camp_custom_five"];}
|
||||
elseif (isset($_POST["camp_custom_five"])) {$camp_custom_five=$_POST["camp_custom_five"];}
|
||||
if (isset($_GET["preset_number_a"])) {$preset_number_a=$_GET["preset_number_a"];}
|
||||
elseif (isset($_POST["preset_number_a"])) {$preset_number_a=$_POST["preset_number_a"];}
|
||||
if (isset($_GET["preset_number_b"])) {$preset_number_b=$_GET["preset_number_b"];}
|
||||
@@ -208,6 +219,16 @@ if (isset($_GET["did_custom_four"])) {$did_custom_four=$_GET["did_custom_four"
|
||||
elseif (isset($_POST["did_custom_four"])) {$did_custom_four=$_POST["did_custom_four"];}
|
||||
if (isset($_GET["did_custom_five"])) {$did_custom_five=$_GET["did_custom_five"];}
|
||||
elseif (isset($_POST["did_custom_five"])) {$did_custom_five=$_POST["did_custom_five"];}
|
||||
if (isset($_GET["ig_custom_one"])) {$ig_custom_one=$_GET["ig_custom_one"];}
|
||||
elseif (isset($_POST["ig_custom_one"])) {$ig_custom_one=$_POST["ig_custom_one"];}
|
||||
if (isset($_GET["ig_custom_two"])) {$ig_custom_two=$_GET["ig_custom_two"];}
|
||||
elseif (isset($_POST["ig_custom_two"])) {$ig_custom_two=$_POST["ig_custom_two"];}
|
||||
if (isset($_GET["ig_custom_three"])) {$ig_custom_three=$_GET["ig_custom_three"];}
|
||||
elseif (isset($_POST["ig_custom_three"])) {$ig_custom_three=$_POST["ig_custom_three"];}
|
||||
if (isset($_GET["ig_custom_four"])) {$ig_custom_four=$_GET["ig_custom_four"];}
|
||||
elseif (isset($_POST["ig_custom_four"])) {$ig_custom_four=$_POST["ig_custom_four"];}
|
||||
if (isset($_GET["ig_custom_five"])) {$ig_custom_five=$_GET["ig_custom_five"];}
|
||||
elseif (isset($_POST["ig_custom_five"])) {$ig_custom_five=$_POST["ig_custom_five"];}
|
||||
if (isset($_GET["hide_gender"])) {$hide_gender=$_GET["hide_gender"];}
|
||||
elseif (isset($_POST["hide_gender"])) {$hide_gender=$_POST["hide_gender"];}
|
||||
if (isset($_GET["button_action"])) {$button_action=$_GET["button_action"];}
|
||||
@@ -423,6 +444,16 @@ if ($non_latin < 1)
|
||||
$did_custom_five = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$did_custom_five );
|
||||
$list_name = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$list_name);
|
||||
$list_description = preg_replace('/[^- \.\,\_0-9a-zA-Z]/','',$list_description);
|
||||
$camp_custom_one = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_one);
|
||||
$camp_custom_two = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_two);
|
||||
$camp_custom_three = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_three);
|
||||
$camp_custom_four = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_four);
|
||||
$camp_custom_five = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_five );
|
||||
$ig_custom_one = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$ig_custom_one);
|
||||
$ig_custom_two = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$ig_custom_two);
|
||||
$ig_custom_three = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$ig_custom_three);
|
||||
$ig_custom_four = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$ig_custom_four);
|
||||
$ig_custom_five = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$ig_custom_five );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -447,6 +478,16 @@ else
|
||||
$did_custom_five = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$did_custom_five );
|
||||
$list_name = preg_replace('/[^- \.\,\_0-9\p{L}]/u','',$list_name);
|
||||
$list_description = preg_replace('/[^- \.\,\_0-9\p{L}]/u','',$list_description);
|
||||
$camp_custom_one = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_one);
|
||||
$camp_custom_two = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_two);
|
||||
$camp_custom_three = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_three);
|
||||
$camp_custom_four = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_four);
|
||||
$camp_custom_five = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_five );
|
||||
$ig_custom_one = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$ig_custom_one);
|
||||
$ig_custom_two = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$ig_custom_two);
|
||||
$ig_custom_three = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$ig_custom_three);
|
||||
$ig_custom_four = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$ig_custom_four);
|
||||
$ig_custom_five = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$ig_custom_five );
|
||||
}
|
||||
|
||||
if (strlen($SSagent_debug_logging) > 1)
|
||||
@@ -902,7 +943,7 @@ if ($SUBMIT_only < 1)
|
||||
echo " }\n";
|
||||
echo " }\n";
|
||||
|
||||
$only_field_query = "DB=$DB&SIPexten=$SIPexten&SQLdate=$SQLdate&admin_submit=$admin_submit&agent_email=$agent_email&agent_log_id=$agent_log_id&bcrypt=$bcrypt&bgcolor=$bgcolor&button_action=$button_action&call_id=$call_id&called_count=$called_count&camp_script=$camp_script&campaign=$campaign&channel_group=$channel_group&closecallid=$closecallid&closer=$closer&customer_server_ip=$customer_server_ip&customer_zap_channel=$customer_zap_channel&dialed_label=$dialed_label&dialed_number=$dialed_number&did_custom_five=$did_custom_five&did_custom_four=$did_custom_four&did_custom_one=$did_custom_one&did_custom_three=$did_custom_three&did_custom_two=$did_custom_two&did_description=$did_description&did_extension=$did_extension&did_id=$did_id&did_pattern=$did_pattern&epoch=$epoch&fronter=$fronter&fullname=$fullname&group=$group&hide_gender=$hide_gender&in_script=$in_script&lead_id=$lead_id&list_description=$list_description&list_id=$list_id&list_name=$list_name&new_list_id=$new_list_id&original_phone_login=$original_phone_login&parked_by=$parked_by&pass=$pass&phone=$phone&phone_login=$phone_login&phone_pass=$phone_pass&preset_dtmf_a=$preset_dtmf_a&preset_dtmf_b=$preset_dtmf_b&preset_number_a=$preset_number_a&preset_number_b=$preset_number_b&preset_number_c=$preset_number_c&preset_number_d=$preset_number_d&preset_number_e=$preset_number_e&preset_number_f=$preset_number_f&recording_filename=$recording_filename&recording_id=$recording_id&script_height=$script_height&script_width=$script_width&server_ip=$server_ip&server_ip=$server_ip&session_id=$session_id&session_id=$session_id&submit_button=$submit_button&uniqueid=$uniqueid&user=$user&user_custom_five=$user_custom_five&user_custom_four=$user_custom_four&user_custom_one=$user_custom_one&user_custom_three=$user_custom_three&user_custom_two=$user_custom_two&user_group=$user_group&xfercallid=$xfercallid&web_vars=$web_vars&orig_URL=$orig_URL";
|
||||
$only_field_query = "DB=$DB&SIPexten=$SIPexten&SQLdate=$SQLdate&admin_submit=$admin_submit&agent_email=$agent_email&agent_log_id=$agent_log_id&bcrypt=$bcrypt&bgcolor=$bgcolor&button_action=$button_action&call_id=$call_id&called_count=$called_count&camp_script=$camp_script&campaign=$campaign&channel_group=$channel_group&closecallid=$closecallid&closer=$closer&customer_server_ip=$customer_server_ip&customer_zap_channel=$customer_zap_channel&dialed_label=$dialed_label&dialed_number=$dialed_number&did_custom_five=$did_custom_five&did_custom_four=$did_custom_four&did_custom_one=$did_custom_one&did_custom_three=$did_custom_three&did_custom_two=$did_custom_two&ig_custom_five=$ig_custom_five&ig_custom_four=$ig_custom_four&ig_custom_one=$ig_custom_one&ig_custom_three=$ig_custom_three&ig_custom_two=$ig_custom_two&did_description=$did_description&did_extension=$did_extension&did_id=$did_id&did_pattern=$did_pattern&epoch=$epoch&fronter=$fronter&fullname=$fullname&group=$group&hide_gender=$hide_gender&in_script=$in_script&lead_id=$lead_id&list_description=$list_description&list_id=$list_id&list_name=$list_name&new_list_id=$new_list_id&original_phone_login=$original_phone_login&parked_by=$parked_by&pass=$pass&phone=$phone&phone_login=$phone_login&phone_pass=$phone_pass&preset_dtmf_a=$preset_dtmf_a&preset_dtmf_b=$preset_dtmf_b&preset_number_a=$preset_number_a&preset_number_b=$preset_number_b&preset_number_c=$preset_number_c&preset_number_d=$preset_number_d&preset_number_e=$preset_number_e&preset_number_f=$preset_number_f&recording_filename=$recording_filename&recording_id=$recording_id&script_height=$script_height&script_width=$script_width&server_ip=$server_ip&server_ip=$server_ip&session_id=$session_id&session_id=$session_id&submit_button=$submit_button&uniqueid=$uniqueid&user=$user&user_custom_five=$user_custom_five&user_custom_four=$user_custom_four&user_custom_one=$user_custom_one&user_custom_three=$user_custom_three&user_custom_two=$user_custom_two&camp_custom_five=$camp_custom_five&camp_custom_four=$camp_custom_four&camp_custom_one=$camp_custom_one&camp_custom_three=$camp_custom_three&camp_custom_two=$camp_custom_two&user_group=$user_group&xfercallid=$xfercallid&web_vars=$web_vars&orig_URL=$orig_URL";
|
||||
?>
|
||||
|
||||
// ################################################################################
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# vdc_script_display.php
|
||||
#
|
||||
# Copyright (C) 2022 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2023 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed display the contents of the SCRIPT tab in the agent interface
|
||||
#
|
||||
@@ -46,10 +46,11 @@
|
||||
# 210825-0858 - Fix for security issue
|
||||
# 220219-0144 - Added allow_web_debug system setting
|
||||
# 220901-0849 - Added campaign user_group_script option
|
||||
# 230518-1046 - Added in-group and campaign custom fields 1-5, for script/webform/dispo-call-url use
|
||||
#
|
||||
|
||||
$version = '2.14-40';
|
||||
$build = '220901-0849';
|
||||
$version = '2.14-41';
|
||||
$build = '230518-1046';
|
||||
$php_script = 'vdc_script_display.php';
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
@@ -272,6 +273,26 @@ if (isset($_GET["user_group_script"])) {$user_group_script=$_GET["user_group_s
|
||||
elseif (isset($_POST["user_group_script"])) {$user_group_script=$_POST["user_group_script"];}
|
||||
if (isset($_GET["UGscript_id"])) {$UGscript_id=$_GET["UGscript_id"];}
|
||||
elseif (isset($_POST["UGscript_id"])) {$UGscript_id=$_POST["UGscript_id"];}
|
||||
if (isset($_GET["camp_custom_one"])) {$camp_custom_one=$_GET["camp_custom_one"];}
|
||||
elseif (isset($_POST["camp_custom_one"])) {$camp_custom_one=$_POST["camp_custom_one"];}
|
||||
if (isset($_GET["camp_custom_two"])) {$camp_custom_two=$_GET["camp_custom_two"];}
|
||||
elseif (isset($_POST["camp_custom_two"])) {$camp_custom_two=$_POST["camp_custom_two"];}
|
||||
if (isset($_GET["camp_custom_three"])) {$camp_custom_three=$_GET["camp_custom_three"];}
|
||||
elseif (isset($_POST["camp_custom_three"])) {$camp_custom_three=$_POST["camp_custom_three"];}
|
||||
if (isset($_GET["camp_custom_four"])) {$camp_custom_four=$_GET["camp_custom_four"];}
|
||||
elseif (isset($_POST["camp_custom_four"])) {$camp_custom_four=$_POST["camp_custom_four"];}
|
||||
if (isset($_GET["camp_custom_five"])) {$camp_custom_five=$_GET["camp_custom_five"];}
|
||||
elseif (isset($_POST["camp_custom_five"])) {$camp_custom_five=$_POST["camp_custom_five"];}
|
||||
if (isset($_GET["ig_custom_one"])) {$ig_custom_one=$_GET["ig_custom_one"];}
|
||||
elseif (isset($_POST["ig_custom_one"])) {$ig_custom_one=$_POST["ig_custom_one"];}
|
||||
if (isset($_GET["ig_custom_two"])) {$ig_custom_two=$_GET["ig_custom_two"];}
|
||||
elseif (isset($_POST["ig_custom_two"])) {$ig_custom_two=$_POST["ig_custom_two"];}
|
||||
if (isset($_GET["ig_custom_three"])) {$ig_custom_three=$_GET["ig_custom_three"];}
|
||||
elseif (isset($_POST["ig_custom_three"])) {$ig_custom_three=$_POST["ig_custom_three"];}
|
||||
if (isset($_GET["ig_custom_four"])) {$ig_custom_four=$_GET["ig_custom_four"];}
|
||||
elseif (isset($_POST["ig_custom_four"])) {$ig_custom_four=$_POST["ig_custom_four"];}
|
||||
if (isset($_GET["ig_custom_five"])) {$ig_custom_five=$_GET["ig_custom_five"];}
|
||||
elseif (isset($_POST["ig_custom_five"])) {$ig_custom_five=$_POST["ig_custom_five"];}
|
||||
|
||||
$DB=preg_replace("/[^0-9a-zA-Z]/","",$DB);
|
||||
|
||||
@@ -484,6 +505,16 @@ if ($non_latin < 1)
|
||||
$did_custom_four = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$did_custom_four);
|
||||
$did_custom_five = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$did_custom_five );
|
||||
$UGscript_id = preg_replace("/[^-_0-9a-zA-Z]/",'-',$UGscript_id);
|
||||
$camp_custom_one = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_one);
|
||||
$camp_custom_two = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_two);
|
||||
$camp_custom_three = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_three);
|
||||
$camp_custom_four = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_four);
|
||||
$camp_custom_five = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$camp_custom_five );
|
||||
$ig_custom_one = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$ig_custom_one);
|
||||
$ig_custom_two = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$ig_custom_two);
|
||||
$ig_custom_three = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$ig_custom_three);
|
||||
$ig_custom_four = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$ig_custom_four);
|
||||
$ig_custom_five = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','-',$ig_custom_five );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -517,6 +548,16 @@ else
|
||||
$did_custom_four = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$did_custom_four);
|
||||
$did_custom_five = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$did_custom_five );
|
||||
$UGscript_id = preg_replace("/[^-_0-9\p{L}]/u",'-',$UGscript_id);
|
||||
$camp_custom_one = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_one);
|
||||
$camp_custom_two = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_two);
|
||||
$camp_custom_three = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_three);
|
||||
$camp_custom_four = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_four);
|
||||
$camp_custom_five = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$camp_custom_five );
|
||||
$ig_custom_one = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$ig_custom_one);
|
||||
$ig_custom_two = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$ig_custom_two);
|
||||
$ig_custom_three = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$ig_custom_three);
|
||||
$ig_custom_four = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$ig_custom_four);
|
||||
$ig_custom_five = preg_replace('/[^- \.\:\/\@\_0-9\p{L}]/u','-',$ig_custom_five );
|
||||
}
|
||||
|
||||
$auth=0;
|
||||
@@ -664,6 +705,11 @@ if (preg_match("/iframe\ssrc/i",$script_text))
|
||||
$user_custom_three = urlencode(trim($user_custom_three));
|
||||
$user_custom_four = urlencode(trim($user_custom_four));
|
||||
$user_custom_five = urlencode(trim($user_custom_five));
|
||||
$camp_custom_one = urlencode(trim($camp_custom_one));
|
||||
$camp_custom_two = urlencode(trim($camp_custom_two));
|
||||
$camp_custom_three = urlencode(trim($camp_custom_three));
|
||||
$camp_custom_four = urlencode(trim($camp_custom_four));
|
||||
$camp_custom_five = urlencode(trim($camp_custom_five));
|
||||
$preset_number_a = urlencode(trim($preset_number_a));
|
||||
$preset_number_b = urlencode(trim($preset_number_b));
|
||||
$preset_number_c = urlencode(trim($preset_number_c));
|
||||
@@ -684,6 +730,11 @@ if (preg_match("/iframe\ssrc/i",$script_text))
|
||||
$did_custom_three = urlencode(trim($did_custom_three));
|
||||
$did_custom_four = urlencode(trim($did_custom_four));
|
||||
$did_custom_five = urlencode(trim($did_custom_five));
|
||||
$ig_custom_one = urlencode(trim($ig_custom_one));
|
||||
$ig_custom_two = urlencode(trim($ig_custom_two));
|
||||
$ig_custom_three = urlencode(trim($ig_custom_three));
|
||||
$ig_custom_four = urlencode(trim($ig_custom_four));
|
||||
$ig_custom_five = urlencode(trim($ig_custom_five));
|
||||
$web_vars = urlencode(trim($web_vars));
|
||||
}
|
||||
else
|
||||
@@ -752,6 +803,11 @@ if (preg_match("/iframe\ssrc/i",$script_text))
|
||||
$user_custom_three = preg_replace('/\s/i','+',$user_custom_three);
|
||||
$user_custom_four = preg_replace('/\s/i','+',$user_custom_four);
|
||||
$user_custom_five = preg_replace('/\s/i','+',$user_custom_five);
|
||||
$camp_custom_one = preg_replace('/\s/i','+',$camp_custom_one);
|
||||
$camp_custom_two = preg_replace('/\s/i','+',$camp_custom_two);
|
||||
$camp_custom_three = preg_replace('/\s/i','+',$camp_custom_three);
|
||||
$camp_custom_four = preg_replace('/\s/i','+',$camp_custom_four);
|
||||
$camp_custom_five = preg_replace('/\s/i','+',$camp_custom_five);
|
||||
$preset_number_a = preg_replace('/\s/i','+',$preset_number_a);
|
||||
$preset_number_b = preg_replace('/\s/i','+',$preset_number_b);
|
||||
$preset_number_c = preg_replace('/\s/i','+',$preset_number_c);
|
||||
@@ -772,6 +828,11 @@ if (preg_match("/iframe\ssrc/i",$script_text))
|
||||
$did_custom_three = preg_replace('/\s/i','+',$did_custom_three);
|
||||
$did_custom_four = preg_replace('/\s/i','+',$did_custom_four);
|
||||
$did_custom_five = preg_replace('/\s/i','+',$did_custom_five);
|
||||
$ig_custom_one = preg_replace('/\s/i','+',$ig_custom_one);
|
||||
$ig_custom_two = preg_replace('/\s/i','+',$ig_custom_two);
|
||||
$ig_custom_three = preg_replace('/\s/i','+',$ig_custom_three);
|
||||
$ig_custom_four = preg_replace('/\s/i','+',$ig_custom_four);
|
||||
$ig_custom_five = preg_replace('/\s/i','+',$ig_custom_five);
|
||||
$web_vars = preg_replace('/\s/i','+',$web_vars);
|
||||
}
|
||||
}
|
||||
@@ -843,6 +904,11 @@ $script_text = preg_replace('/--A--user_custom_two--B--/i',"$user_custom_two",$s
|
||||
$script_text = preg_replace('/--A--user_custom_three--B--/i',"$user_custom_three",$script_text);
|
||||
$script_text = preg_replace('/--A--user_custom_four--B--/i',"$user_custom_four",$script_text);
|
||||
$script_text = preg_replace('/--A--user_custom_five--B--/i',"$user_custom_five",$script_text);
|
||||
$script_text = preg_replace('/--A--camp_custom_one--B--/i',"$camp_custom_one",$script_text);
|
||||
$script_text = preg_replace('/--A--camp_custom_two--B--/i',"$camp_custom_two",$script_text);
|
||||
$script_text = preg_replace('/--A--camp_custom_three--B--/i',"$camp_custom_three",$script_text);
|
||||
$script_text = preg_replace('/--A--camp_custom_four--B--/i',"$camp_custom_four",$script_text);
|
||||
$script_text = preg_replace('/--A--camp_custom_five--B--/i',"$camp_custom_five",$script_text);
|
||||
$script_text = preg_replace('/--A--preset_number_a--B--/i',"$preset_number_a",$script_text);
|
||||
$script_text = preg_replace('/--A--preset_number_b--B--/i',"$preset_number_b",$script_text);
|
||||
$script_text = preg_replace('/--A--preset_number_c--B--/i',"$preset_number_c",$script_text);
|
||||
@@ -869,6 +935,11 @@ $script_text = preg_replace('/--A--did_custom_two--B--/i',"$did_custom_two",$scr
|
||||
$script_text = preg_replace('/--A--did_custom_three--B--/i',"$did_custom_three",$script_text);
|
||||
$script_text = preg_replace('/--A--did_custom_four--B--/i',"$did_custom_four",$script_text);
|
||||
$script_text = preg_replace('/--A--did_custom_five--B--/i',"$did_custom_five",$script_text);
|
||||
$script_text = preg_replace('/--A--ig_custom_one--B--/i',"$ig_custom_one",$script_text);
|
||||
$script_text = preg_replace('/--A--ig_custom_two--B--/i',"$ig_custom_two",$script_text);
|
||||
$script_text = preg_replace('/--A--ig_custom_three--B--/i',"$ig_custom_three",$script_text);
|
||||
$script_text = preg_replace('/--A--ig_custom_four--B--/i',"$ig_custom_four",$script_text);
|
||||
$script_text = preg_replace('/--A--ig_custom_five--B--/i',"$ig_custom_five",$script_text);
|
||||
$script_text = preg_replace('/--A--LOGINvarONE--B--/i',"$LOGINvarONE",$script_text);
|
||||
$script_text = preg_replace('/--A--LOGINvarTWO--B--/i',"$LOGINvarTWO",$script_text);
|
||||
$script_text = preg_replace('/--A--LOGINvarTHREE--B--/i',"$LOGINvarTHREE",$script_text);
|
||||
|
||||
@@ -720,10 +720,11 @@
|
||||
# 230420-2015 - Added latency calculation and logging, Issue #1457
|
||||
# 230424-1754 - Changed phone login to readonly when password is forced to change
|
||||
# 230513-2010 - Fix for manual dial call error handling
|
||||
# 230518-0912 - Added in-group and campaign custom fields 1-5, for script/webform/dispo-call-url use, chat fixes
|
||||
#
|
||||
|
||||
$version = '2.14-687c';
|
||||
$build = '230513-2010';
|
||||
$version = '2.14-688c';
|
||||
$build = '230518-0912';
|
||||
$php_script = 'vicidial.php';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=102;
|
||||
@@ -2502,7 +2503,7 @@ else
|
||||
$HKstatusnames = substr("$HKstatusnames", 0, -1);
|
||||
|
||||
##### grab the campaign settings
|
||||
$stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,manual_preview_dial,api_manual_dial,manual_dial_call_time_check,my_callback_option,per_call_notes,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_pause_precall_code,auto_resume_precall,manual_dial_cid,custom_3way_button_transfer,callback_days_limit,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,pllb_grouping,pllb_grouping_limit,in_group_dial,in_group_dial_select,pause_after_next_call,owner_populate,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,manual_dial_timeout,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,pause_max_dispo,script_top_dispo,routing_initiated_recordings,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,scheduled_callbacks_force_dial,callback_hours_block,callback_display_days,scheduled_callbacks_timezones_container,three_way_volume_buttons,manual_dial_validation,mute_recordings,leave_vm_no_dispo,leave_vm_message_group_id,campaign_script_two,browser_alert_sound,browser_alert_volume,three_way_record_stop_exception,pause_max_exceptions,transfer_button_launch,leave_3way_start_recording,leave_3way_start_recording_exception,calls_waiting_vl_one,calls_waiting_vl_two,in_man_dial_next_ready_seconds,in_man_dial_next_ready_seconds_override,transfer_no_dispo,local_call_time,pause_max_url,agent_hide_hangup,ig_xfer_list_sort,script_tab_frame_size,user_group_script,agent_hangup_route,agent_hangup_value,agent_hangup_ig_override,show_confetti FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
|
||||
$stmt="SELECT park_ext,park_file_name,web_form_address,allow_closers,auto_dial_level,dial_timeout,dial_prefix,campaign_cid,campaign_vdad_exten,campaign_rec_exten,campaign_recording,campaign_rec_filename,campaign_script,get_call_launch,am_message_exten,xferconf_a_dtmf,xferconf_a_number,xferconf_b_dtmf,xferconf_b_number,alt_number_dialing,scheduled_callbacks,wrapup_seconds,wrapup_message,closer_campaigns,use_internal_dnc,allcalls_delay,omit_phone_code,agent_pause_codes_active,no_hopper_leads_logins,campaign_allow_inbound,manual_dial_list_id,default_xfer_group,xfer_groups,disable_alter_custphone,display_queue_count,manual_dial_filter,agent_clipboard_copy,use_campaign_dnc,three_way_call_cid,dial_method,three_way_dial_prefix,web_form_target,vtiger_screen_login,agent_allow_group_alias,default_group_alias,quick_transfer_button,prepopulate_transfer_preset,view_calls_in_queue,view_calls_in_queue_launch,call_requeue_button,pause_after_each_call,no_hopper_dialing,agent_dial_owner_only,agent_display_dialable_leads,web_form_address_two,agent_select_territories,crm_popup_login,crm_login_address,timer_action,timer_action_message,timer_action_seconds,start_call_url,dispo_call_url,xferconf_c_number,xferconf_d_number,xferconf_e_number,use_custom_cid,scheduled_callbacks_alert,scheduled_callbacks_count,manual_dial_override,blind_monitor_warning,blind_monitor_message,blind_monitor_filename,timer_action_destination,enable_xfer_presets,hide_xfer_number_to_dial,manual_dial_prefix,customer_3way_hangup_logging,customer_3way_hangup_seconds,customer_3way_hangup_action,ivr_park_call,manual_preview_dial,api_manual_dial,manual_dial_call_time_check,my_callback_option,per_call_notes,agent_lead_search,agent_lead_search_method,queuemetrics_phone_environment,auto_pause_precall,auto_pause_precall_code,auto_resume_precall,manual_dial_cid,custom_3way_button_transfer,callback_days_limit,disable_dispo_screen,disable_dispo_status,screen_labels,status_display_fields,pllb_grouping,pllb_grouping_limit,in_group_dial,in_group_dial_select,pause_after_next_call,owner_populate,manual_dial_lead_id,dead_max,dispo_max,pause_max,dead_max_dispo,dispo_max_dispo,max_inbound_calls,manual_dial_search_checkbox,hide_call_log_info,timer_alt_seconds,wrapup_bypass,wrapup_after_hotkey,callback_active_limit,callback_active_limit_override,comments_all_tabs,comments_dispo_screen,comments_callback_screen,qc_comment_history,show_previous_callback,clear_script,manual_dial_search_filter,web_form_address_three,manual_dial_override_field,status_display_ingroup,customer_gone_seconds,agent_display_fields,manual_dial_timeout,manual_auto_next,manual_auto_show,allow_required_fields,dead_to_dispo,agent_xfer_validation,ready_max_logout,callback_display_days,three_way_record_stop,hangup_xfer_record_start,max_inbound_calls_outcome,manual_auto_next_options,agent_screen_time_display,pause_max_dispo,script_top_dispo,routing_initiated_recordings,dead_trigger_seconds,dead_trigger_action,dead_trigger_repeat,dead_trigger_filename,scheduled_callbacks_force_dial,callback_hours_block,callback_display_days,scheduled_callbacks_timezones_container,three_way_volume_buttons,manual_dial_validation,mute_recordings,leave_vm_no_dispo,leave_vm_message_group_id,campaign_script_two,browser_alert_sound,browser_alert_volume,three_way_record_stop_exception,pause_max_exceptions,transfer_button_launch,leave_3way_start_recording,leave_3way_start_recording_exception,calls_waiting_vl_one,calls_waiting_vl_two,in_man_dial_next_ready_seconds,in_man_dial_next_ready_seconds_override,transfer_no_dispo,local_call_time,pause_max_url,agent_hide_hangup,ig_xfer_list_sort,script_tab_frame_size,user_group_script,agent_hangup_route,agent_hangup_value,agent_hangup_ig_override,show_confetti,custom_one,custom_two,custom_three,custom_four,custom_five,allow_chats FROM vicidial_campaigns where campaign_id = '$VD_campaign';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'01013',$VD_login,$server_ip,$session_name,$one_mysql_log);}
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
@@ -2690,6 +2691,12 @@ else
|
||||
$agent_hangup_value = $row[180];
|
||||
$agent_hangup_ig_override = $row[181];
|
||||
$show_confetti = $row[182];
|
||||
$camp_custom_one = $row[183];
|
||||
$camp_custom_two = $row[184];
|
||||
$camp_custom_three = $row[185];
|
||||
$camp_custom_four = $row[186];
|
||||
$camp_custom_five = $row[187];
|
||||
$campaign_chat_enabled = $row[188];
|
||||
|
||||
if ( (strlen($UGscript_id) > 0) and ($user_group_script == 'ENABLED') )
|
||||
{
|
||||
@@ -5761,6 +5768,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var custom_fields_enabled='<?php echo $custom_fields_enabled ?>';
|
||||
var form_contents_loaded=0;
|
||||
var email_enabled='<?php echo $email_enabled ?>';
|
||||
var campaign_chat_enabled='<?php echo $campaign_chat_enabled; ?>';
|
||||
var chat_enabled='<?php echo $chat_enabled ?>';
|
||||
var chat_URL='<?php echo $chat_URL; ?>';
|
||||
var enable_xfer_presets='<?php echo $enable_xfer_presets ?>';
|
||||
@@ -5775,6 +5783,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var did_custom_three='';
|
||||
var did_custom_four='';
|
||||
var did_custom_five='';
|
||||
var ig_custom_one='';
|
||||
var ig_custom_two='';
|
||||
var ig_custom_three='';
|
||||
var ig_custom_four='';
|
||||
var ig_custom_five='';
|
||||
var closecallid='';
|
||||
var xfercallid='';
|
||||
var custom_field_names='';
|
||||
@@ -6003,6 +6016,11 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var agent_hangup_ig_override='<?php echo $agent_hangup_ig_override ?>';
|
||||
var show_confetti='<?php echo $show_confetti ?>';
|
||||
var agent_notifications='<?php echo $SSagent_notifications ?>';
|
||||
var camp_custom_one='<?php echo $camp_custom_one ?>';
|
||||
var camp_custom_two='<?php echo $camp_custom_two ?>';
|
||||
var camp_custom_three='<?php echo $camp_custom_three ?>';
|
||||
var camp_custom_four='<?php echo $camp_custom_four ?>';
|
||||
var camp_custom_five='<?php echo $camp_custom_five ?>';
|
||||
var DiaLControl_auto_HTML = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_paused.gif") ?>\" border=\"0\" alt=\"You are paused\" /></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause','','','','','','','YES');\"><img src=\"./images/<?php echo _QXZ("vdc_LB_active.gif") ?>\" border=\"0\" alt=\"You are active\" /></a>";
|
||||
var DiaLControl_auto_HTML_OFF = "<img src=\"./images/<?php echo _QXZ("vdc_LB_blank_OFF.gif") ?>\" border=\"0\" alt=\"pause button disabled\" />";
|
||||
@@ -7226,7 +7244,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
document.getElementById("AgentStatusDiaLs").innerHTML = DiaLCalLs;
|
||||
}
|
||||
// Chat alert
|
||||
if (chat_enabled > 0)
|
||||
if (chat_enabled > 0 && campaign_chat_enabled=='Y')
|
||||
{
|
||||
if (WaitinGChats == 'Y')
|
||||
{
|
||||
@@ -9769,6 +9787,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
status_group_statuses_data = change_array[65];
|
||||
last_call_date = change_array[66];
|
||||
|
||||
ig_custom_one = change_array[71];
|
||||
ig_custom_two = change_array[72];
|
||||
ig_custom_three = change_array[73];
|
||||
ig_custom_four = change_array[74];
|
||||
ig_custom_five = change_array[75];
|
||||
|
||||
// build statuses list for disposition screen
|
||||
VARstatuses = [];
|
||||
VARstatusnames = [];
|
||||
@@ -11752,7 +11776,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
}
|
||||
// JOEJ 060514 - new for chat feature
|
||||
// Will populate chat tab in case this is a customer awaiting a chat AND the agent selected a campaign that allows chats
|
||||
if (chat_enabled > 0 && CHATgroupCOUNT > 0)
|
||||
if (chat_enabled > 0 && CHATgroupCOUNT > 0 && campaign_chat_enabled=='Y')
|
||||
{
|
||||
CustomerChatContentsLoad();
|
||||
}
|
||||
@@ -12352,7 +12376,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
}
|
||||
// JOEJ 060514 - new for email feature
|
||||
// Will populate chat tab in case this is a customer awaiting a chat with an agent
|
||||
if (chat_enabled > 0)
|
||||
if (chat_enabled > 0 && campaign_chat_enabled=='Y')
|
||||
{
|
||||
CustomerChatContentsLoad();
|
||||
}
|
||||
@@ -13036,6 +13060,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
// CalL_ScripT_id_two = check_VDIC_array[67];
|
||||
// CalL_ScripT_color_two = check_VDIC_array[68];
|
||||
|
||||
ig_custom_one = check_VDIC_array[71];
|
||||
ig_custom_two = check_VDIC_array[72];
|
||||
ig_custom_three = check_VDIC_array[73];
|
||||
ig_custom_four = check_VDIC_array[74];
|
||||
ig_custom_five = check_VDIC_array[75];
|
||||
|
||||
// build statuses list for disposition screen
|
||||
VARstatuses = [];
|
||||
VARstatusnames = [];
|
||||
@@ -13497,7 +13527,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
EmailContentsLoad();
|
||||
}
|
||||
// JOEJ 060514 - new for chat feature
|
||||
if (chat_enabled > 0)
|
||||
if (chat_enabled > 0 && campaign_chat_enabled=='Y')
|
||||
{
|
||||
CustomerChatContentsLoad();
|
||||
}
|
||||
@@ -13571,7 +13601,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
alert(" <?php echo _QXZ("Incoming:"); ?> " + dial_display_number + "\n <?php echo _QXZ("Group"); ?>- " + VDIC_data_VDIG[1] + " " + VDIC_fronter);
|
||||
}
|
||||
}
|
||||
else if ( ((email_enabled>0 && EMAILgroupCOUNT>0) || (chat_enabled>0 && CHATgroupCOUNT>0)) && AutoDialWaiting==1)
|
||||
else if ( ((email_enabled>0 && EMAILgroupCOUNT>0) || (chat_enabled>0 && CHATgroupCOUNT>0 && campaign_chat_enabled=='Y')) && AutoDialWaiting==1)
|
||||
{
|
||||
// JOEJ check for EMAIL/CHAT
|
||||
// QUEUEpadding is needed to allow inbound calls to get through QUEUE status
|
||||
@@ -13668,7 +13698,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
}
|
||||
else if (CalL_AutO_LauncH=='CHAT')
|
||||
{
|
||||
if (chat_enabled > 0)
|
||||
if (chat_enabled > 0 && campaign_chat_enabled=='Y')
|
||||
{
|
||||
document.images['CustomerChatImg'].src=image_customer_chat_ON.src;
|
||||
document.getElementById("ChatAudioAlertFile").play();
|
||||
@@ -13869,6 +13899,12 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
status_group_statuses_data = check_VDIC_array[61];
|
||||
last_call_date = check_VDIC_array[62];
|
||||
|
||||
ig_custom_one = check_VDIC_array[67];
|
||||
ig_custom_two = check_VDIC_array[68];
|
||||
ig_custom_three = check_VDIC_array[69];
|
||||
ig_custom_four = check_VDIC_array[70];
|
||||
ig_custom_five = check_VDIC_array[71];
|
||||
|
||||
// build statuses list for disposition screen
|
||||
VARstatuses = [];
|
||||
VARstatusnames = [];
|
||||
@@ -14315,7 +14351,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
EmailContentsLoad();
|
||||
}
|
||||
// JOEJ 060514 - new for chat feature
|
||||
if (chat_enabled > 0)
|
||||
if (chat_enabled > 0 && campaign_chat_enabled=='Y')
|
||||
{
|
||||
CustomerChatContentsLoad('', '', manual_chat_override);
|
||||
}
|
||||
@@ -16345,6 +16381,11 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
did_custom_three='';
|
||||
did_custom_four='';
|
||||
did_custom_five='';
|
||||
ig_custom_one='';
|
||||
ig_custom_two='';
|
||||
ig_custom_three='';
|
||||
ig_custom_four='';
|
||||
ig_custom_five='';
|
||||
closecallid='';
|
||||
xfercallid='';
|
||||
custom_field_names='';
|
||||
@@ -16496,7 +16537,7 @@ function set_length(SLnumber,SLlength_goal,SLdirection)
|
||||
parked_hangup='0';
|
||||
|
||||
// Set customer chat tab to OFF, just to be sure
|
||||
if (chat_enabled > 0)
|
||||
if (chat_enabled > 0 && campaign_chat_enabled=='Y')
|
||||
{
|
||||
document.images['CustomerChatImg'].src=image_customer_chat_OFF.src;
|
||||
}
|
||||
@@ -18159,6 +18200,11 @@ else
|
||||
"&user_custom_three=" + VU_custom_three + '' +
|
||||
"&user_custom_four=" + VU_custom_four + '' +
|
||||
"&user_custom_five=" + VU_custom_five + '' +
|
||||
"&camp_custom_one=" + camp_custom_one + '' +
|
||||
"&camp_custom_two=" + camp_custom_two + '' +
|
||||
"&camp_custom_three=" + camp_custom_three + '' +
|
||||
"&camp_custom_four=" + camp_custom_four + '' +
|
||||
"&camp_custom_five=" + camp_custom_five + '' +
|
||||
"&preset_number_a=" + CalL_XC_a_NuMber + '' +
|
||||
"&preset_number_b=" + CalL_XC_b_NuMber + '' +
|
||||
"&preset_number_c=" + CalL_XC_c_NuMber + '' +
|
||||
@@ -18184,6 +18230,11 @@ else
|
||||
"&did_custom_three=" + did_custom_three + '' +
|
||||
"&did_custom_four=" + did_custom_four + '' +
|
||||
"&did_custom_five=" + did_custom_five + '' +
|
||||
"&ig_custom_one=" + ig_custom_one + '' +
|
||||
"&ig_custom_two=" + ig_custom_two + '' +
|
||||
"&ig_custom_three=" + ig_custom_three + '' +
|
||||
"&ig_custom_four=" + ig_custom_four + '' +
|
||||
"&ig_custom_five=" + ig_custom_five + '' +
|
||||
"&called_count=" + document.vicidial_form.called_count.value + '' +
|
||||
"&email_row_id=" + document.vicidial_form.email_row_id.value + '' +
|
||||
"&inOUT=" + inOUT + '' +
|
||||
@@ -18409,6 +18460,11 @@ else
|
||||
var SCuser_custom_three = VU_custom_three;
|
||||
var SCuser_custom_four = VU_custom_four;
|
||||
var SCuser_custom_five = VU_custom_five;
|
||||
var SCcamp_custom_one = camp_custom_one;
|
||||
var SCcamp_custom_two = camp_custom_two;
|
||||
var SCcamp_custom_three = camp_custom_three;
|
||||
var SCcamp_custom_four = camp_custom_four;
|
||||
var SCcamp_custom_five = camp_custom_five;
|
||||
var SCpreset_number_a = CalL_XC_a_NuMber;
|
||||
var SCpreset_number_b = CalL_XC_b_NuMber;
|
||||
var SCpreset_number_c = CalL_XC_c_NuMber;
|
||||
@@ -18431,6 +18487,11 @@ else
|
||||
var SCdid_custom_three = did_custom_three;
|
||||
var SCdid_custom_four = did_custom_four;
|
||||
var SCdid_custom_five = did_custom_five;
|
||||
var SCig_custom_one = ig_custom_one;
|
||||
var SCig_custom_two = ig_custom_two;
|
||||
var SCig_custom_three = ig_custom_three;
|
||||
var SCig_custom_four = ig_custom_four;
|
||||
var SCig_custom_five = ig_custom_five;
|
||||
var SCcalled_count = document.vicidial_form.called_count.value;
|
||||
var SCweb_vars = LIVE_web_vars;
|
||||
|
||||
@@ -18495,6 +18556,11 @@ else
|
||||
SCuser_custom_three = SCuser_custom_three.replace(RGplus,'+');
|
||||
SCuser_custom_four = SCuser_custom_four.replace(RGplus,'+');
|
||||
SCuser_custom_five = SCuser_custom_five.replace(RGplus,'+');
|
||||
SCcamp_custom_one = SCcamp_custom_one.replace(RGplus,'+');
|
||||
SCcamp_custom_two = SCcamp_custom_two.replace(RGplus,'+');
|
||||
SCcamp_custom_three = SCcamp_custom_three.replace(RGplus,'+');
|
||||
SCcamp_custom_four = SCcamp_custom_four.replace(RGplus,'+');
|
||||
SCcamp_custom_five = SCcamp_custom_five.replace(RGplus,'+');
|
||||
SCpreset_number_a = SCpreset_number_a.replace(RGplus,'+');
|
||||
SCpreset_number_b = SCpreset_number_b.replace(RGplus,'+');
|
||||
SCpreset_number_c = SCpreset_number_c.replace(RGplus,'+');
|
||||
@@ -18514,6 +18580,11 @@ else
|
||||
SCdid_custom_three = SCdid_custom_three.replace(RGplus,'+');
|
||||
SCdid_custom_four = SCdid_custom_four.replace(RGplus,'+');
|
||||
SCdid_custom_five = SCdid_custom_five.replace(RGplus,'+');
|
||||
SCig_custom_one = SCig_custom_one.replace(RGplus,'+');
|
||||
SCig_custom_two = SCig_custom_two.replace(RGplus,'+');
|
||||
SCig_custom_three = SCig_custom_three.replace(RGplus,'+');
|
||||
SCig_custom_four = SCig_custom_four.replace(RGplus,'+');
|
||||
SCig_custom_five = SCig_custom_five.replace(RGplus,'+');
|
||||
SCweb_vars = SCweb_vars.replace(RGplus,'+');
|
||||
}
|
||||
|
||||
@@ -18578,6 +18649,11 @@ else
|
||||
var RGuser_custom_three = new RegExp("--A--user_custom_three--B--","g");
|
||||
var RGuser_custom_four = new RegExp("--A--user_custom_four--B--","g");
|
||||
var RGuser_custom_five = new RegExp("--A--user_custom_five--B--","g");
|
||||
var RGcamp_custom_one = new RegExp("--A--camp_custom_one--B--","g");
|
||||
var RGcamp_custom_two = new RegExp("--A--camp_custom_two--B--","g");
|
||||
var RGcamp_custom_three = new RegExp("--A--camp_custom_three--B--","g");
|
||||
var RGcamp_custom_four = new RegExp("--A--camp_custom_four--B--","g");
|
||||
var RGcamp_custom_five = new RegExp("--A--camp_custom_five--B--","g");
|
||||
var RGpreset_number_a = new RegExp("--A--preset_number_a--B--","g");
|
||||
var RGpreset_number_b = new RegExp("--A--preset_number_b--B--","g");
|
||||
var RGpreset_number_c = new RegExp("--A--preset_number_c--B--","g");
|
||||
@@ -18600,6 +18676,11 @@ else
|
||||
var RGdid_custom_three = new RegExp("--A--did_custom_three--B--","g");
|
||||
var RGdid_custom_four = new RegExp("--A--did_custom_four--B--","g");
|
||||
var RGdid_custom_five = new RegExp("--A--did_custom_five--B--","g");
|
||||
var RGig_custom_one = new RegExp("--A--ig_custom_one--B--","g");
|
||||
var RGig_custom_two = new RegExp("--A--ig_custom_two--B--","g");
|
||||
var RGig_custom_three = new RegExp("--A--ig_custom_three--B--","g");
|
||||
var RGig_custom_four = new RegExp("--A--ig_custom_four--B--","g");
|
||||
var RGig_custom_five = new RegExp("--A--ig_custom_five--B--","g");
|
||||
var RGinOUT = new RegExp("--A--inOUT--B--","g");
|
||||
var RGcalled_count = new RegExp("--A--called_count--B--","g");
|
||||
var RGLOGINvarONE = new RegExp("--A--LOGINvarONE--B--","g");
|
||||
@@ -18670,6 +18751,11 @@ else
|
||||
encoded = encoded.replace(RGuser_custom_three, SCuser_custom_three);
|
||||
encoded = encoded.replace(RGuser_custom_four, SCuser_custom_four);
|
||||
encoded = encoded.replace(RGuser_custom_five, SCuser_custom_five);
|
||||
encoded = encoded.replace(RGcamp_custom_one, SCcamp_custom_one);
|
||||
encoded = encoded.replace(RGcamp_custom_two, SCcamp_custom_two);
|
||||
encoded = encoded.replace(RGcamp_custom_three, SCcamp_custom_three);
|
||||
encoded = encoded.replace(RGcamp_custom_four, SCcamp_custom_four);
|
||||
encoded = encoded.replace(RGcamp_custom_five, SCcamp_custom_five);
|
||||
encoded = encoded.replace(RGpreset_number_a, SCpreset_number_a);
|
||||
encoded = encoded.replace(RGpreset_number_b, SCpreset_number_b);
|
||||
encoded = encoded.replace(RGpreset_number_c, SCpreset_number_c);
|
||||
@@ -18692,6 +18778,11 @@ else
|
||||
encoded = encoded.replace(RGdid_custom_three,SCdid_custom_three);
|
||||
encoded = encoded.replace(RGdid_custom_four,SCdid_custom_four);
|
||||
encoded = encoded.replace(RGdid_custom_five,SCdid_custom_five);
|
||||
encoded = encoded.replace(RGig_custom_one,SCig_custom_one);
|
||||
encoded = encoded.replace(RGig_custom_two,SCig_custom_two);
|
||||
encoded = encoded.replace(RGig_custom_three,SCig_custom_three);
|
||||
encoded = encoded.replace(RGig_custom_four,SCig_custom_four);
|
||||
encoded = encoded.replace(RGig_custom_five,SCig_custom_five);
|
||||
encoded = encoded.replace(RGcalled_count,SCcalled_count);
|
||||
encoded = encoded.replace(RGinOUT,inOUT);
|
||||
encoded = encoded.replace(RGLOGINvarONE,LOGINvarONE);
|
||||
@@ -19799,7 +19890,7 @@ function phone_number_format(formatphone) {
|
||||
var form_entry_list_id = document.vicidial_form.entry_list_id.value;
|
||||
if (form_entry_list_id.length > 2)
|
||||
{form_list_id = form_entry_list_id}
|
||||
var temp_vcFormIFrame_url = './<?php echo $vdc_form_display ?>?lead_id=' + document.vicidial_form.lead_id.value + '&list_id=' + form_list_id + '&user=' + user + '&pass=' + pass + '&campaign=' + campaign + '&server_ip=' + server_ip + '&session_id=' + '&uniqueid=' + document.vicidial_form.uniqueid.value + '&stage=DISPLAY' + "&campaign=" + campaign + "&phone_login=" + phone_login + "&original_phone_login=" + original_phone_login +"&phone_pass=" + phone_pass + "&fronter=" + fronter + "&closer=" + user + "&group=" + group + "&channel_group=" + group + "&SQLdate=" + SQLdate + "&epoch=" + UnixTime + "&customer_zap_channel=" + lastcustchannel + "&customer_server_ip=" + lastcustserverip +"&server_ip=" + server_ip + "&SIPexten=" + extension + "&session_id=" + session_id + "&phone=" + document.vicidial_form.phone_number.value + "&parked_by=" + document.vicidial_form.lead_id.value +"&dispo=" + LeaDDispO + '' +"&dialed_number=" + dialed_number + '' +"&dialed_label=" + dialed_label + '' +"&camp_script=" + campaign_script + '' +"&in_script=" + CalL_ScripT_id + '' +"&script_width=" + form_width + '' +"&script_height=" + script_height + '' +"&fullname=" + LOGfullname + '' +"&agent_email=" + LOGemail + '' +"&recording_filename=" + recording_filename + '' +"&recording_id=" + recording_id + '' +"&user_custom_one=" + VU_custom_one + '' +"&user_custom_two=" + VU_custom_two + '' +"&user_custom_three=" + VU_custom_three + '' +"&user_custom_four=" + VU_custom_four + '' +"&user_custom_five=" + VU_custom_five + '' +"&did_id=" + did_id + '' +"&did_extension=" + did_extension + '' +"&did_pattern=" + did_pattern + '' +"&did_description=" + did_description + '' +"&closecallid=" + closecallid + '' +"&xfercallid=" + xfercallid + '' + "&agent_log_id=" + agent_log_id + "&call_id=" + LasTCID + "&user_group=" + VU_user_group + "&called_count=" + document.vicidial_form.called_count.value + '' + "&did_custom_one=" + did_custom_one + "&did_custom_two=" + did_custom_two + "&did_custom_three=" + did_custom_three + "&did_custom_four=" + did_custom_four + "&did_custom_five=" + did_custom_five + "&web_vars=" + LIVE_web_vars + '' +"&preset_number_a=" + CalL_XC_a_NuMber + '' +"&preset_number_b=" + CalL_XC_b_NuMber + '' +"&preset_number_c=" + CalL_XC_c_NuMber + '' +"&preset_number_d=" + CalL_XC_d_NuMber + '' +"&preset_number_e=" + CalL_XC_e_NuMber + '' +"&preset_dtmf_a=" + CalL_XC_a_Dtmf + '' +"&preset_dtmf_b=" + CalL_XC_b_Dtmf + "&hide_gender=" + hide_gender + '';
|
||||
var temp_vcFormIFrame_url = './<?php echo $vdc_form_display ?>?lead_id=' + document.vicidial_form.lead_id.value + '&list_id=' + form_list_id + '&user=' + user + '&pass=' + pass + '&campaign=' + campaign + '&server_ip=' + server_ip + '&session_id=' + '&uniqueid=' + document.vicidial_form.uniqueid.value + '&stage=DISPLAY' + "&campaign=" + campaign + "&phone_login=" + phone_login + "&original_phone_login=" + original_phone_login +"&phone_pass=" + phone_pass + "&fronter=" + fronter + "&closer=" + user + "&group=" + group + "&channel_group=" + group + "&SQLdate=" + SQLdate + "&epoch=" + UnixTime + "&customer_zap_channel=" + lastcustchannel + "&customer_server_ip=" + lastcustserverip +"&server_ip=" + server_ip + "&SIPexten=" + extension + "&session_id=" + session_id + "&phone=" + document.vicidial_form.phone_number.value + "&parked_by=" + document.vicidial_form.lead_id.value +"&dispo=" + LeaDDispO + '' +"&dialed_number=" + dialed_number + '' +"&dialed_label=" + dialed_label + '' +"&camp_script=" + campaign_script + '' +"&in_script=" + CalL_ScripT_id + '' +"&script_width=" + form_width + '' +"&script_height=" + script_height + '' +"&fullname=" + LOGfullname + '' +"&agent_email=" + LOGemail + '' +"&recording_filename=" + recording_filename + '' +"&recording_id=" + recording_id + '' +"&user_custom_one=" + VU_custom_one + '' +"&user_custom_two=" + VU_custom_two + '' +"&user_custom_three=" + VU_custom_three + '' +"&user_custom_four=" + VU_custom_four + '' +"&user_custom_five=" + VU_custom_five + '' +"&camp_custom_one=" + camp_custom_one + '' +"&camp_custom_two=" + camp_custom_two + '' +"&camp_custom_three=" + camp_custom_three + '' +"&camp_custom_four=" + camp_custom_four + '' +"&camp_custom_five=" + camp_custom_five + '' +"&did_id=" + did_id + '' +"&did_extension=" + did_extension + '' +"&did_pattern=" + did_pattern + '' +"&did_description=" + did_description + '' +"&closecallid=" + closecallid + '' +"&xfercallid=" + xfercallid + '' + "&agent_log_id=" + agent_log_id + "&call_id=" + LasTCID + "&user_group=" + VU_user_group + "&called_count=" + document.vicidial_form.called_count.value + '' + "&did_custom_one=" + did_custom_one + "&did_custom_two=" + did_custom_two + "&did_custom_three=" + did_custom_three + "&did_custom_four=" + did_custom_four + "&did_custom_five=" + did_custom_five + "&ig_custom_one=" + ig_custom_one + "&ig_custom_two=" + ig_custom_two + "&ig_custom_three=" + ig_custom_three + "&ig_custom_four=" + ig_custom_four + "&ig_custom_five=" + ig_custom_five + "&web_vars=" + LIVE_web_vars + '' +"&preset_number_a=" + CalL_XC_a_NuMber + '' +"&preset_number_b=" + CalL_XC_b_NuMber + '' +"&preset_number_c=" + CalL_XC_c_NuMber + '' +"&preset_number_d=" + CalL_XC_d_NuMber + '' +"&preset_number_e=" + CalL_XC_e_NuMber + '' +"&preset_dtmf_a=" + CalL_XC_a_Dtmf + '' +"&preset_dtmf_b=" + CalL_XC_b_Dtmf + "&hide_gender=" + hide_gender + '';
|
||||
document.getElementById('vcFormIFrame').src = temp_vcFormIFrame_url;
|
||||
// alert_box(temp_vcFormIFrame_url);
|
||||
form_list_id = '';
|
||||
@@ -19817,7 +19908,7 @@ function phone_number_format(formatphone) {
|
||||
var form_entry_list_id = document.vicidial_form.entry_list_id.value;
|
||||
if (form_entry_list_id.length > 2)
|
||||
{form_list_id = form_entry_list_id}
|
||||
document.getElementById('vcEmailIFrame').src='./vdc_email_display.php?lead_id=' + document.vicidial_form.lead_id.value + '&email_row_id=' + email_row_id + '&list_id=' + form_list_id + '&user=' + user + '&pass=' + pass + '&campaign=' + campaign + '&server_ip=' + server_ip + '&session_id=' + '&uniqueid=' + document.vicidial_form.uniqueid.value + '&stage=DISPLAY' + "&campaign=" + campaign + "&phone_login=" + phone_login + "&original_phone_login=" + original_phone_login +"&phone_pass=" + phone_pass + "&fronter=" + fronter + "&closer=" + user + "&group=" + group + "&channel_group=" + group + "&SQLdate=" + SQLdate + "&epoch=" + UnixTime + "&customer_zap_channel=" + lastcustchannel + "&customer_server_ip=" + lastcustserverip +"&server_ip=" + server_ip + "&SIPexten=" + extension + "&session_id=" + session_id + "&phone=" + document.vicidial_form.phone_number.value + "&parked_by=" + document.vicidial_form.lead_id.value +"&dispo=" + LeaDDispO + '' +"&dialed_number=" + dialed_number + '' +"&dialed_label=" + dialed_label + '' +"&camp_script=" + campaign_script + '' +"&in_script=" + CalL_ScripT_id + '' +"&script_width=" + form_width + '' +"&script_height=" + script_height + '' +"&fullname=" + LOGfullname + '' +"&agent_email=" + LOGemail + '' +"&recording_filename=" + recording_filename + '' +"&recording_id=" + recording_id + '' +"&user_custom_one=" + VU_custom_one + '' +"&user_custom_two=" + VU_custom_two + '' +"&user_custom_three=" + VU_custom_three + '' +"&user_custom_four=" + VU_custom_four + '' +"&user_custom_five=" + VU_custom_five + '' +"&did_id=" + did_id + '' +"&did_extension=" + did_extension + '' +"&did_pattern=" + did_pattern + '' +"&did_description=" + did_description + '' +"&closecallid=" + closecallid + '' +"&xfercallid=" + xfercallid + '' + "&agent_log_id=" + agent_log_id + "&call_id=" + LasTCID + "&user_group=" + VU_user_group + '' + "&did_custom_one=" + did_custom_one + "&did_custom_two=" + did_custom_two + "&did_custom_three=" + did_custom_three + "&did_custom_four=" + did_custom_four + "&did_custom_five=" + did_custom_five + "&web_vars=" + LIVE_web_vars + '' +"&preset_number_a=" + CalL_XC_a_NuMber + '' +"&preset_number_b=" + CalL_XC_b_NuMber + '' +"&preset_number_c=" + CalL_XC_c_NuMber + '' +"&preset_number_d=" + CalL_XC_d_NuMber + '' +"&preset_number_e=" + CalL_XC_e_NuMber + '' +"&preset_dtmf_a=" + CalL_XC_a_Dtmf + '' +"&preset_dtmf_b=" + CalL_XC_b_Dtmf + '' ;
|
||||
document.getElementById('vcEmailIFrame').src='./vdc_email_display.php?lead_id=' + document.vicidial_form.lead_id.value + '&email_row_id=' + email_row_id + '&list_id=' + form_list_id + '&user=' + user + '&pass=' + pass + '&campaign=' + campaign + '&server_ip=' + server_ip + '&session_id=' + '&uniqueid=' + document.vicidial_form.uniqueid.value + '&stage=DISPLAY' + "&campaign=" + campaign + "&phone_login=" + phone_login + "&original_phone_login=" + original_phone_login +"&phone_pass=" + phone_pass + "&fronter=" + fronter + "&closer=" + user + "&group=" + group + "&channel_group=" + group + "&SQLdate=" + SQLdate + "&epoch=" + UnixTime + "&customer_zap_channel=" + lastcustchannel + "&customer_server_ip=" + lastcustserverip +"&server_ip=" + server_ip + "&SIPexten=" + extension + "&session_id=" + session_id + "&phone=" + document.vicidial_form.phone_number.value + "&parked_by=" + document.vicidial_form.lead_id.value +"&dispo=" + LeaDDispO + '' +"&dialed_number=" + dialed_number + '' +"&dialed_label=" + dialed_label + '' +"&camp_script=" + campaign_script + '' +"&in_script=" + CalL_ScripT_id + '' +"&script_width=" + form_width + '' +"&script_height=" + script_height + '' +"&fullname=" + LOGfullname + '' +"&agent_email=" + LOGemail + '' +"&recording_filename=" + recording_filename + '' +"&recording_id=" + recording_id + '' +"&user_custom_one=" + VU_custom_one + '' +"&user_custom_two=" + VU_custom_two + '' +"&user_custom_three=" + VU_custom_three + '' +"&user_custom_four=" + VU_custom_four + '' +"&user_custom_five=" + VU_custom_five + '' +"&camp_custom_one=" + camp_custom_one + '' +"&camp_custom_two=" + camp_custom_two + '' +"&camp_custom_three=" + camp_custom_three + '' +"&camp_custom_four=" + camp_custom_four + '' +"&camp_custom_five=" + camp_custom_five + '' +"&did_id=" + did_id + '' +"&did_extension=" + did_extension + '' +"&did_pattern=" + did_pattern + '' +"&did_description=" + did_description + '' +"&closecallid=" + closecallid + '' +"&xfercallid=" + xfercallid + '' + "&agent_log_id=" + agent_log_id + "&call_id=" + LasTCID + "&user_group=" + VU_user_group + '' + "&did_custom_one=" + did_custom_one + "&did_custom_two=" + did_custom_two + "&did_custom_three=" + did_custom_three + "&did_custom_four=" + did_custom_four + "&did_custom_five=" + did_custom_five + "&ig_custom_one=" + ig_custom_one + "&ig_custom_two=" + ig_custom_two + "&ig_custom_three=" + ig_custom_three + "&ig_custom_four=" + ig_custom_four + "&ig_custom_five=" + ig_custom_five + "&web_vars=" + LIVE_web_vars + '' +"&preset_number_a=" + CalL_XC_a_NuMber + '' +"&preset_number_b=" + CalL_XC_b_NuMber + '' +"&preset_number_c=" + CalL_XC_c_NuMber + '' +"&preset_number_d=" + CalL_XC_d_NuMber + '' +"&preset_number_e=" + CalL_XC_e_NuMber + '' +"&preset_dtmf_a=" + CalL_XC_a_Dtmf + '' +"&preset_dtmf_b=" + CalL_XC_b_Dtmf + '' ;
|
||||
form_list_id = '';
|
||||
form_entry_list_id = '';
|
||||
}
|
||||
@@ -19832,7 +19923,7 @@ function phone_number_format(formatphone) {
|
||||
var form_chat_id = document.vicidial_form.chat_id.value;
|
||||
if (form_entry_list_id.length > 2)
|
||||
{form_list_id = form_entry_list_id}
|
||||
document.getElementById('CustomerChatIFrame').src='./vdc_chat_display.php?lead_id=' + document.vicidial_form.lead_id.value + '&list_id=' + form_list_id + '&user=' + user + '&pass=' + pass + '&campaign=' + campaign + '&chat_id=' + form_chat_id + '&dial_method=' + dial_method + '&clickmute=' + clickMute + '&email_invite_lead_id=' + email_invite_lead_id + '&server_ip=' + server_ip + '&session_id=' + '&uniqueid=' + document.vicidial_form.uniqueid.value + '&stage=DISPLAY' + "&campaign=" + campaign + "&phone_login=" + phone_login + "&original_phone_login=" + original_phone_login +"&phone_pass=" + phone_pass + "&fronter=" + fronter + "&closer=" + user + "&group=" + group + "&channel_group=" + group + "&SQLdate=" + SQLdate + "&epoch=" + UnixTime + "&customer_zap_channel=" + lastcustchannel + "&customer_server_ip=" + lastcustserverip +"&server_ip=" + server_ip + "&SIPexten=" + extension + "&session_id=" + session_id + "&phone=" + document.vicidial_form.phone_number.value + "&parked_by=" + document.vicidial_form.lead_id.value +"&dispo=" + LeaDDispO + '' +"&dialed_number=" + dialed_number + '' +"&dialed_label=" + dialed_label + '' +"&camp_script=" + campaign_script + '' +"&in_script=" + CalL_ScripT_id + '' +"&script_width=" + form_width + '' +"&script_height=" + script_height + '' +"&fullname=" + LOGfullname + '' +"&recording_filename=" + recording_filename + '' +"&recording_id=" + recording_id + '' +"&user_custom_one=" + VU_custom_one + '' +"&user_custom_two=" + VU_custom_two + '' +"&user_custom_three=" + VU_custom_three + '' +"&user_custom_four=" + VU_custom_four + '' +"&user_custom_five=" + VU_custom_five + '' +"&did_id=" + did_id + '' +"&did_extension=" + did_extension + '' +"&did_pattern=" + did_pattern + '' +"&did_description=" + did_description + '' +"&closecallid=" + closecallid + '' + "&xfercallid=" + xfercallid + '' + "&chat_group_id=" + VDCL_group_id + '' + "&agent_log_id=" + agent_log_id + "&call_id=" + LasTCID + "&user_group=" + VU_user_group + '' +"&web_vars=" + LIVE_web_vars + '' +"&preset_number_a=" + CalL_XC_a_NuMber + '' +"&preset_number_b=" + CalL_XC_b_NuMber + '' +"&preset_number_c=" + CalL_XC_c_NuMber + '' +"&preset_number_d=" + CalL_XC_d_NuMber + '' +"&preset_number_e=" + CalL_XC_e_NuMber + '' +"&preset_dtmf_a=" + CalL_XC_a_Dtmf + '' +"&preset_dtmf_b=" + CalL_XC_b_Dtmf + '';
|
||||
document.getElementById('CustomerChatIFrame').src='./vdc_chat_display.php?lead_id=' + document.vicidial_form.lead_id.value + '&list_id=' + form_list_id + '&user=' + user + '&pass=' + pass + '&campaign=' + campaign + '&chat_id=' + form_chat_id + '&dial_method=' + dial_method + '&clickmute=' + clickMute + '&email_invite_lead_id=' + email_invite_lead_id + '&server_ip=' + server_ip + '&session_id=' + '&uniqueid=' + document.vicidial_form.uniqueid.value + '&stage=DISPLAY' + "&campaign=" + campaign + "&phone_login=" + phone_login + "&original_phone_login=" + original_phone_login +"&phone_pass=" + phone_pass + "&fronter=" + fronter + "&closer=" + user + "&group=" + group + "&channel_group=" + group + "&SQLdate=" + SQLdate + "&epoch=" + UnixTime + "&customer_zap_channel=" + lastcustchannel + "&customer_server_ip=" + lastcustserverip +"&server_ip=" + server_ip + "&SIPexten=" + extension + "&session_id=" + session_id + "&phone=" + document.vicidial_form.phone_number.value + "&parked_by=" + document.vicidial_form.lead_id.value +"&dispo=" + LeaDDispO + '' +"&dialed_number=" + dialed_number + '' +"&dialed_label=" + dialed_label + '' +"&camp_script=" + campaign_script + '' +"&in_script=" + CalL_ScripT_id + '' +"&script_width=" + form_width + '' +"&script_height=" + script_height + '' +"&fullname=" + LOGfullname + '' +"&recording_filename=" + recording_filename + '' +"&recording_id=" + recording_id + '' +"&user_custom_one=" + VU_custom_one + '' +"&user_custom_two=" + VU_custom_two + '' +"&user_custom_three=" + VU_custom_three + '' +"&user_custom_four=" + VU_custom_four + '' +"&user_custom_five=" + VU_custom_five + '' +"&camp_custom_one=" + camp_custom_one + '' +"&camp_custom_two=" + camp_custom_two + '' +"&camp_custom_three=" + camp_custom_three + '' +"&camp_custom_four=" + camp_custom_four + '' +"&camp_custom_five=" + camp_custom_five + '' +"&did_id=" + did_id + '' +"&did_extension=" + did_extension + '' +"&did_pattern=" + did_pattern + '' +"&did_description=" + did_description + "&ig_custom_one=" + ig_custom_one + "&ig_custom_two=" + ig_custom_two + "&ig_custom_three=" + ig_custom_three + "&ig_custom_four=" + ig_custom_four + "&ig_custom_five=" + ig_custom_five + '' +"&closecallid=" + closecallid + '' + "&xfercallid=" + xfercallid + '' + "&chat_group_id=" + VDCL_group_id + '' + "&agent_log_id=" + agent_log_id + "&call_id=" + LasTCID + "&user_group=" + VU_user_group + '' +"&web_vars=" + LIVE_web_vars + '' +"&preset_number_a=" + CalL_XC_a_NuMber + '' +"&preset_number_b=" + CalL_XC_b_NuMber + '' +"&preset_number_c=" + CalL_XC_c_NuMber + '' +"&preset_number_d=" + CalL_XC_d_NuMber + '' +"&preset_number_e=" + CalL_XC_e_NuMber + '' +"&preset_dtmf_a=" + CalL_XC_a_Dtmf + '' +"&preset_dtmf_b=" + CalL_XC_b_Dtmf + '';
|
||||
form_list_id = '';
|
||||
form_chat_id = '';
|
||||
form_entry_list_id = '';
|
||||
@@ -20721,7 +20812,7 @@ function phone_number_format(formatphone) {
|
||||
CalLBacKsCounTCheck();
|
||||
CB_count_check=0;
|
||||
}
|
||||
if (chat_enabled=='1') // JOEJ - if chat is enabled, check if manager has sent message.
|
||||
if (chat_enabled=='1') // JOEJ - if chat is enabled, check if manager has sent message. This happens regardless of whether the campaign is chat-enabled
|
||||
{
|
||||
InternalChatsCheck();
|
||||
}
|
||||
@@ -22104,11 +22195,16 @@ $zi=2;
|
||||
<?php if ($chat_enabled > 0)
|
||||
{
|
||||
# INTERNAL CHAT
|
||||
# Always show if chat is enabled for the system
|
||||
echo "<td align=\"left\" width=\"67px\"><a href=\"#\" onclick=\"InternalChatContentsLoad('YES');\"><img src=\"./images/"._QXZ("vdc_tab_chat_internal.gif")."\" name='InternalChatImg' alt=\"CHAT\" width=\"67px\" height=\"30px\" border=\"0\"/></a></td>\n";
|
||||
|
||||
if ($campaign_chat_enabled=='Y')
|
||||
{
|
||||
# CUSTOMER CHAT
|
||||
# Only show if chat is enabled for the system AND the campaign the agent is using.
|
||||
echo "<td align=\"left\" width=\"67px\"><a href=\"#\" onclick=\"CustomerChatPanelToFront('1', 'YES');\"><img src=\"./images/"._QXZ("vdc_tab_chat_customer.gif")."\" name='CustomerChatImg' alt=\"CHAT\" width=\"67px\" height=\"30px\" border=\"0\"/></a></td>\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<td width="<?php echo $HSwidth ?>px" valign="middle" align="center"><font class="body_tiny"> <span id="status"><?php echo _QXZ("LIVE"); ?></span> <?php echo _QXZ("session ID:"); ?> <span id="sessionIDspan"></span></font><br><font class="body_text"> <span id="AgentStatusCalls"></span> <span id="AgentStatusEmails"></span></font></td>
|
||||
<td width="109px"><img src="./images/<?php echo _QXZ("agc_live_call_OFF.gif"); ?>" name="livecall" alt="Live Call" width="109px" height="30px" border="0" /></td>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
# version: 20230515164601
|
||||
# version: 20230518084701
|
||||
users-user User ID <QXZ>This field is where you put the users ID number, can be up to 20 digits in length, Must be at least 2 characters in length. We strongly recommend not reusing user accounts for different users, for reporting accuracy. To disable a user account, set the Active option to -N-.</QXZ>
|
||||
users-pass Password <QXZ>This field is where you put the users password. Must be at least 2 characters in length. Only letters and numbers are allowed in user passwords. A medium strength user password will be at least 10 characters in length, and a strong user password will be at least 20 characters in length and have letters as well as at least one number. It is recommended that you use a longer password if possible, stringing together several unrelated words with no spaces, and a number somewhere in the string. The maximum size of a password is 100 characters.</QXZ>
|
||||
users-force_change_password Force Change Password <QXZ>If this option is set to Y then the user will be prompted to change their password the next time they log in to the administration webpage or the agent screen. Default is N.</QXZ>
|
||||
@@ -421,6 +421,7 @@ campaigns-pause_after_next_call Agent Pause After Next Call Link <QXZ>This optio
|
||||
campaigns-blind_monitor_warning Blind Monitor Warning <QXZ>This option if enabled will let the agent know in various optional ways if they are being blind monitored by someone. DISABLED means this feature is not active, ALERT will only pop an alert up on the agent screen, NOTICE will post a note that stays up on the agent screen as long as they are being monitored, AUDIO will play the filename defined below when an agent is starting to be monitored and the other options are combinations of the above options. Default is DISABLED.</QXZ>
|
||||
campaigns-blind_monitor_message Blind Monitor Notice <QXZ>This is the message that will show on the agent screen while they are being monitored if the NOTICE option is selected. Default is -Someone is blind monitoring your session-.</QXZ>
|
||||
campaigns-blind_monitor_filename Blind Monitor Filename <QXZ>This is the audio file that will play in the agents session at the start of someone blind monitoring them. This prompt will be played for everyone in the session including the customer if any is present. Default is empty.</QXZ>
|
||||
campaigns-custom_fields Custom Campaign Fields <QXZ>These five custom Campaign fields allow you to define variables that can be used in agent scripts, webforms and Dispo Call URL variables for calls handled through this Campaign on a per-campaign basis. These variables can be called with --A--camp_custom_one--B-- for the Custom 1 field. Default is blank.</QXZ>
|
||||
campaigns-max_inbound_calls Max Inbound Calls <QXZ>If this setting is set to a number greater than 0, then it will be the maximum number of inbound calls that an agent can handle across all inbound groups in one day. If the agent reaches their maximum number of inbound calls, then they will not be able to select inbound groups to take calls from until the next day. This setting can be overridden by the User setting of the same name. Default is 0 for disabled.</QXZ>
|
||||
campaigns-max_inbound_calls_outcome Max Inbound Calls Outcome <QXZ>If the Max Inbound Calls setting above is enabled, this will be the outcome of what happens to the agent when the maximum number of inbound calls is reached. DEFAULT will halt all inbound call handling to the agent, and if the agent is in an INBOUND_MAN campaign, it will only allow them to manual dial, with no pausing ability. ALLOW_AGENTDIRECT will allow the agent to continue to receive AGENTDIRECT in-group calls after they have reached the max inbound calls count. ALLOW_MI_PAUSE will allow an agent in an INBOUND_MAN campaign to continue to pause after they have reached the max inbound calls count. Default is DEFAULT.</QXZ>
|
||||
campaigns-show_confetti Show Confetti <QXZ>Enable this option to add a bit of visual flair to the agent interface by having the screen rain confetti whenever the agent sets a call disposition that has been flagged with a sale or callback category. Options are SALES for sale calls only, CALLBACKS for callbacks only, and SALES_AND_CALLBACKS for both categories. By default the confetti will rain for 2 seconds after the call is dispositioned, but the duration of the confetti falling, the amount of confetti, and speed at which the confetti falls can be configured via an optional settings container, CONFETTI_SETTINGS. Default is DISABLED.</QXZ>
|
||||
@@ -666,6 +667,7 @@ inbound_groups-inbound_survey_accept_digit After Call Survey Accept Digit <QXZ>I
|
||||
inbound_groups-inbound_survey_question_filename After Call Question Filename <QXZ>If the After Call Survey option is enabled above, and if the customer has chosen to take the survey, this is the audio prompt filename that will play the question to the customer. The response to this survey question will be stored in the live_inbound_log database table.</QXZ>
|
||||
inbound_groups-inbound_survey_callmenu After Call End Call Menu <QXZ>If the After Call Survey option is enabled above, this is the Call Menu that the customer will be sent to after the customer has responded to the survey question. This option can allow the customer to answer additional questions within Call Menus if desired. If this field is blank, the customer phone call will be hung up after they respond to the question.</QXZ>
|
||||
inbound_groups-customer_chat_link Customer Chat Link <QXZ>Clicking this link will take you to the customer chat interface for this in-group. You can use this link as a direct link on your website for a customer chat feature. The first link will go to a page in an IFRAME, the Second Link will go directly to a page that you can put into your own IFRAME. The Chat URL System Setting should look like one of these links without what is after the question mark.</QXZ>
|
||||
inbound_groups-custom_fields Custom In-Group Fields <QXZ>These five custom In-Group fields allow you to define variables that can be used in agent scripts, webforms and Dispo Call URL variables for calls handled through this Inbound Group on a per-ingroup basis. These variables can be called with --A--ig_custom_one--B-- for the Custom 1 field. Default is blank.</QXZ>
|
||||
inbound_dids-did_pattern DID Extension <QXZ>This is the number, extension or DID that will trigger this entry and that you will route within the system using this function. There is a reserved default DID that you can use which is just the word -default- without the dashes, that will allows you to send any call that does not match any other existing patterns to the default DID.</QXZ>
|
||||
inbound_dids-did_description DID Description <QXZ>This is the description of the DID routing entry.</QXZ>
|
||||
inbound_dids-did_carrier_description DID Carrier Description <QXZ>This is another description field for the DID, to be used to describe the carrier of this DID. It is not used for any other purpose in the system.</QXZ>
|
||||
|
||||
@@ -1146,7 +1146,7 @@ function UpdateCallback(callback_id, recipient, CBuser)
|
||||
{
|
||||
xmlhttp = new XMLHttpRequest();
|
||||
var update_query = "&view_epoch="+timestamp+"&qc_action=update_callback&qc_log_id="+qc_log_id+"&callback_id="+callback_id+"&recipient="+recipient+"&CBuser="+CBuser;
|
||||
// alert(update_query); return false;
|
||||
/// alert(update_query); // return false;
|
||||
xmlhttp.open('POST', 'qc_module_actions.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(update_query);
|
||||
@@ -1644,12 +1644,12 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br>"; # <form action=$PHP_SELF method=POST>
|
||||
echo "<br>($rowx[9])"; # <form action=$PHP_SELF method=POST>
|
||||
echo "<TR BGCOLOR=\"#E6E6E6\"><TD align=center colspan=2><FONT class='standard'>";
|
||||
echo "<input type=hidden name=CBchangeANYtoUSER value=\"YES\">";
|
||||
echo "<input type=hidden name=DB value=\"$DB\">";
|
||||
echo "<input type=hidden name=lead_id value=\"$lead_id\">";
|
||||
echo "<input type=hidden name=callback_id value=\"$rowx[0]\">";
|
||||
# echo "<input type=hidden name=DB value=\"$DB\">";
|
||||
# echo "<input type=hidden name=lead_id value=\"$lead_id\">";
|
||||
# echo "<input type=hidden name=callback_id value=\"$rowx[0]\">";
|
||||
echo _QXZ("New Callback Owner UserID").": <input class='cust_form' type=text name=CBuser id=CBuser size=8 maxlength=20 value=\"$rowx[8]\"> ";
|
||||
echo "<input style='background-color:#$SSbutton_color;width:270px' type=button onClick=\"UpdateCallback(this.form.callback_id.value, 'USERONLY', this.form.CBuser.value)\" name=submit value=\""._QXZ("CHANGE TO USERONLY CALLBACK")."\"><input type=hidden name=viewtime value='$STARTtime' /></font></TD></TR>"; # </form>
|
||||
}
|
||||
@@ -1777,7 +1777,8 @@ else
|
||||
echo __LINE__."";
|
||||
}
|
||||
//Modifed text to allow for other than CBHOLD via custom statuses with scheduled callback chosen
|
||||
echo "<BR>"._QXZ("If you want to change this lead to a scheduled callback, first change the Disposition to CBHOLD or similar, then submit and you will be able to set the callback date and time.")."<BR>";
|
||||
# echo "<BR>"._QXZ("If you want to change this lead to a scheduled callback, first change the Disposition to CBHOLD or similar, then submit and you will be able to set the callback date and time.")."<BR>";
|
||||
echo "<BR>"._QXZ("This lead is not currently a recognized callback status, such as CALLBK or CBHOLD, or a campaign or system status where the \"scheduled callback\" parameter is set to 'Y'.")."<BR>";
|
||||
}
|
||||
echo "</TD></TR></TABLE>";
|
||||
echo "</center></span>";
|
||||
|
||||
Reference in New Issue
Block a user