fixed issues with other language translations and scheduled callbacks and ALLCALLS recordings
git-svn-id: svn://192.168.202.10@114 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -53,7 +53,8 @@
|
||||
# 60104-1347 - Added basic layout for favorites editing frame
|
||||
# 60105-1124 - Finished Favorites frame and added DB submission
|
||||
# 60112-1622 - Several formatting changes
|
||||
# 60421-1043 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
||||
# 60421-1357 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
||||
# 60619-1103 - Added variable filters to close security holes for login form
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -87,8 +88,16 @@ $user_abb = "$user$user$user$user";
|
||||
while ( (strlen($user_abb) > 4) and ($forever_stop < 200) )
|
||||
{$user_abb = eregi_replace("^.","",$user_abb); $forever_stop++;}
|
||||
|
||||
$version = '1.1.11';
|
||||
$build = '60421-1043';
|
||||
$version = '1.1.12';
|
||||
$build = '60619-1103';
|
||||
|
||||
### security strip all non-alphanumeric characters out of the variables ###
|
||||
$DB=ereg_replace("[^0-9a-z]","",$DB);
|
||||
$phone_login=ereg_replace("[^0-9a-zA-Z]","",$phone_login);
|
||||
$phone_pass=ereg_replace("[^0-9a-zA-Z]","",$phone_pass);
|
||||
$user=ereg_replace("[^0-9a-zA-Z]","",$user);
|
||||
$pass=ereg_replace("[^0-9a-zA-Z]","",$pass);
|
||||
|
||||
|
||||
if ($force_logout)
|
||||
{
|
||||
@@ -363,8 +372,8 @@ else
|
||||
while ($favorites_count > $o)
|
||||
{
|
||||
$stmt="SELECT fullname,protocol from phones where extension = '$favorites[$o]' and server_ip='$server_ip';";
|
||||
$rsltx=mysql_query($stmt, $link);
|
||||
$rowx=mysql_fetch_row($rsltx);
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
$favorites_names[$o] = $rowx[0];
|
||||
$favorites_listX .= "$rowx[1]/$favorites[$o],";
|
||||
$o++;
|
||||
@@ -1516,7 +1525,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var conv_start=0;
|
||||
if (out_calls > 0)
|
||||
{
|
||||
var out_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\">ΗΜΕΡΟΜΗΝΙΑ/ΧΡΟΝΟΣ ΚΛΗΣΗΣ</td><td><font class=\"log_title\">ΑΡΙΘΜΟΣ</td><td align=right><font class=\"log_title\">ΜΗΚΟΣ (M:SS)</td><td><font class=\"log_title\"> </td></tr>"
|
||||
var out_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> ΗΜΕΡΟΜΗΝΙΑ/ΧΡΟΝΟΣ ΚΛΗΣΗΣ</td><td><font class=\"log_title\">ΑΡΙΘΜΟΣ</td><td align=right><font class=\"log_title\">ΜΗΚΟΣ (M:SS)</td><td><font class=\"log_title\"> </td></tr>"
|
||||
while (loop_ct < out_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -1544,7 +1553,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var conv_start=0;
|
||||
if (in_calls > 0)
|
||||
{
|
||||
var in_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\">ΗΜΕΡΟΜΗΝΙΑ/ΧΡΟΝΟΣ ΚΛΗΣΗΣ</td><td><font class=\"log_title\">ΣΕ-ΑΡΙΘΜΟ</td><td COLSPAN=2><font class=\"log_title\">ΚΛΗΣΗERID</td><td align=right><font class=\"log_title\">ΜΗΚΟΣ</td><td><font class=\"log_title\"> </td></tr>"
|
||||
var in_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> ΗΜΕΡΟΜΗΝΙΑ/ΧΡΟΝΟΣ ΚΛΗΣΗΣ</td><td><font class=\"log_title\">ΣΕ-ΑΡΙΘΜΟ</td><td COLSPAN=2><font class=\"log_title\">CALLERID</td><td align=right><font class=\"log_title\">ΜΗΚΟΣ</td><td><font class=\"log_title\"> </td></tr>"
|
||||
while (loop_ct < in_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
|
||||
@@ -372,7 +372,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
$affected_rows=1;
|
||||
$CBleadIDset=1;
|
||||
|
||||
$stmt = "UPDATE vicidial_callbacks set status='INACTIVE' where callback_id='$callback_id';";
|
||||
$stmt = "UPDATE vicidial_callbacks set status='INACTIVE' where lead_id='$lead_id' and status NOT IN('INACTIVE','DEAD','ARCHIVE');";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
@@ -493,7 +493,7 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
|
||||
$called_count++;
|
||||
|
||||
### flag the lead as called and change it's status to INΚΛΗΣΗ
|
||||
### flag the lead as called and change it's status to INCALL
|
||||
$stmt = "UPDATE vicidial_list set status='INCALL', called_since_last_reset='Y', called_count='$called_count',user='$user' where lead_id='$lead_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
@@ -603,7 +603,7 @@ if ($ACTION == 'manDiaLskip')
|
||||
else
|
||||
{
|
||||
$called_count = ($called_count - 1);
|
||||
### flag the lead as called and change it's status to INΚΛΗΣΗ
|
||||
### flag the lead as called and change it's status to INCALL
|
||||
$stmt = "UPDATE vicidial_list set status='$stage', called_count='$called_count',user='$user' where lead_id='$lead_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
@@ -626,7 +626,7 @@ if ($ACTION == 'manDiaLonly')
|
||||
if ( (strlen($conf_exten)<1) || (strlen($campaign)<1) || (strlen($ext_context)<1) || (strlen($phone_number)<1) || (strlen($lead_id)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "ΚΛΗΣΗ NOT PLACED\n";
|
||||
echo " ΚΛΗΣΗ NOT PLACED\n";
|
||||
echo "Conf Exten $conf_exten or campaign $campaign or ext_context $ext_context δεν ισχύει\n";
|
||||
exit;
|
||||
}
|
||||
@@ -758,7 +758,7 @@ if ($stage == "start")
|
||||
|
||||
# if ($affected_rows > 0)
|
||||
# {
|
||||
# echo "ΚΛΗΣΗ_LOG Εισαγωγή : $uniqueid|$channel|$NOW_TIME";
|
||||
# echo "CALL_LOG Εισαγωγή : $uniqueid|$channel|$NOW_TIME";
|
||||
# }
|
||||
# else
|
||||
# {
|
||||
@@ -979,7 +979,7 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
if (strlen($call_server_ip)<7) {$call_server_ip = $server_ip;}
|
||||
echo "1\n" . $lead_id . '|' . $uniqueid . '|' . $callerid . '|' . $channel . '|' . $call_server_ip . "|\n";
|
||||
|
||||
### update the agent status to INΚΛΗΣΗ in vicidial_live_agents
|
||||
### update the agent status to INCALL in vicidial_live_agents
|
||||
$stmt = "UPDATE vicidial_live_agents set status='INCALL',last_call_time='$NOW_TIME' where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
@@ -1021,19 +1021,19 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$called_count = trim("$row[30]");
|
||||
}
|
||||
|
||||
### update the lead status to INΚΛΗΣΗ
|
||||
### update the lead status to INCALL
|
||||
$stmt = "UPDATE vicidial_list set status='INCALL', user='$user' where lead_id='$lead_id';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
### update the log status to INΚΛΗΣΗ
|
||||
### update the log status to INCALL
|
||||
$stmt = "UPDATE vicidial_log set user='$user', comments='AUTO', list_id='$list_id', status='INCALL' where lead_id='$lead_id' and uniqueid='$uniqueid';";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
if (eregi("CLOSER",$campaign))
|
||||
{
|
||||
### update the vicidial_closer_log user to INΚΛΗΣΗ
|
||||
### update the vicidial_closer_log user to INCALL
|
||||
$stmt = "UPDATE vicidial_closer_log set user='$user', comments='AUTO', list_id='$list_id', status='INCALL' where lead_id='$lead_id' order by closecallid desc limit 1;";
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
@@ -1181,9 +1181,9 @@ if ($ACTION == 'VDADcheckINCOMING')
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
### If ΚΛΗΣΗBK, change vicidial_callback record to INACTIVE
|
||||
if ($dispo == 'ΚΛΗΣΗBK')
|
||||
if (eregi("CALLBK|CBHΠΑΛΑΙΟ", $dispo))
|
||||
{
|
||||
$stmt="UPDATE vicidial_callbacks set status='INACTIVE' where lead_id='$lead_id' order by callback_id desc LIMIT 1;";
|
||||
$stmt="UPDATE vicidial_callbacks set status='INACTIVE' where lead_id='$lead_id';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
|
||||
@@ -111,6 +111,7 @@
|
||||
# 60608-1453 - Added CLOSER campaign allowable in-groups limitations
|
||||
# 60609-1123 - Added add-number-to-DNC-list function and manual dial check DNC
|
||||
# 60619-1047 - Added variable filters to close security holes for login form
|
||||
# 60804-1710 - fixed scheduled CALLBK for other languages build
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -156,8 +157,8 @@ if (isset($_GET["relogin"])) {$relogin=$_GET["relogin"];}
|
||||
|
||||
$forever_stop=0;
|
||||
|
||||
$version = '1.1.85';
|
||||
$build = '60619-1047';
|
||||
$version = '1.1.86';
|
||||
$build = '60804-1710';
|
||||
|
||||
if ($force_logout)
|
||||
{
|
||||
@@ -177,7 +178,7 @@ $random = (rand(1000000, 9999999) + 10000000);
|
||||
|
||||
$conf_silent_prefix = '7'; # vicidial_conferences prefix to enter silently
|
||||
$HKuser_level = '5'; # minimum vicidial user_level for HotKeys
|
||||
#$campaign_login_list = '1'; # show drop-down list of campaigns at login
|
||||
$campaign_login_list = '1'; # show drop-down list of campaigns at login
|
||||
$manual_dial_preview = '1'; # allow preview lead option when manual dial
|
||||
$multi_line_comments = '1'; # set to 1 to allow multi-line comment box
|
||||
$user_login_first = '0'; # set to 1 to have the vicidial_user login before the phone login
|
||||
@@ -1319,23 +1320,23 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var AgainCalLSecondS = '';
|
||||
var AgaiNCalLCID = '';
|
||||
var CB_count_check = 60;
|
||||
var agentcallsstatus = '<? echo $agentcallsstatus ?>'
|
||||
var campagentstatctmax = '<? echo $campagentstatctmax ?>'
|
||||
var campagentstatct = '0'
|
||||
var agentcallsstatus = '<? echo $agentcallsstatus ?>';
|
||||
var campagentstatctmax = '<? echo $campagentstatctmax ?>';
|
||||
var campagentstatct = '0';
|
||||
var manual_dial_in_progress = 0;
|
||||
var auto_dial_alt_dial = 0;
|
||||
var reselect_preview_dial = 0;
|
||||
var reselect_alt_dial = 0;
|
||||
var alt_dial_active = 0;
|
||||
var mdnLisT_id = '999';
|
||||
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>'
|
||||
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>'
|
||||
var agentcall_manual = '<? echo $agentcall_manual ?>'
|
||||
var manual_dial_preview = '<? echo $manual_dial_preview ?>'
|
||||
var starting_alt_phone_dialing = '<? echo $alt_phone_dialing ?>'
|
||||
var alt_phone_dialing = '<? echo $alt_phone_dialing ?>'
|
||||
var wrapup_δευτερόλεπτα = '<? echo $wrapup_δευτερόλεπτα ?>'
|
||||
var wrapup_message = '<? echo $wrapup_message ?>'
|
||||
var VU_vicidial_transfers = '<? echo $VU_vicidial_transfers ?>';
|
||||
var agentonly_callbacks = '<? echo $agentonly_callbacks ?>';
|
||||
var agentcall_manual = '<? echo $agentcall_manual ?>';
|
||||
var manual_dial_preview = '<? echo $manual_dial_preview ?>';
|
||||
var starting_alt_phone_dialing = '<? echo $alt_phone_dialing ?>';
|
||||
var alt_phone_dialing = '<? echo $alt_phone_dialing ?>';
|
||||
var wrapup_δευτερόλεπτα = '<? echo $wrapup_δευτερόλεπτα ?>';
|
||||
var wrapup_message = '<? echo $wrapup_message ?>';
|
||||
var wrapup_counter = 0;
|
||||
var wrapup_waiting = 0;
|
||||
var use_internal_dnc = '<? echo $use_internal_dnc ?>'
|
||||
@@ -2258,7 +2259,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var CB_calls = all_CBs_array[0];
|
||||
var loop_ct=0;
|
||||
var conv_start=0;
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\">ΚΛΗΣΗBACK DATE/TIME</td><td><font class=\"log_title\">ΑΡΙΘΜΟΣ</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\">ΚΑΤΑΣΤΑΣΗ</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST ΗΜΕΡΟΜΗΝΙΑ/ΧΡΟΝΟΣ ΚΛΗΣΗΣ</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
var CB_HTML = "<table width=610><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> ΚΛΗΣΗBACK DATE/TIME</td><td><font class=\"log_title\">ΑΡΙΘΜΟΣ</td><td><font class=\"log_title\">NAME</td><td><font class=\"log_title\">ΚΑΤΑΣΤΑΣΗ</td><td align=right><font class=\"log_title\">CAMPAIGN</td><td><font class=\"log_title\">LAST ΗΜΕΡΟΜΗΝΙΑ/ΧΡΟΝΟΣ ΚΛΗΣΗΣ</td><td align=left><font class=\"log_title\"> COMMENTS</td></tr>"
|
||||
while (loop_ct < CB_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -2675,7 +2676,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
VDIC_web_form_address = VICIDiaL_web_form_address;
|
||||
|
||||
if (LeaDPreVDispO == 'ΚΛΗΣΗBK')
|
||||
if (LeaDPreVDispO == 'CALLBK')
|
||||
{
|
||||
document.getElementById("CusTInfOSpaN").innerHTML = " <B> PREVIOUS ΚΛΗΣΗBACK </B>";
|
||||
document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor;
|
||||
@@ -2697,7 +2698,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"../agc/images/vdc_LB_hangupcustomer_el.gif\" border=0 alt=\"΄Κλείσιμο Πελάτη\"></a>";
|
||||
|
||||
if (campaign_recording == 'ALLΚΛΗΣΗS')
|
||||
if (campaign_recording == 'ALLCALLS')
|
||||
{all_record = 'YES';}
|
||||
|
||||
if ( (view_scripts == 1) && (campaign_script.length > 0) )
|
||||
@@ -2889,7 +2890,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
var MDOnextResponse_array=MDOnextResponse.split("\n");
|
||||
MDnextCID = MDOnextResponse_array[0];
|
||||
if (MDnextCID == "ΚΛΗΣΗ NOT PLACED")
|
||||
if (MDnextCID == " ΚΛΗΣΗ NOT PLACED")
|
||||
{
|
||||
alert("η κλήση δεν τοποθετήθηκε, υπήρξε ένα λάθος:\n" + MDOnextResponse);
|
||||
}
|
||||
@@ -2902,7 +2903,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
document.getElementById("HangupControl").innerHTML = "<a href=\"#\" onclick=\"dialedcall_send_hangup();\"><IMG SRC=\"../agc/images/vdc_LB_hangupcustomer_el.gif\" border=0 alt=\"΄Κλείσιμο Πελάτη\"></a>";
|
||||
|
||||
if (campaign_recording == 'ALLΚΛΗΣΗS')
|
||||
if (campaign_recording == 'ALLCALLS')
|
||||
{all_record = 'YES';}
|
||||
|
||||
if ( (view_scripts == 1) && (campaign_script.length > 0) )
|
||||
@@ -3116,7 +3117,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
lead_dial_number = document.vicidial_form.phone_number.value;
|
||||
document.getElementById("MainStatuSSpan").innerHTML = " Εισερχόμενο: " + document.vicidial_form.phone_number.value + " UID: " + CIDcheck + " " + VDIC_fronter;
|
||||
|
||||
if (LeaDPreVDispO == 'ΚΛΗΣΗBK')
|
||||
if (LeaDPreVDispO == 'CALLBK')
|
||||
{
|
||||
document.getElementById("CusTInfOSpaN").innerHTML = " <B> PREVIOUS ΚΛΗΣΗBACK </B>";
|
||||
document.getElementById("CusTInfOSpaN").style.background = CusTCB_bgcolor;
|
||||
@@ -3212,7 +3213,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
document.getElementById("WebFormSpan").innerHTML = "<a href=\"" + VDIC_web_form_address + web_form_vars + "\" target=\"vdcwebform\" onMouseOver=\"WebFormRefresH();\"><IMG SRC=\"../agc/images/vdc_LB_webform_el.gif\" border=0 alt=\"Σελίδα Διαδικτύου\"></a>\n";
|
||||
|
||||
if (campaign_recording == 'ALLΚΛΗΣΗS')
|
||||
if (campaign_recording == 'ALLCALLS')
|
||||
{all_record = 'YES';}
|
||||
|
||||
if ( (view_scripts == 1) && (CalL_ScripT_id.length > 0) )
|
||||
@@ -3715,7 +3716,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
{
|
||||
AgentDispoing = 1;
|
||||
var VD_statuses_ct_half = parseInt(VD_statuses_ct / 2);
|
||||
var dispo_HTML = "<table cellpadding=5 cellspacing=5 width=500><tr><td colspan=2><B>ΚΛΗΣΗ DISPOSITION</B></td></tr><tr><td bgcolor=\"#99FF99\" height=300 width=240 valign=top><font class=\"log_text\"><span id=DispoSelectA>";
|
||||
var dispo_HTML = "<table cellpadding=5 cellspacing=5 width=500><tr><td colspan=2><B> ΚΛΗΣΗ DISPOSITION</B></td></tr><tr><td bgcolor=\"#99FF99\" height=300 width=240 valign=top><font class=\"log_text\"><span id=DispoSelectA>";
|
||||
var loop_ct = 0;
|
||||
while (loop_ct < VD_statuses_ct)
|
||||
{
|
||||
@@ -3776,7 +3777,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
document.getElementById("CusTInfOSpaN").innerHTML = "";
|
||||
document.getElementById("CusTInfOSpaN").style.background = panel_bgcolor;
|
||||
|
||||
if ( (DispoChoice == 'ΚΛΗΣΗBK') && (scheduled_callbacks > 0) ) {showDiv('CallBackSelectBox');}
|
||||
if ( (DispoChoice == 'CALLBK') && (scheduled_callbacks > 0) ) {showDiv('CallBackSelectBox');}
|
||||
else
|
||||
{
|
||||
var xmlhttp=false;
|
||||
|
||||
Reference in New Issue
Block a user