added updated translated versions to 2.0.4 branch
added welcome_languages.php page fixes to translation files git-svn-id: svn://192.168.202.10@973 3d104415-ff17-0410-8863-d5cf3c621b8a
|
After Width: | Height: | Size: 9.4 KiB |
|
After Width: | Height: | Size: 523 B |
|
After Width: | Height: | Size: 334 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 585 B |
|
After Width: | Height: | Size: 577 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
@@ -70,6 +70,7 @@
|
||||
# - $omit_phone_code - ('Y','N')
|
||||
# - $no_delete_sessions - ('0','1')
|
||||
# - $LogouTKicKAlL - ('0','1');
|
||||
# - $manual_dial_filter = ('NONE','CAMPLISTS','DNC','CAMPLISTS_DNC');
|
||||
|
||||
# CHANGELOG:
|
||||
# 50629-1044 - First build of script
|
||||
@@ -143,10 +144,12 @@
|
||||
# 80128-1159 - fixed vicidial_log bugs
|
||||
# 80402-0121 - Fixes for manual dial transfers on some systems, removed /n persist flag
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80722-1000 - Fixed small bugs
|
||||
# 80815-1020 - Added manual dial list restriction option
|
||||
#
|
||||
|
||||
$version = '2.0.4-69';
|
||||
$build = '80424-0442';
|
||||
$version = '2.0.4-71';
|
||||
$build = '80815-1020';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -281,6 +284,8 @@ if (isset($_GET["status"])) {$status=$_GET["status"];}
|
||||
elseif (isset($_POST["status"])) {$status=$_POST["status"];}
|
||||
if (isset($_GET["LogouTKicKAlL"])) {$LogouTKicKAlL=$_GET["LogouTKicKAlL"];}
|
||||
elseif (isset($_POST["LogouTKicKAlL"])) {$LogouTKicKAlL=$_POST["LogouTKicKAlL"];}
|
||||
if (isset($_GET["manual_dial_filter"])) {$manual_dial_filter=$_GET["manual_dial_filter"];}
|
||||
elseif (isset($_POST["manual_dial_filter"])) {$manual_dial_filter=$_POST["manual_dial_filter"];}
|
||||
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -573,6 +578,33 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if (ereg("CAMPLISTS",$manual_dial_filter))
|
||||
{
|
||||
$stmt="SELECT list_id,active from vicidial_lists where campaign_id='$campaign'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$lists_to_parse = mysql_num_rows($rslt);
|
||||
$camp_lists='';
|
||||
$o=0;
|
||||
while ($lists_to_parse > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
if (ereg("Y", $rowx[1])) {$active_lists++; $camp_lists .= "'$rowx[0]',";}
|
||||
if (ereg("N", $rowx[1])) {$inactive_lists++;}
|
||||
$o++;
|
||||
}
|
||||
$camp_lists = eregi_replace(".$","",$camp_lists);
|
||||
|
||||
$stmt="SELECT count(*) FROM vicidial_list where phone_number='$phone_number' and list_id IN($camp_lists);";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
if ($row[0] < 1)
|
||||
{
|
||||
echo "NUMBER NOT IN CAMPLISTS\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if ($stage=='lookup')
|
||||
{
|
||||
$stmt="SELECT lead_id FROM vicidial_list where phone_number='$phone_number' order by modify_date desc LIMIT 1;";
|
||||
|
||||
@@ -177,10 +177,14 @@
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
# 80722-1000 - Fixed quote display bug
|
||||
# 80815-1015 - Added manual dial list restriction option
|
||||
# 80823-2127 - Fixed form scroll for IE
|
||||
# 81012-0857 - Marker for 2.0.4.1rc5 release
|
||||
#
|
||||
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
$version = '2.0.4-152';
|
||||
$build = '81012-0857';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -285,6 +289,7 @@ $PreseT_DiaL_LinKs = '1'; # set to 1 to show a DIAL link for Dial Presets
|
||||
$LogiNAJAX = '1'; # set to 1 to do lookups
|
||||
$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
|
||||
$LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout
|
||||
$CamPManDiaLLocK = '0'; # set to 1 to lock out all manual dials to only numbers in camp lists
|
||||
|
||||
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
|
||||
|
||||
@@ -348,6 +353,11 @@ echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build -->\n";
|
||||
|
||||
if ($CamPManDiaLLocK > 0)
|
||||
{$manual_dial_filter = "CAMPLISTS_ONLY";}
|
||||
else
|
||||
{$manual_dial_filter = "NONE";}
|
||||
|
||||
if ($campaign_login_list > 0)
|
||||
{
|
||||
$camp_form_code = "<select size=1 name=VD_campaign id=VD_campaign onFocus=\"login_allowable_campaigns()\">\n";
|
||||
@@ -1819,6 +1829,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var LogouTKicKAlL = '<? echo $LogouTKicKAlL ?>';
|
||||
var flag_channels = '<? echo $flag_channels ?>';
|
||||
var flag_string = '<? echo $flag_string ?>';
|
||||
var manual_dial_filter = '<? echo $manual_dial_filter ?>';
|
||||
var useIE = '<? echo $useIE ?>';
|
||||
var DiaLControl_auto_HTML = "<IMG SRC=\"./images/vdc_LB_pause_OFF.gif\" border=0 alt=\"Pause\"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"./images/vdc_LB_resume.gif\" border=0 alt=\"Resume\"></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"./images/vdc_LB_pause.gif\" border=0 alt=\"Pause\"></a><IMG SRC=\"./images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resume\">";
|
||||
var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"./images/vdc_LB_pause_OFF.gif\" border=0 alt=\"Pause\"><IMG SRC=\"./images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resume\">";
|
||||
@@ -3365,7 +3377,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code;
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code + "&manual_dial_filter=" + manual_dial_filter;
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(manDiaLnext_query);
|
||||
@@ -3379,14 +3391,36 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
var MDnextResponse_array=MDnextResponse.split("\n");
|
||||
MDnextCID = MDnextResponse_array[0];
|
||||
if ( (MDnextCID == "HOPPER EMPTY") || (MDnextCID == "DNC NUMBER") )
|
||||
var regMNCvar = new RegExp("HOPPER","ig");
|
||||
var regMDFvarDNC = new RegExp("DNC","ig");
|
||||
var regMDFvarCAMP = new RegExp("CAMPLISTS","ig");
|
||||
if ( (MDnextCID.match(regMNCvar)) || (MDnextCID.match(regMDFvarDNC)) || (MDnextCID.match(regMDFvarCAMP)) )
|
||||
{
|
||||
if (MDnextCID == "HOPPER EMPTY")
|
||||
{alert("No more leads in the hopper for campaign:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
var alert_displayed=0;
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
auto_dial_level=starting_dial_level;
|
||||
MainPanelToFront();
|
||||
CalLBacKsCounTCheck();
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
|
||||
if (MDnextCID.match(regMNCvar))
|
||||
{alert("No more leads in the hopper for campaign:\n" + campaign); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarDNC))
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarCAMP))
|
||||
{alert("This phone number is not in the campaign lists:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (alert_displayed==0)
|
||||
{alert("Unspecified error:\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;}
|
||||
|
||||
if (starting_dial_level == 0)
|
||||
{
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"./images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Dial Next Number\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
||||
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML;
|
||||
reselect_alt_dial = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6439,7 +6473,8 @@ else
|
||||
.skb_text {font-size: 13px; font-family: sans-serif; font-weight: bold;}
|
||||
.ON_conf {font-size: 11px; font-family: monospace; color: black; background: #FFFF99}
|
||||
.OFF_conf {font-size: 11px; font-family: monospace; color: black; background: #FFCC77}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: hidden}
|
||||
.cust_form_text {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
|
||||
-->
|
||||
</style>
|
||||
@@ -6889,7 +6924,7 @@ RECORD ID: <font class="body_small"><span id="RecorDID"></span></font><BR>
|
||||
<font class="body_text">
|
||||
<?
|
||||
if ( ($multi_line_comments) )
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form\" value=\"\"></TEXTAREA>\n";}
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form_text\" value=\"\"></TEXTAREA>\n";}
|
||||
else
|
||||
{echo "<input type=text size=65 name=comments maxlength=255 class=\"cust_form\" value=\"\">\n";}
|
||||
?>
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
# - $omit_phone_code - ('Y','N')
|
||||
# - $no_delete_sessions - ('0','1')
|
||||
# - $LogouTKicKAlL - ('0','1');
|
||||
# - $manual_dial_filter = ('NONE','CAMPLISTS','DNC','CAMPLISTS_DNC');
|
||||
|
||||
# CHANGELOG:
|
||||
# 50629-1044 - First build of script
|
||||
@@ -143,10 +144,12 @@
|
||||
# 80128-1159 - fixed vicidial_log bugs
|
||||
# 80402-0121 - Fixes for manual dial transfers on some systems, removed /n persist flag
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80722-1000 - Fixed small bugs
|
||||
# 80815-1020 - Added manual dial list restriction option
|
||||
#
|
||||
|
||||
$version = '2.0.4-69';
|
||||
$build = '80424-0442';
|
||||
$version = '2.0.4-71';
|
||||
$build = '80815-1020';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -281,6 +284,8 @@ if (isset($_GET["status"])) {$status=$_GET["status"];}
|
||||
elseif (isset($_POST["status"])) {$status=$_POST["status"];}
|
||||
if (isset($_GET["LogouTKicKAlL"])) {$LogouTKicKAlL=$_GET["LogouTKicKAlL"];}
|
||||
elseif (isset($_POST["LogouTKicKAlL"])) {$LogouTKicKAlL=$_POST["LogouTKicKAlL"];}
|
||||
if (isset($_GET["manual_dial_filter"])) {$manual_dial_filter=$_GET["manual_dial_filter"];}
|
||||
elseif (isset($_POST["manual_dial_filter"])) {$manual_dial_filter=$_POST["manual_dial_filter"];}
|
||||
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -573,6 +578,33 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if (ereg("CAMPLISTS",$manual_dial_filter))
|
||||
{
|
||||
$stmt="SELECT list_id,active from vicidial_lists where campaign_id='$campaign'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$lists_to_parse = mysql_num_rows($rslt);
|
||||
$camp_lists='';
|
||||
$o=0;
|
||||
while ($lists_to_parse > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
if (ereg("Y", $rowx[1])) {$active_lists++; $camp_lists .= "'$rowx[0]',";}
|
||||
if (ereg("N", $rowx[1])) {$inactive_lists++;}
|
||||
$o++;
|
||||
}
|
||||
$camp_lists = eregi_replace(".$","",$camp_lists);
|
||||
|
||||
$stmt="SELECT count(*) FROM vicidial_list where phone_number='$phone_number' and list_id IN($camp_lists);";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
if ($row[0] < 1)
|
||||
{
|
||||
echo "NUMERO NOT IN CAMPLISTS\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if ($stage=='lookup')
|
||||
{
|
||||
$stmt="SELECT lead_id FROM vicidial_list where phone_number='$phone_number' order by modify_date desc LIMIT 1;";
|
||||
|
||||
@@ -177,10 +177,14 @@
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
# 80722-1000 - Fixed quote display bug
|
||||
# 80815-1015 - Added manual dial list restriction option
|
||||
# 80823-2127 - Fixed form scroll for IE
|
||||
# 81012-0857 - Marker for 2.0.4.1rc5 release
|
||||
#
|
||||
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
$version = '2.0.4-152';
|
||||
$build = '81012-0857';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -285,6 +289,7 @@ $PreseT_DiaL_LinKs = '1'; # set to 1 to show a DISCAR link for Dial Presets
|
||||
$LogiNAJAX = '1'; # set to 1 to do lookups
|
||||
$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
|
||||
$LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout
|
||||
$CamPManDiaLLocK = '0'; # set to 1 to lock out all manual dials to only numbers in camp lists
|
||||
|
||||
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
|
||||
|
||||
@@ -348,6 +353,11 @@ echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSÃO: $version CONFIGURAÇÃO: $build -->\n";
|
||||
|
||||
if ($CamPManDiaLLocK > 0)
|
||||
{$manual_dial_filter = "CAMPLISTS_ONLY";}
|
||||
else
|
||||
{$manual_dial_filter = "NONE";}
|
||||
|
||||
if ($campaign_login_list > 0)
|
||||
{
|
||||
$camp_form_code = "<select size=1 name=VD_campaign id=VD_campaign onFocus=\"login_allowable_campaigns()\">\n";
|
||||
@@ -1819,6 +1829,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var LogouTKicKAlL = '<? echo $LogouTKicKAlL ?>';
|
||||
var flag_channels = '<? echo $flag_channels ?>';
|
||||
var flag_string = '<? echo $flag_string ?>';
|
||||
var manual_dial_filter = '<? echo $manual_dial_filter ?>';
|
||||
var useIE = '<? echo $useIE ?>';
|
||||
var DiaLControl_auto_HTML = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF_ptbr.gif\" border=0 alt=\"Pausa\"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"../agc/images/vdc_LB_resume_ptbr.gif\" border=0 alt=\"Início\"></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"../agc/images/vdc_LB_pause_ptbr.gif\" border=0 alt=\"Pausa\"></a><IMG SRC=\"../agc/images/vdc_LB_resume_OFF_ptbr.gif\" border=0 alt=\"Início\">";
|
||||
var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF_ptbr.gif\" border=0 alt=\"Pausa\"><IMG SRC=\"../agc/images/vdc_LB_resume_OFF_ptbr.gif\" border=0 alt=\"Início\">";
|
||||
@@ -3365,7 +3377,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code;
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code + "&manual_dial_filter=" + manual_dial_filter;
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(manDiaLnext_query);
|
||||
@@ -3379,14 +3391,36 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
var MDnextResponse_array=MDnextResponse.split("\n");
|
||||
MDnextCID = MDnextResponse_array[0];
|
||||
if ( (MDnextCID == "LISTA DE DISCAGEM VAZIA") || (MDnextCID == "DNC NUMERO") )
|
||||
var regMNCvar = new RegExp("HOPPER","ig");
|
||||
var regMDFvarDNC = new RegExp("DNC","ig");
|
||||
var regMDFvarCAMP = new RegExp("CAMPLISTS","ig");
|
||||
if ( (MDnextCID.match(regMNCvar)) || (MDnextCID.match(regMDFvarDNC)) || (MDnextCID.match(regMDFvarCAMP)) )
|
||||
{
|
||||
if (MDnextCID == "LISTA DE DISCAGEM VAZIA")
|
||||
{alert("Não existem mais registros na fila de discagem dessa campanha:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
var alert_displayed=0;
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
auto_dial_level=starting_dial_level;
|
||||
MainPanelToFront();
|
||||
CalLBacKsCounTCheck();
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber_ptbr.gif\" border=0 alt=\"Discar proximo número\"></a>";
|
||||
if (MDnextCID.match(regMNCvar))
|
||||
{alert("Não existem mais registros na fila de discagem dessa campanha:\n" + campaign); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarDNC))
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarCAMP))
|
||||
{alert("This phone number is not in the campaign lists:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (alert_displayed==0)
|
||||
{alert("Unspecified error:\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;}
|
||||
|
||||
if (starting_dial_level == 0)
|
||||
{
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber_ptbr.gif\" border=0 alt=\"Discar proximo número\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
||||
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML;
|
||||
reselect_alt_dial = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6439,7 +6473,8 @@ else
|
||||
.skb_text {font-size: 13px; font-family: sans-serif; font-weight: bold;}
|
||||
.ON_conf {font-size: 11px; font-family: monospace; color: black; background: #FFFF99}
|
||||
.OFF_conf {font-size: 11px; font-family: monospace; color: black; background: #FFCC77}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: hidden}
|
||||
.cust_form_text {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
|
||||
-->
|
||||
</style>
|
||||
@@ -6889,7 +6924,7 @@ ID da gravação: <font class="body_small"><span id="RecorDID"></span></font><BR
|
||||
<font class="body_text">
|
||||
<?
|
||||
if ( ($multi_line_comments) )
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form\" value=\"\"></TEXTAREA>\n";}
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form_text\" value=\"\"></TEXTAREA>\n";}
|
||||
else
|
||||
{echo "<input type=text size=65 name=comments maxlength=255 class=\"cust_form\" value=\"\">\n";}
|
||||
?>
|
||||
|
||||
@@ -161,10 +161,10 @@ echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build ADD: $ADD server_ip: $server_ip-->\n";
|
||||
echo "<title>Liste Display: ";
|
||||
if ($ADD==1) {echo "Live Erweiterungen";}
|
||||
if ($ADD==2) {echo "Besetzte Erweiterungen";}
|
||||
if ($ADD==1) {echo "Live Nebenstellen";}
|
||||
if ($ADD==2) {echo "Besetzte Nebenstellen";}
|
||||
if ($ADD==3) {echo "Amtsleitungen";}
|
||||
if ($ADD==4) {echo "Lokale Erweiterungen";}
|
||||
if ($ADD==4) {echo "Lokale Nebenstellen";}
|
||||
if ($ADD==5) {echo "Konferenzen";}
|
||||
if ($ADD==99999) {echo "HILFE";}
|
||||
echo "</title>\n";
|
||||
|
||||
@@ -152,7 +152,7 @@ echo "<TD WIDTH=100 ALIGN=RIGHT VALIGN=TOP NOWRAP><a href=\"../agc_en/astguicli
|
||||
echo "<FORM ACTION=\"$agcPAGE\" METHOD=POST>\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<BR><BR><BR><CENTER><TABLE WIDTH=360 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCC2E0\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"../agc/images/agc_tab_astguiclient.gif\" RAND=0></TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"../agc/images/agc_tab_astguiclient.gif\" Border=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Login </TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1> </TD></TR>\n";
|
||||
@@ -185,7 +185,7 @@ echo "<TD WIDTH=100 ALIGN=RIGHT VALIGN=TOP NOWRAP><a href=\"../agc_en/astguicli
|
||||
$LOGfullname=$row[0];
|
||||
if ($WeBRooTWritablE > 0)
|
||||
{
|
||||
fwrite ($fp, "VICIWÄHLEN|GOOD|$date|$user|$pass|$ip|$browser|$LOGfullname|\n");
|
||||
fwrite ($fp, "VICIDIAL|GOOD|$date|$user|$pass|$ip|$browser|$LOGfullname|\n");
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
@@ -193,7 +193,7 @@ echo "<TD WIDTH=100 ALIGN=RIGHT VALIGN=TOP NOWRAP><a href=\"../agc_en/astguicli
|
||||
{
|
||||
if ($WeBRooTWritablE > 0)
|
||||
{
|
||||
fwrite ($fp, "VICIWÄHLEN|FAIL|$date|$user|$pass|$ip|$browser|$LOGfullname|\n");
|
||||
fwrite ($fp, "VICIDIAL|FAIL|$date|$user|$pass|$ip|$browser|$LOGfullname|\n");
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
@@ -219,7 +219,7 @@ echo "<INPUT TYPE=HIDDEN NAME=DB VALUE=\"$DB\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=user VALUE=\"$user\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=pass VALUE=\"$pass\">\n";
|
||||
echo "<BR><BR><BR><CENTER><TABLE WIDTH=360 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCC2E0\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"../agc/images/agc_tab_astguiclient.gif\" RAND=0></TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"../agc/images/agc_tab_astguiclient.gif\" Border=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Telefon Login </TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1> </TD></TR>\n";
|
||||
@@ -256,7 +256,7 @@ echo "<TD WIDTH=100 ALIGN=RIGHT VALIGN=TOP NOWRAP><a href=\"../agc_en/astguicli
|
||||
echo "<INPUT TYPE=HIDDEN NAME=user VALUE=\"$user\">\n";
|
||||
echo "<INPUT TYPE=HIDDEN NAME=pass VALUE=\"$pass\">\n";
|
||||
echo "<BR><BR><BR><CENTER><TABLE WIDTH=360 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCC2E0\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"../agc/images/agc_tab_astguiclient.gif\" RAND=0></TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"../agc/images/agc_tab_astguiclient.gif\" Border=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Telefon Login </TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><font size=1> <BR><FONT SIZE=3>Ihr Telefon Login ist nicht aktiv, bitte versuchen sie es noch einmal: <BR> </TD></TR>\n";
|
||||
@@ -490,9 +490,9 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var phone_pass = '<? echo $phone_pass ?>';
|
||||
var session_name = '<? echo $session_name ?>';
|
||||
var image_livecall_OFF = new Image();
|
||||
image_livecall_OFF.src="../agc/images/agc_live_call_OFF.gif";
|
||||
image_livecall_OFF.src="../agc/images/agc_live_call_OFF_de.jpg";
|
||||
var image_livecall_ON = new Image();
|
||||
image_livecall_ON.src="../agc/images/agc_live_call_ON.gif";
|
||||
image_livecall_ON.src="../agc/images/agc_live_call_ON_de.gif";
|
||||
var image_voicemail_OFF = new Image();
|
||||
image_voicemail_OFF.src="../agc/images/agc_check_voicemail_OFF.gif";
|
||||
var image_voicemail_ON = new Image();
|
||||
@@ -885,7 +885,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
else
|
||||
{
|
||||
bsr_continue=0;
|
||||
alert("Sie können nur ZAP Leitungen abhören:\n" + listenvalue);
|
||||
alert("Sie können nur ISDN Leitungen abhören:\n" + listenvalue);
|
||||
}
|
||||
}
|
||||
if (bsr_continue == '1')
|
||||
@@ -1195,7 +1195,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
{
|
||||
recLIST = recLIST + "|" + monitorchannelvalue;
|
||||
filename = filedate + "_" + user_abb;
|
||||
var rec_start_html = "<a href=\"#\" onclick=\"liverecording_send_recording('StopMonitor','" + monitorchannelvalue + "','" + taskspan + "','" + filename + "');return false;\">Stoppe Aufzeichnung";
|
||||
var rec_start_html = "<a href=\"#\" onclick=\"liverecording_send_recording('StopMonitor','" + monitorchannelvalue + "','" + taskspan + "','" + filename + "');return false;\">Aufnahme stoppen";
|
||||
document.getElementById(taskspan).innerHTML = rec_start_html;
|
||||
|
||||
}
|
||||
@@ -1257,7 +1257,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
recLIST = recLIST + "|" + taskconfrec;
|
||||
filename = filedate + "_" + user_abb;
|
||||
var channelrec = "Local/" + taskconfrec + "@" + ext_context;
|
||||
var conf_rec_start_html = "<a href=\"#\" onclick=\"conf_send_recording('StopMonitorConf','" + taskconfspan + "','" + taskconfrec + "','" + filename + "');return false;\">Stoppe Aufzeichnung</a>";
|
||||
var conf_rec_start_html = "<a href=\"#\" onclick=\"conf_send_recording('StopMonitorConf','" + taskconfspan + "','" + taskconfrec + "','" + filename + "');return false;\">Aufnahme stoppen</a>";
|
||||
document.getElementById(taskconfspan).innerHTML = conf_rec_start_html;
|
||||
|
||||
}
|
||||
@@ -1384,7 +1384,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var conv_start=3;
|
||||
if (live_calls > 0)
|
||||
{
|
||||
var live_calls_HTML = "<font face=\"Arial,Helvetica\"><B>LIVE ANRUFE AUF DIESEM TELEFON:</B></font><BR><table width=100%><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\">KUNDEN LEITUNG</td><td><font class=\"log_title\">ENTFERNTE LEITUNG</td><td><font class=\"log_title\">AUFNAHME</td><td><font class=\"log_title\">AUFLEGEN</td><td><font class=\"log_title\"VERBINDEN</td><td><font class=\"log_title\">PARK</td></tr>";
|
||||
var live_calls_HTML = "<font face=\"Arial,Helvetica\"><B>VERBUNDEN MIT DIESEM TELEFON:</B></font><BR><table width=100%><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\">KUNDEN LEITUNG</td><td><font class=\"log_title\">ENTFERNTE LEITUNG</td><td><font class=\"log_title\">AUFNAHME</td><td><font class=\"log_title\">AUFLEGEN</td><td><font class=\"log_title\"VERBINDEN</td><td><font class=\"log_title\">PARK</td></tr>";
|
||||
if ( (LCAcount > live_calls) || (LCAcount < live_calls) )
|
||||
{
|
||||
LCAe[0]=''; LCAe[1]=''; LCAe[2]=''; LCAe[3]=''; LCAe[4]=''; LCAe[5]='';
|
||||
@@ -1410,7 +1410,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
|
||||
var regx = new RegExp("\\|"+channelfieldBtrunk_array[1],"ig");
|
||||
if (recLIST.match(regx))
|
||||
{live_calls_HTML = live_calls_HTML + "<span id=\"recordlive" + loop_ct + "\"><a href=\"#\" onclick=\"liverecording_send_recording('StopMonitor','" + channelfieldBtrunk_array[1] + "','recordlive" + loop_ct + "');return false;\">Stoppe Aufzeichnung</span>";}
|
||||
{live_calls_HTML = live_calls_HTML + "<span id=\"recordlive" + loop_ct + "\"><a href=\"#\" onclick=\"liverecording_send_recording('StopMonitor','" + channelfieldBtrunk_array[1] + "','recordlive" + loop_ct + "');return false;\">Aufnahme stoppen</span>";}
|
||||
else
|
||||
{live_calls_HTML = live_calls_HTML + "<span id=\"recordlive" + loop_ct + "\"><a href=\"#\" onclick=\"liverecording_send_recording('Monitor','" + channelfieldBtrunk_array[1] + "','recordlive" + loop_ct + "');return false;\">Aufzeichnung</span>";}
|
||||
|
||||
@@ -1545,7 +1545,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var call_out_datetime = call_array[1];
|
||||
var call_out_number = call_array[2];
|
||||
var call_out_length = call_array[3];
|
||||
out_log_HTML = out_log_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + call_out_datetime + "</td><td><font class=\"log_text\">" + call_out_number + "</td><td align=right><font class=\"log_text\">" + call_out_length + " </td><td><font class=\"log_text\"><a href=\"#\" onclick=\"basic_originate_call('" + call_out_number + "');return false;\">WÄHLEN</a></td></tr>";
|
||||
out_log_HTML = out_log_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + call_out_datetime + "</td><td><font class=\"log_text\">" + call_out_number + "</td><td align=right><font class=\"log_text\">" + call_out_length + " </td><td><font class=\"log_text\"><a href=\"#\" onclick=\"basic_originate_call('" + call_out_number + "');return false;\">DIAL</a></td></tr>";
|
||||
|
||||
}
|
||||
out_log_HTML = out_log_HTML + "</table>";
|
||||
@@ -1575,7 +1575,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var call_in_idnum = call_array[3];
|
||||
var call_in_idname = call_array[4];
|
||||
var call_in_length = call_array[5];
|
||||
in_log_HTML = in_log_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + call_in_datetime + "</td><td><font class=\"log_text\">" + call_in_number + "</td><td><font class=\"log_text\">" + call_in_idnum + "</td><td><font class=\"log_text\">" + call_in_idname + "</td><td align=right><font class=\"log_text\">" + call_in_length + " </td><td><font class=\"log_text\"><a href=\"#\" onclick=\"basic_originate_call('" + call_in_idnum + "');return false;\">WÄHLEN</a></td></tr>";
|
||||
in_log_HTML = in_log_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + call_in_datetime + "</td><td><font class=\"log_text\">" + call_in_number + "</td><td><font class=\"log_text\">" + call_in_idnum + "</td><td><font class=\"log_text\">" + call_in_idname + "</td><td align=right><font class=\"log_text\">" + call_in_length + " </td><td><font class=\"log_text\"><a href=\"#\" onclick=\"basic_originate_call('" + call_in_idnum + "');return false;\">DIAL</a></td></tr>";
|
||||
|
||||
}
|
||||
in_log_HTML = in_log_HTML + "</table>";
|
||||
@@ -1762,7 +1762,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
show_reglink=1;
|
||||
reglink = "<a href=\"#\" onclick=\"conf_register_room('" + head_conf + "');return false;\">Register</a>";
|
||||
}
|
||||
var conf_head_HTML = "<font class=\"sh_text\">KONFERENZ " + head_conf + "</b></font><font class=\"sb_text\"> Registriert bei: " + head_reg + " " + reglink + " <a href=\"#\" onclick=\"basic_originate_call('" + head_conf + "','NO','NO');return false;\">Betrete Konferenz </a><BR><a href=\"#\" onclick=\"check_for_conf_calls('" + head_conf + "','1');return false;\">Aktualisieren </a> <span id=\"conf_rec_link\"><a href=\"#\" onclick=\"conf_send_recording('MonitorConf','conf_rec_link','" + head_conf + "');return false;\">Aufzeichnung</a></span> <input TYPE=TEXT SIZE=15 NAME=conf_dtmf STYLE=\"font-family : sans-serif; font-size : 10px\"> <A HREF=\"#\" onclick=\"SendConfDTMF(" + head_conf + ");\">Senden Sie DTMF</A> <input TYPE=TEXT SIZE=15 NAME=conf_dial STYLE=\"font-family : sans-serif; font-size : 10px\"> <A HREF=\"#\" onclick=\"SendManualDial('YES'," + head_conf + ");\">Wählen aus Konferenz</A><BR></font>";
|
||||
var conf_head_HTML = "<font class=\"sh_text\">KONFERENZ " + head_conf + "</b></font><font class=\"sb_text\"> Registriert bei: " + head_reg + " " + reglink + " <a href=\"#\" onclick=\"basic_originate_call('" + head_conf + "','NO','NO');return false;\">Betrete Konferenz </a><BR><a href=\"#\" onclick=\"check_for_conf_calls('" + head_conf + "','1');return false;\">Aktualisieren </a> <span id=\"conf_rec_link\"><a href=\"#\" onclick=\"conf_send_recording('MonitorConf','conf_rec_link','" + head_conf + "');return false;\">Aufzeichnung</a></span> <input TYPE=TEXT SIZE=15 NAME=conf_dtmf STYLE=\"font-family : sans-serif; font-size : 10px\"> <A HREF=\"#\" onclick=\"SendConfDTMF(" + head_conf + ");\">DTMF Senden</A> <input TYPE=TEXT SIZE=15 NAME=conf_dial STYLE=\"font-family : sans-serif; font-size : 10px\"> <A HREF=\"#\" onclick=\"SendManualDial('YES'," + head_conf + ");\">Wählen aus Konferenz</A><BR></font>";
|
||||
|
||||
document.getElementById("ConfereNceHeaderContent").innerHTML = conf_head_HTML;
|
||||
check_for_conf_calls(head_conf,taskrefresh);
|
||||
@@ -1823,7 +1823,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var LMAcontent_change=0;
|
||||
var LMAcontent_match=0;
|
||||
var conv_start=-1;
|
||||
var live_conf_HTML = "<font face=\"Arial,Helvetica\"><B>LIVE ANRUFE IN DIESER KONFERENZ:</B></font><BR><TABLE WIDTH=500><TR BGCOLOR=#E6E6E6><TD><font class=\"log_title\">#</TD><TD><font class=\"log_title\">ENTFERNTE LEITUNG</TD><TD><font class=\"log_title\">AUFLEGEN</TD><TD><font class=\"log_title\"VERBINDEN</TD></TR>";
|
||||
var live_conf_HTML = "<font face=\"Arial,Helvetica\"><B>VERBINDUNGEN IN DIESER KONFERENZ:</B></font><BR><TABLE WIDTH=500><TR BGCOLOR=#E6E6E6><TD><font class=\"log_title\">#</TD><TD><font class=\"log_title\">ENTFERNTE LEITUNG</TD><TD><font class=\"log_title\">AUFLEGEN</TD><TD><font class=\"log_title\"VERBINDEN</TD></TR>";
|
||||
if ( (LMAcount > live_conf_calls) || (LMAcount < live_conf_calls) || (LMAforce > 0))
|
||||
{
|
||||
LMAe[0]=''; LMAe[1]=''; LMAe[2]=''; LMAe[3]=''; LMAe[4]=''; LMAe[5]='';
|
||||
@@ -2288,7 +2288,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var VD_favlist_ct_half = parseInt(favlistCT / 2);
|
||||
if (VD_favlist_ct_half < 30) {VD_favlist_ct_half = 30;}
|
||||
var favlist_sec_col = 0;
|
||||
var favedit_HTML = "<center><table cellpadding=5 cellspacing=5 width=750><tr><td colspan=2 align=center bgcolor=\"#DDDD99\"><B>VORHANDENE EXTENSION</B></td><td align=center bgcolor=\"#CCCC99\"><B> FAVORITEN</B></td></tr><tr><td bgcolor=\"#DDDD99\" height=380 width=200 valign=top><font class=\"ss_text\"><span id=FavSelectA>";
|
||||
var favedit_HTML = "<center><table cellpadding=5 cellspacing=5 width=750><tr><td colspan=2 align=center bgcolor=\"#DDDD99\"><B>VORHANDENE NEBENSTELLEN</B></td><td align=center bgcolor=\"#CCCC99\"><B> FAVORITEN</B></td></tr><tr><td bgcolor=\"#DDDD99\" height=380 width=200 valign=top><font class=\"ss_text\"><span id=FavSelectA>";
|
||||
loop_ct = 0;
|
||||
while (loop_ct < favlistCT)
|
||||
{
|
||||
@@ -2323,7 +2323,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
{
|
||||
if (loop_ct > 0)
|
||||
{
|
||||
favedit_HTML = favedit_HTML + "<font class=\"sb_text\"><b><a href=\"#" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + " - " + loop_ct + "\" onclick=\"favorites_editor('UP','" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + "','" + loop_ct + "');return false;\"><img src=\"../agc/images/up.gif\" RAND=0></a> <a href=\"#" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + " - " + loop_ct + "\" onclick=\"favorites_editor('DOWN','" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + "','" + loop_ct + "');return false;\"><img src=\"../agc/images/down.gif\" RAND=0></a> " + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + " <a href=\"#" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + "\" onclick=\"favorites_editor('REMOVE','" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + "','" + loop_ct + "');return false;\"><img src=\"../agc/images/remove.gif\" RAND=0></a></b></font><BR>";
|
||||
favedit_HTML = favedit_HTML + "<font class=\"sb_text\"><b><a href=\"#" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + " - " + loop_ct + "\" onclick=\"favorites_editor('UP','" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + "','" + loop_ct + "');return false;\"><img src=\"../agc/images/up.gif\" Border=0></a> <a href=\"#" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + " - " + loop_ct + "\" onclick=\"favorites_editor('DOWN','" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + "','" + loop_ct + "');return false;\"><img src=\"../agc/images/down.gif\" Border=0></a> " + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + " <a href=\"#" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + "\" onclick=\"favorites_editor('REMOVE','" + favoritesEDIT[loop_ct] + " - " + favorites_namesEDIT[loop_ct] + "','" + loop_ct + "');return false;\"><img src=\"../agc/images/remove.gif\" Border=0></a></b></font><BR>";
|
||||
}
|
||||
loop_ct++;
|
||||
}
|
||||
@@ -2466,7 +2466,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
start_all_refresh();
|
||||
}
|
||||
function pause() // Pauses the refreshing of the lists
|
||||
{active_display=2; display_message=" - AKTIVE ANZEIGE IN PAUSE -";}
|
||||
{active_display=2; display_message=" - AKTIVE ANZEIGE PAUSIERT -";}
|
||||
function start() // resumes the refreshing of the lists
|
||||
{active_display=1; display_message='';}
|
||||
function faster() // lowers by 1000 milliseconds the time until the next refresh
|
||||
@@ -2712,18 +2712,18 @@ echo "</head>\n";
|
||||
<BODY onload="all_refresh();">
|
||||
<FORM name=extensions_list>
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:1;" id="Header">
|
||||
<TABLE RAND=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
|
||||
<TABLE Border=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=white WIDTH=640 MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0 VALIGN=TOP ALIGN=LEFT>
|
||||
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=5 VALIGN=TOP ALIGN=LEFT>
|
||||
<INPUT TYPE=HIDDEN NAME=extension>
|
||||
<font class="body_text">
|
||||
<? echo "Willkommen $LOGfullname, Sie sind mit diesem Telefon angemeldet: $fullname - $protocol/$extension an $server_ip <a href=\"#\" onclick=\"LogouT();return false;\">LOGOUT</a><BR>\n"; ?>
|
||||
</TD></TR>
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD><A HREF="#" onclick="MainPanelToFront();"><IMG SRC="../agc/images/agc_tab_main.gif" ALT="Haupt Bedienfeld" WIDTH=83 HEIGHT=30 RAND=0></A></TD>
|
||||
<TD><A HREF="#" onclick="ActiveLinesPanelToFront();"><IMG SRC="../agc/images/agc_tab_active_lines.gif" ALT="Aktive Leitungen Bedienfeld" WIDTH=139 HEIGHT=30 RAND=0></A></TD>
|
||||
<TD><A HREF="#" onclick="ConfereNcesPanelToFront();"><IMG SRC="../agc/images/agc_tab_conferences.gif" ALT="Konferenz Bedienfeld" WIDTH=139 HEIGHT=30 RAND=0></A></TD>
|
||||
<TD><A HREF="#" onclick="SendCheckVoiceMail();"><IMG SRC="../agc/images/agc_check_voicemail_ON.gif" NAME=voicemail ALT="Voicemail checken" WIDTH=170 HEIGHT=30 RAND=0></A></TD>
|
||||
<TD><IMG SRC="../agc/images/agc_live_call_OFF.gif" NAME=livecall ALT="Live Anruf" WIDTH=109 HEIGHT=30 RAND=0></TD>
|
||||
<TD><A HREF="#" onclick="MainPanelToFront();"><IMG SRC="../agc/images/agc_tab_main.gif" ALT="Haupt Bedienfeld" WIDTH=83 HEIGHT=30 Border=0></A></TD>
|
||||
<TD><A HREF="#" onclick="ActiveLinesPanelToFront();"><IMG SRC="../agc/images/agc_tab_active_lines.gif" ALT="Aktive Leitungen Bedienfeld" WIDTH=139 HEIGHT=30 Border=0></A></TD>
|
||||
<TD><A HREF="#" onclick="ConfereNcesPanelToFront();"><IMG SRC="../agc/images/agc_tab_conferences.gif" ALT="Konferenz Bedienfeld" WIDTH=139 HEIGHT=30 Border=0></A></TD>
|
||||
<TD><A HREF="#" onclick="SendCheckVoiceMail();"><IMG SRC="../agc/images/agc_check_voicemail_ON.gif" NAME=voicemail ALT="Voicemail abhören" WIDTH=170 HEIGHT=30 Border=0></A></TD>
|
||||
<TD><IMG SRC="../agc/images/agc_live_call_OFF_de.jpg" NAME=livecall ALT="Live Anruf" WIDTH=109 HEIGHT=30 Border=0></TD>
|
||||
</TR></TABLE>
|
||||
</SPAN>
|
||||
|
||||
@@ -2756,25 +2756,25 @@ echo "</head>\n";
|
||||
<span style="position:absolute;left:80px;top:12px;z-index:42;" id="MainXfeRBox">
|
||||
<input type=hidden name=H_XfeR_channel>
|
||||
<input type=hidden name=M_XfeR_channel>
|
||||
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> LIVE ANRUF WEITERLEITEN</b> <BR>Leitung, die verbunden werden soll: <span id="MainXfeRChanneL">Kanal</span><BR></tr>
|
||||
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> ANRUF WEITERLEITEN</b> <BR>Leitung, die verbunden werden soll: <span id="MainXfeRChanneL">Kanal</span><BR></tr>
|
||||
<tr><td>Erweiterungen:<BR><span id="MainXfeRContent"> Extension Menü </span></td>
|
||||
<td>
|
||||
<BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('XfeR');return false;">Senden Sie an ausgewählte Extension</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('VMAIL');return false;">Senden Sie an ausgewählte Voicemalbox</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('XfeR');return false;">Verbinden mit ausgewählter Nebenstelle</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('VMAIL');return false;">Weiterleiten zur ausgewählte Voicemalbox</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('ENTRY');return false;">Verbinden mit dieser Nummer</a>:<BR><input type=text name=extension_xfer_entry size=20 maxlength=50> <BR><BR>
|
||||
<a href="#" onclick="getactiveext('MainXfeRBox');return false;">Aktualisieren</a> <BR><BR><BR>
|
||||
<a href="#" onclick="hideMainXfeR('MainXfeRBox');">Zurück zu Hauptfenster</a> <BR><BR>
|
||||
</TD>
|
||||
<TD>Konferenzen:<BR><font size=1>(Klicken Sie unten auf eine Nummer, um mit einer Konferenz zu verbinden)<BR><input type=checkbox name=MainXfeRconfXTRA size=1 value="1"> Meinen Kanal auch senden<div class="scroll_list" id="MainXfeRconfContent"> Konferenz Menü </div></td></TR></TABLE>
|
||||
<TD>Konferenzen:<BR><font size=1>(Klicken Sie unten auf eine Nummer, um mit einer Konferenz zu verbinden)<BR><input type=checkbox name=MainXfeRconfXTRA size=1 value="1"> Meinen Kanal auch verbinden<div class="scroll_list" id="MainXfeRconfContent"> Konferenz Menü </div></td></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:80px;top:12px;z-index:43;" id="LocalDialBox">
|
||||
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> LOKALER Anruf über Extension</b> <BR>Telefon ruft an von: <span id="LocalDialChanneL">Kanal</span><BR></tr>
|
||||
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> LOKALE Nebenstellen wahl</b> <BR>Telefon ruft an von: <span id="LocalDialChanneL">Kanal</span><BR></tr>
|
||||
<tr><td>Erweiterungen:<BR><span id="LocalDialContent"> Extension Menü </span></td>
|
||||
<td>
|
||||
<BR>
|
||||
<a href="#" onclick="mainxfer_send_originate('DiaL','','');return false;">Rufe ausgewählte Extension an</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_originate('DiaL','','');return false;">Rufe ausgewählte Nebenstelle an</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_originate('VMAIL');return false;">Rufe ausgewählte Voicemalbox an</a> <BR><BR>
|
||||
<a href="#" onclick="getactiveext('LocalDialBox');return false;">Aktualisieren</a> <BR><BR><BR>
|
||||
<a href="#" onclick="hideLocalDial('LocalDialBox');">Zurück zu Hauptfenster</a> <BR><BR>
|
||||
@@ -2794,9 +2794,9 @@ echo "</head>\n";
|
||||
</TD></TR>
|
||||
<tr><td><span id="busycallsspan"></span></td></tr>
|
||||
<tr><td><span id="busycallsdebug"></span></td></tr>
|
||||
<tr><td align=center><font face="Arial,Helvetica"><B>VOICEMAIL </B></font> NEU: <span id="new_vmail_span"></span> ALT: <span id="old_vmail_span"></span> <font face="Arial,Helvetica"><B>MANUELLER ANRUF </B></font><input TYPE=TEXT SIZE=20 NAME=manual_dial STYLE="font-family : sans-serif; font-size : 10px"> <A HREF="#" onclick="SendManualDial();">WÄHLEN</A></td></tr>
|
||||
<tr><td align=center><font face="Arial,Helvetica"><B>VOICEMAIL </B></font> NEU: <span id="new_vmail_span"></span> ALT: <span id="old_vmail_span"></span> <font face="Arial,Helvetica"><B>MANUELLER ANRUF </B></font><input TYPE=TEXT SIZE=20 NAME=manual_dial STYLE="font-family : sans-serif; font-size : 10px"> <A HREF="#" onclick="SendManualDial();">DIAL</A></td></tr>
|
||||
|
||||
<tr><td align=center><a href="#" onclick="showParkDisplay('ParkDisplayBox');return false;"><font face="Arial,Helvetica"><B>GEPARKTE ANRUFE</B></a>: <span id="parked_calls_count">0</span> <a href="#" onclick="showLocalDial('LocalDialBox');return false;"><font face="Arial,Helvetica"><B>LOKALE ANRUF EXTENSIONS</a></td></tr>
|
||||
<tr><td align=center><a href="#" onclick="showParkDisplay('ParkDisplayBox');return false;"><font face="Arial,Helvetica"><B>GEPARKTE ANRUFE</B></a>: <span id="parked_calls_count">0</span> <a href="#" onclick="showLocalDial('LocalDialBox');return false;"><font face="Arial,Helvetica"><B>LOKALE NEBENSTELLEN</a></td></tr>
|
||||
|
||||
<tr><td align=center><font face="Arial,Helvetica"><B>OUTBOUND ANRUFE:</B></font></td></tr>
|
||||
<tr><td align=center><div class="scroll_log" id="outboundcallsspan"></div></td></tr>
|
||||
@@ -2840,7 +2840,7 @@ echo "</head>\n";
|
||||
<a href="#" onclick="pause();return false;">PAUSE</a> | <a href="#" onclick="start();return false;">START</a> Aktualisierungsfrequenz: <span id="refresh_rate">1000 ms</span> <a href="#" onclick="faster();return false;">Schneller</a> | <a href="#" onclick="slower();return false;">Langsamer</a></p>
|
||||
<div id="status"><em>Initialisierung..</em></div>
|
||||
</td></tr>
|
||||
<tr><td>Aktive Erweiterung <BR>
|
||||
<tr><td>Aktive Nebenstellen <BR>
|
||||
<a href="#" onclick="activeext_force_refresh();return false;">AKTUALISIEREN</a> |
|
||||
<span id="activeext_order"><a href="#" onclick="activeext_order_desc();return false;">BESTELLEN</a> | </span>
|
||||
</td>
|
||||
@@ -2850,7 +2850,7 @@ echo "</head>\n";
|
||||
<span id="busytrunk_order"><a href="#" onclick="busytrunk_order_desc();return false;">BESTELLEN</a> | </span>
|
||||
</td>
|
||||
|
||||
<td>Lokale Erweiterungen <BR>
|
||||
<td>Lokale Nebenstellen <BR>
|
||||
<a href="#" onclick="busyext_force_refresh();return false;">AKTUALISIEREN</a> |
|
||||
<span id="busyext_order"><a href="#" onclick="busyext_order_desc();return false;">BESTELLEN</a> | </span>
|
||||
</td></tr>
|
||||
|
||||
@@ -155,7 +155,7 @@ if ($format=='debug')
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build MEETME: $conf_exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Konferenz Erweiterung überprüfen";
|
||||
echo "<title>Conf Extension Check";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
@@ -318,11 +318,11 @@ echo "<B>$NOW_TIME</B><BR><BR>\n";
|
||||
echo "<a href=\"$local_web_callerID_URL$local_web_callerID_QUERY_STRING\" target=\"_blank\">ANGEPASST</a> - \n";
|
||||
|
||||
echo "</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>Nummer Gewählt: </td><td align=left>$row[8]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>Gewählte Nummer: </td><td align=left>$row[8]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>Anmerkungen: </td><td align=left>$row[9]|$row[10]|$row[11]|$row[12]|$row[13]|</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td colspan=2 align=center>\n<span id=\"callactions\">";
|
||||
echo "<a href=\"#\" onclick=\"livehangup_send_hangup('$row[1]');return false;\">AUFLEGEN</a> - \n";
|
||||
echo "<a href=\"#\" onclick=\"liveredirect_send_vmail('$row[1]','$vmail_box');return false;\">SENDE AN MEINE VOICEMAILBOX</a>\n";
|
||||
echo "<a href=\"#\" onclick=\"liveredirect_send_vmail('$row[1]','$vmail_box');return false;\">AN MEINE VOICEMAILBOX SENDEN</a>\n";
|
||||
echo "</span></td></tr>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ if ($format=='debug')
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<title>LIVE Erweiterung überprüfen";
|
||||
echo "<title>Aktive Nebenstelle überprüfen";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
@@ -250,14 +250,14 @@ if ($ACTION=="SysCIDOriginate")
|
||||
{
|
||||
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($ext_context)<1) or (strlen($queryCID)<1) )
|
||||
{
|
||||
echo "Exten $exten ist unzulässig or queryCID $queryCID ist unzulässig, Originate Befehl nicht eingesetzt\n";
|
||||
echo "Exten $exten ist unzulässig or queryCID $queryCID ist unzulässig, Originate Befehl nicht abgesetzt\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$queryCID','Channel: $channel','Context: $ext_context','Exten: $exten','Priority: $ext_priority','Callerid: $queryCID','','','','','');";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
echo "Originate Befehl gesendet um Exten $exten Kanal $channel an $server_ip\n";
|
||||
echo "Originate Befehl gesendet für Exten $exten Kanal $channel an $server_ip\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -342,7 +342,7 @@ if ($ACTION=="Originate")
|
||||
{
|
||||
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($ext_context)<1) or (strlen($queryCID)<10) )
|
||||
{
|
||||
echo "Exten $exten ist unzulässig or queryCID $queryCID ist unzulässig, Originate Befehl nicht eingesetzt\n";
|
||||
echo "Exten $exten ist unzulässig or queryCID $queryCID ist unzulässig, Originate Befehl nicht abgesetzt\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -353,7 +353,7 @@ if ($ACTION=="Originate")
|
||||
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$queryCID','Channel: $channel','Context: $ext_context','Exten: $exten','Priority: $ext_priority','Callerid: $outCID','','','','','');";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
echo "Originate Befehl gesendet um Exten $exten Kanal $channel an $server_ip\n";
|
||||
echo "Originate Befehl gesendet für Exten $exten Kanal $channel an $server_ip\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -369,7 +369,7 @@ if ($ACTION=="HangupConfDial")
|
||||
if ( (strlen($exten)<3) or (strlen($queryCID)<15) or (strlen($ext_context)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "conference $exten ist unzulässig or ext_context $ext_context or queryCID $queryCID ist unzulässig, Hangup Befehl nicht eingesetzt\n";
|
||||
echo "conference $exten ist unzulässig or ext_context $ext_context or queryCID $queryCID ist unzulässig, Hangup Befehl nicht abgesetzt\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -406,7 +406,7 @@ if ($ACTION=="Hangup")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Kanal $channel ist unzulässig or queryCID $queryCID ist unzulässig, Hangup Befehl nicht eingesetzt\n";
|
||||
echo "Kanal $channel ist unzulässig or queryCID $queryCID ist unzulässig, Hangup Befehl nicht abgesetzt\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -445,7 +445,7 @@ if ($ACTION=="Hangup")
|
||||
if ($row[0]==0)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Kanal $channel ist nicht Live an $call_server_ip, Hangup Befehl nicht eingesetzt $rowx[0]\n$stmt\n";
|
||||
echo "Kanal $channel ist nicht Live an $call_server_ip, Hangup Befehl nicht abgesetzt $rowx[0]\n$stmt\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -458,7 +458,7 @@ if ($ACTION=="Hangup")
|
||||
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$call_server_ip','','Hangup','$queryCID','Channel: $channel','','','','','','','','','');";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
echo "Hangup Befehl gesendet um Kanal $channel an $call_server_ip\n";
|
||||
echo "Hangup Befehl gesendet für Kanal $channel an $call_server_ip\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -666,7 +666,7 @@ if ($ACTION=="RedirectXtraCX")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveX=0;
|
||||
echo "Kanal $channel ist nicht Live an $call_server_ip, Redirect Befehl nicht eingesetzt\n";
|
||||
echo "Kanal $channel ist nicht Live an $call_server_ip, Redirect Befehl nicht abgesetzt\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel ist nicht Live an $call_server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -683,7 +683,7 @@ if ($ACTION=="RedirectXtraCX")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveY=0;
|
||||
echo "Kanal $channel ist nicht Live an $server_ip, Redirect Befehl nicht eingesetzt\n";
|
||||
echo "Kanal $channel ist nicht Live an $server_ip, Redirect Befehl nicht abgesetzt\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel ist nicht Live an $server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -696,7 +696,7 @@ if ($ACTION=="RedirectXtraCX")
|
||||
if ($rowx[0] < 1)
|
||||
{
|
||||
$channel_liveY=0;
|
||||
echo "No Local agent to send call to, Redirect Befehl nicht eingesetzt\n";
|
||||
echo "No Local agent to send call to, Redirect Befehl nicht abgesetzt\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "No Local agent to send call to";}
|
||||
}
|
||||
else
|
||||
@@ -729,7 +729,7 @@ if ($ACTION=="RedirectXtraCX")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
echo "RedirectXtraCX Befehl gesendet um Kanal $channel an $call_server_ip and \nHungup $extrachannel an $server_ip\n";
|
||||
echo "RedirectXtraCX Befehl gesendet für Kanal $channel an $call_server_ip and \nHungup $extrachannel an $server_ip\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel an $call_server_ip, Hungup $extrachannel an $server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -804,7 +804,7 @@ if ($ACTION=="RedirectXtra")
|
||||
else
|
||||
{
|
||||
$channel_liveX=0;
|
||||
echo "Kann keine leere Konferenz finden an $server_ip, Redirect Befehl nicht eingesetzt\n";
|
||||
echo "Kann keine leere Konferenz finden an $server_ip, Redirect Befehl nicht abgesetzt\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "Kann keine leere Konferenz finden an $server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -824,7 +824,7 @@ if ($ACTION=="RedirectXtra")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveX=0;
|
||||
echo "Kanal $channel ist nicht Live an $call_server_ip, Redirect Befehl nicht eingesetzt\n";
|
||||
echo "Kanal $channel ist nicht Live an $call_server_ip, Redirect Befehl nicht abgesetzt\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel ist nicht Live an $call_server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -841,7 +841,7 @@ if ($ACTION=="RedirectXtra")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveY=0;
|
||||
echo "Kanal $channel ist nicht Live an $server_ip, Redirect Befehl nicht eingesetzt\n";
|
||||
echo "Kanal $channel ist nicht Live an $server_ip, Redirect Befehl nicht abgesetzt\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel ist nicht Live an $server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -853,7 +853,7 @@ if ($ACTION=="RedirectXtra")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
echo "RedirectXtra Befehl gesendet um Kanal $channel and \nExtraKanal $extrachannel\n to $exten an $server_ip\n";
|
||||
echo "RedirectXtra Befehl gesendet für Kanal $channel and \nExtraKanal $extrachannel\n to $exten an $server_ip\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel and $extrachannel to $exten an $server_ip";}
|
||||
}
|
||||
else
|
||||
@@ -878,7 +878,7 @@ if ($ACTION=="RedirectXtra")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
echo "RedirectXtra Befehl gesendet um Kanal $channel an $call_server_ip and \nExtraKanal $extrachannel\n to $exten an $server_ip\n";
|
||||
echo "RedirectXtra Befehl gesendet für Kanal $channel an $call_server_ip and \nExtraKanal $extrachannel\n to $exten an $server_ip\n";
|
||||
if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel/$call_server_ip and $extrachannel/$server_ip to $exten";}
|
||||
}
|
||||
}
|
||||
@@ -908,7 +908,7 @@ if ($ACTION=="RedirectXtra")
|
||||
|
||||
if ($ACTION=="Redirect")
|
||||
{
|
||||
### for manual dial VICIWÄHLEN calls send the second attempt to transfer the call
|
||||
### for manual dial VICIDIAL calls send the second attempt to transfer the call
|
||||
if ($stage=="2NDXfeR")
|
||||
{
|
||||
$local_DEF = 'Local/';
|
||||
@@ -960,7 +960,7 @@ if ($ACTION=="Redirect")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Kanal $channel ist nicht Live an $server_ip, Redirect Befehl nicht eingesetzt\n";
|
||||
echo "Kanal $channel ist nicht Live an $server_ip, Redirect Befehl nicht abgesetzt\n";
|
||||
}
|
||||
}
|
||||
if ($channel_live==1)
|
||||
@@ -969,7 +969,7 @@ if ($ACTION=="Redirect")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
echo "Redirect Befehl gesendet um Kanal $channel an $server_ip\n";
|
||||
echo "Redirect Befehl gesendet für Kanal $channel an $server_ip\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -991,7 +991,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($filename)<15) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Kanal $channel ist unzulässig or queryCID $queryCID ist unzulässig or filename: $filename ist unzulässig, $ACTION Befehl nicht eingesetzt\n";
|
||||
echo "Kanal $channel ist unzulässig or queryCID $queryCID ist unzulässig or filename: $filename ist unzulässig, $ACTION Befehl nicht abgesetzt\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1008,7 +1008,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Kanal $channel ist nicht Live an $server_ip, $ACTION Befehl nicht eingesetzt\n";
|
||||
echo "Kanal $channel ist nicht Live an $server_ip, $ACTION Befehl nicht abgesetzt\n";
|
||||
}
|
||||
}
|
||||
if ($channel_live==1)
|
||||
@@ -1050,7 +1050,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
|
||||
}
|
||||
|
||||
}
|
||||
echo "$ACTION Befehl gesendet um Kanal $channel an $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n";
|
||||
echo "$ACTION Befehl gesendet für Kanal $channel an $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1070,7 +1070,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
|
||||
if ( (strlen($exten)<3) or (strlen($channel)<4) or (strlen($filename)<15) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Kanal $channel ist unzulässig or exten $exten ist unzulässig or filename: $filename ist unzulässig, $ACTION Befehl nicht eingesetzt\n";
|
||||
echo "Kanal $channel ist unzulässig or exten $exten ist unzulässig or filename: $filename ist unzulässig, $ACTION Befehl nicht abgesetzt\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1134,7 +1134,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
|
||||
}
|
||||
|
||||
}
|
||||
echo "$ACTION Befehl gesendet um Kanal $channel an $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n AUFNAHME DAUERT BIS ZU 60 MINUTEN\n";
|
||||
echo "$ACTION Befehl gesendet für Kanal $channel an $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n AUFNAHME DAUERT BIS ZU 60 MINUTEN\n";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1149,7 +1149,7 @@ if ($ACTION=="VolumeControl")
|
||||
{
|
||||
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($stage)<1) or (strlen($queryCID)<1) )
|
||||
{
|
||||
echo "Konferenz $exten, Stage $stage ist unzulässig or queryCID $queryCID ist unzulässig, Originate Befehl nicht eingesetzt\n";
|
||||
echo "Konferenz $exten, Stage $stage ist unzulässig or queryCID $queryCID ist unzulässig, Originate Befehl nicht abgesetzt\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1165,7 +1165,7 @@ if ($ACTION=="VolumeControl")
|
||||
$stmt="INSERT INTO vicidial_manager values('','','$NOW_TIME','NEW','N','$server_ip','','Originate','$queryCID','Channel: $volume_local_channel','Context: $ext_context','Exten: 8300','Priority: 1','Callerid: $queryCID','','','','$channel','$exten');";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
echo "Volume Befehl gesendet um Konferenz $exten, Stage $stage Kanal $channel an $server_ip\n";
|
||||
echo "Volume Befehl gesendet für Konferenz $exten, Stage $stage Kanal $channel an $server_ip\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
# - $omit_phone_code - ('Y','N')
|
||||
# - $no_delete_sessions - ('0','1')
|
||||
# - $LogouTKicKAlL - ('0','1');
|
||||
# - $manual_dial_filter = ('NONE','CAMPLISTS','DNC','CAMPLISTS_DNC');
|
||||
|
||||
# CHANGELOG:
|
||||
# 50629-1044 - First build of script
|
||||
@@ -143,10 +144,12 @@
|
||||
# 80128-1159 - fixed vicidial_log bugs
|
||||
# 80402-0121 - Fixes for manual dial transfers on some systems, removed /n persist flag
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80722-1000 - Fixed small bugs
|
||||
# 80815-1020 - Added manual dial list restriction option
|
||||
#
|
||||
|
||||
$version = '2.0.4-69';
|
||||
$build = '80424-0442';
|
||||
$version = '2.0.4-71';
|
||||
$build = '80815-1020';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -281,6 +284,8 @@ if (isset($_GET["status"])) {$status=$_GET["status"];}
|
||||
elseif (isset($_POST["status"])) {$status=$_POST["status"];}
|
||||
if (isset($_GET["LogouTKicKAlL"])) {$LogouTKicKAlL=$_GET["LogouTKicKAlL"];}
|
||||
elseif (isset($_POST["LogouTKicKAlL"])) {$LogouTKicKAlL=$_POST["LogouTKicKAlL"];}
|
||||
if (isset($_GET["manual_dial_filter"])) {$manual_dial_filter=$_GET["manual_dial_filter"];}
|
||||
elseif (isset($_POST["manual_dial_filter"])) {$manual_dial_filter=$_POST["manual_dial_filter"];}
|
||||
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -573,6 +578,33 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if (ereg("CAMPLISTS",$manual_dial_filter))
|
||||
{
|
||||
$stmt="SELECT list_id,active from vicidial_lists where campaign_id='$campaign'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$lists_to_parse = mysql_num_rows($rslt);
|
||||
$camp_lists='';
|
||||
$o=0;
|
||||
while ($lists_to_parse > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
if (ereg("Y", $rowx[1])) {$active_lists++; $camp_lists .= "'$rowx[0]',";}
|
||||
if (ereg("N", $rowx[1])) {$inactive_lists++;}
|
||||
$o++;
|
||||
}
|
||||
$camp_lists = eregi_replace(".$","",$camp_lists);
|
||||
|
||||
$stmt="SELECT count(*) FROM vicidial_list where phone_number='$phone_number' and list_id IN($camp_lists);";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
if ($row[0] < 1)
|
||||
{
|
||||
echo "NUMMER NOT IN CAMPLISTS\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if ($stage=='lookup')
|
||||
{
|
||||
$stmt="SELECT lead_id FROM vicidial_list where phone_number='$phone_number' order by modify_date desc LIMIT 1;";
|
||||
@@ -1033,7 +1065,7 @@ if ($stage == "start")
|
||||
|
||||
if ($affected_rows > 0)
|
||||
{
|
||||
echo "VICIDiaL_LOG Eingesetzt: $uniqueid|$channel|$NOW_TIME\n";
|
||||
echo "VICIDiaL_LOG Eingefügt: $uniqueid|$channel|$NOW_TIME\n";
|
||||
echo "$StarTtime\n";
|
||||
}
|
||||
else
|
||||
@@ -1053,7 +1085,7 @@ if ($stage == "start")
|
||||
|
||||
# if ($affected_rows > 0)
|
||||
# {
|
||||
# echo "CALL_LOG Eingesetzt: $uniqueid|$channel|$NOW_TIME";
|
||||
# echo "CALL_LOG Eingefügt: $uniqueid|$channel|$NOW_TIME";
|
||||
# }
|
||||
# else
|
||||
# {
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
# - $omit_phone_code - ('Y','N')
|
||||
# - $no_delete_sessions - ('0','1')
|
||||
# - $LogouTKicKAlL - ('0','1');
|
||||
# - $manual_dial_filter = ('NONE','CAMPLISTS','DNC','CAMPLISTS_DNC');
|
||||
|
||||
# CHANGELOG:
|
||||
# 50629-1044 - First build of script
|
||||
@@ -143,10 +144,12 @@
|
||||
# 80128-1159 - fixed vicidial_log bugs
|
||||
# 80402-0121 - Fixes for manual dial transfers on some systems, removed /n persist flag
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80722-1000 - Fixed small bugs
|
||||
# 80815-1020 - Added manual dial list restriction option
|
||||
#
|
||||
|
||||
$version = '2.0.4-69';
|
||||
$build = '80424-0442';
|
||||
$version = '2.0.4-71';
|
||||
$build = '80815-1020';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -281,6 +284,8 @@ if (isset($_GET["status"])) {$status=$_GET["status"];}
|
||||
elseif (isset($_POST["status"])) {$status=$_POST["status"];}
|
||||
if (isset($_GET["LogouTKicKAlL"])) {$LogouTKicKAlL=$_GET["LogouTKicKAlL"];}
|
||||
elseif (isset($_POST["LogouTKicKAlL"])) {$LogouTKicKAlL=$_POST["LogouTKicKAlL"];}
|
||||
if (isset($_GET["manual_dial_filter"])) {$manual_dial_filter=$_GET["manual_dial_filter"];}
|
||||
elseif (isset($_POST["manual_dial_filter"])) {$manual_dial_filter=$_POST["manual_dial_filter"];}
|
||||
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -573,6 +578,33 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if (ereg("CAMPLISTS",$manual_dial_filter))
|
||||
{
|
||||
$stmt="SELECT list_id,active from vicidial_lists where campaign_id='$campaign'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$lists_to_parse = mysql_num_rows($rslt);
|
||||
$camp_lists='';
|
||||
$o=0;
|
||||
while ($lists_to_parse > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
if (ereg("Y", $rowx[1])) {$active_lists++; $camp_lists .= "'$rowx[0]',";}
|
||||
if (ereg("N", $rowx[1])) {$inactive_lists++;}
|
||||
$o++;
|
||||
}
|
||||
$camp_lists = eregi_replace(".$","",$camp_lists);
|
||||
|
||||
$stmt="SELECT count(*) FROM vicidial_list where phone_number='$phone_number' and list_id IN($camp_lists);";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
if ($row[0] < 1)
|
||||
{
|
||||
echo "ΑΡΙΘΜΟΣ NOT IN CAMPLISTS\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if ($stage=='lookup')
|
||||
{
|
||||
$stmt="SELECT lead_id FROM vicidial_list where phone_number='$phone_number' order by modify_date desc LIMIT 1;";
|
||||
|
||||
@@ -177,10 +177,14 @@
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
# 80722-1000 - Fixed quote display bug
|
||||
# 80815-1015 - Added manual dial list restriction option
|
||||
# 80823-2127 - Fixed form scroll for IE
|
||||
# 81012-0857 - Marker for 2.0.4.1rc5 release
|
||||
#
|
||||
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
$version = '2.0.4-152';
|
||||
$build = '81012-0857';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -285,6 +289,7 @@ $PreseT_DiaL_LinKs = '1'; # set to 1 to show a ΚΛΗΣΗ link for Dial Presets
|
||||
$LogiNAJAX = '1'; # set to 1 to do lookups
|
||||
$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
|
||||
$LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout
|
||||
$CamPManDiaLLocK = '0'; # set to 1 to lock out all manual dials to only numbers in camp lists
|
||||
|
||||
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
|
||||
|
||||
@@ -348,6 +353,11 @@ echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- ΕΚΔΟΣΗ: $version ΔΗΜΙΟΥΡΓΙΑ: $build -->\n";
|
||||
|
||||
if ($CamPManDiaLLocK > 0)
|
||||
{$manual_dial_filter = "CAMPLISTS_ONLY";}
|
||||
else
|
||||
{$manual_dial_filter = "NONE";}
|
||||
|
||||
if ($campaign_login_list > 0)
|
||||
{
|
||||
$camp_form_code = "<select size=1 name=VD_campaign id=VD_campaign onFocus=\"login_allowable_campaigns()\">\n";
|
||||
@@ -1819,6 +1829,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var LogouTKicKAlL = '<? echo $LogouTKicKAlL ?>';
|
||||
var flag_channels = '<? echo $flag_channels ?>';
|
||||
var flag_string = '<? echo $flag_string ?>';
|
||||
var manual_dial_filter = '<? echo $manual_dial_filter ?>';
|
||||
var useIE = '<? echo $useIE ?>';
|
||||
var DiaLControl_auto_HTML = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF_el.gif\" border=0 alt=\"Παύση\"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"../agc/images/vdc_LB_resume_el.gif\" border=0 alt=\"Επανάληψη\"></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"../agc/images/vdc_LB_pause_el.gif\" border=0 alt=\"Παύση\"></a><IMG SRC=\"../agc/images/vdc_LB_resume_OFF_el.gif\" border=0 alt=\"Επανάληψη\">";
|
||||
var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF_el.gif\" border=0 alt=\"Παύση\"><IMG SRC=\"../agc/images/vdc_LB_resume_OFF_el.gif\" border=0 alt=\"Επανάληψη\">";
|
||||
@@ -3365,7 +3377,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code;
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code + "&manual_dial_filter=" + manual_dial_filter;
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(manDiaLnext_query);
|
||||
@@ -3379,14 +3391,36 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
var MDnextResponse_array=MDnextResponse.split("\n");
|
||||
MDnextCID = MDnextResponse_array[0];
|
||||
if ( (MDnextCID == "ΚΕΝΟΣ HOPPER") || (MDnextCID == "DNC ΑΡΙΘΜΟΣ") )
|
||||
var regMNCvar = new RegExp("HOPPER","ig");
|
||||
var regMDFvarDNC = new RegExp("DNC","ig");
|
||||
var regMDFvarCAMP = new RegExp("CAMPLISTS","ig");
|
||||
if ( (MDnextCID.match(regMNCvar)) || (MDnextCID.match(regMDFvarDNC)) || (MDnextCID.match(regMDFvarCAMP)) )
|
||||
{
|
||||
if (MDnextCID == "ΚΕΝΟΣ HOPPER")
|
||||
{alert("Δεν υπάρχουν άλλοι οδηγοί στον hopper για την εκστρατεία:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
var alert_displayed=0;
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
auto_dial_level=starting_dial_level;
|
||||
MainPanelToFront();
|
||||
CalLBacKsCounTCheck();
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber_el.gif\" border=0 alt=\"Κλήση επόμενου αριθμού\"></a>";
|
||||
if (MDnextCID.match(regMNCvar))
|
||||
{alert("Δεν υπάρχουν άλλοι οδηγοί στον hopper για την εκστρατεία:\n" + campaign); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarDNC))
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarCAMP))
|
||||
{alert("This phone number is not in the campaign lists:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (alert_displayed==0)
|
||||
{alert("Unspecified error:\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;}
|
||||
|
||||
if (starting_dial_level == 0)
|
||||
{
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber_el.gif\" border=0 alt=\"Κλήση επόμενου αριθμού\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
||||
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML;
|
||||
reselect_alt_dial = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6439,7 +6473,8 @@ else
|
||||
.skb_text {font-size: 13px; font-family: sans-serif; font-weight: bold;}
|
||||
.ON_conf {font-size: 11px; font-family: monospace; color: black; background: #FFFF99}
|
||||
.OFF_conf {font-size: 11px; font-family: monospace; color: black; background: #FFCC77}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: hidden}
|
||||
.cust_form_text {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
|
||||
-->
|
||||
</style>
|
||||
@@ -6889,7 +6924,7 @@ if ( ($alt_phone_dialing) and ($auto_dial_level==0) )
|
||||
<font class="body_text">
|
||||
<?
|
||||
if ( ($multi_line_comments) )
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form\" value=\"\"></TEXTAREA>\n";}
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form_text\" value=\"\"></TEXTAREA>\n";}
|
||||
else
|
||||
{echo "<input type=text size=65 name=comments maxlength=255 class=\"cust_form\" value=\"\">\n";}
|
||||
?>
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
# - $omit_phone_code - ('Y','N')
|
||||
# - $no_delete_sessions - ('0','1')
|
||||
# - $LogouTKicKAlL - ('0','1');
|
||||
# - $manual_dial_filter = ('NONE','CAMPLISTS','DNC','CAMPLISTS_DNC');
|
||||
|
||||
# CHANGELOG:
|
||||
# 50629-1044 - First build of script
|
||||
@@ -143,10 +144,12 @@
|
||||
# 80128-1159 - fixed vicidial_log bugs
|
||||
# 80402-0121 - Fixes for manual dial transfers on some systems, removed /n persist flag
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80722-1000 - Fixed small bugs
|
||||
# 80815-1020 - Added manual dial list restriction option
|
||||
#
|
||||
|
||||
$version = '2.0.4-69';
|
||||
$build = '80424-0442';
|
||||
$version = '2.0.4-71';
|
||||
$build = '80815-1020';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -281,6 +284,8 @@ if (isset($_GET["status"])) {$status=$_GET["status"];}
|
||||
elseif (isset($_POST["status"])) {$status=$_POST["status"];}
|
||||
if (isset($_GET["LogouTKicKAlL"])) {$LogouTKicKAlL=$_GET["LogouTKicKAlL"];}
|
||||
elseif (isset($_POST["LogouTKicKAlL"])) {$LogouTKicKAlL=$_POST["LogouTKicKAlL"];}
|
||||
if (isset($_GET["manual_dial_filter"])) {$manual_dial_filter=$_GET["manual_dial_filter"];}
|
||||
elseif (isset($_POST["manual_dial_filter"])) {$manual_dial_filter=$_POST["manual_dial_filter"];}
|
||||
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -573,6 +578,33 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if (ereg("CAMPLISTS",$manual_dial_filter))
|
||||
{
|
||||
$stmt="SELECT list_id,active from vicidial_lists where campaign_id='$campaign'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$lists_to_parse = mysql_num_rows($rslt);
|
||||
$camp_lists='';
|
||||
$o=0;
|
||||
while ($lists_to_parse > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
if (ereg("Y", $rowx[1])) {$active_lists++; $camp_lists .= "'$rowx[0]',";}
|
||||
if (ereg("N", $rowx[1])) {$inactive_lists++;}
|
||||
$o++;
|
||||
}
|
||||
$camp_lists = eregi_replace(".$","",$camp_lists);
|
||||
|
||||
$stmt="SELECT count(*) FROM vicidial_list where phone_number='$phone_number' and list_id IN($camp_lists);";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
if ($row[0] < 1)
|
||||
{
|
||||
echo "NÚMERO NOT IN CAMPLISTS\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if ($stage=='lookup')
|
||||
{
|
||||
$stmt="SELECT lead_id FROM vicidial_list where phone_number='$phone_number' order by modify_date desc LIMIT 1;";
|
||||
|
||||
@@ -177,10 +177,14 @@
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
# 80722-1000 - Fixed quote display bug
|
||||
# 80815-1015 - Added manual dial list restriction option
|
||||
# 80823-2127 - Fixed form scroll for IE
|
||||
# 81012-0857 - Marker for 2.0.4.1rc5 release
|
||||
#
|
||||
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
$version = '2.0.4-152';
|
||||
$build = '81012-0857';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -285,6 +289,7 @@ $PreseT_DiaL_LinKs = '1'; # set to 1 to show a DIAL link for Dial Presets
|
||||
$LogiNAJAX = '1'; # set to 1 to do lookups
|
||||
$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
|
||||
$LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout
|
||||
$CamPManDiaLLocK = '0'; # set to 1 to lock out all manual dials to only numbers in camp lists
|
||||
|
||||
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
|
||||
|
||||
@@ -348,6 +353,11 @@ echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIÓN: $version CONSTRUCCION: $build -->\n";
|
||||
|
||||
if ($CamPManDiaLLocK > 0)
|
||||
{$manual_dial_filter = "CAMPLISTS_ONLY";}
|
||||
else
|
||||
{$manual_dial_filter = "NONE";}
|
||||
|
||||
if ($campaign_login_list > 0)
|
||||
{
|
||||
$camp_form_code = "<select size=1 name=VD_campaign id=VD_campaign onFocus=\"login_allowable_campaigns()\">\n";
|
||||
@@ -1819,6 +1829,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var LogouTKicKAlL = '<? echo $LogouTKicKAlL ?>';
|
||||
var flag_channels = '<? echo $flag_channels ?>';
|
||||
var flag_string = '<? echo $flag_string ?>';
|
||||
var manual_dial_filter = '<? echo $manual_dial_filter ?>';
|
||||
var useIE = '<? echo $useIE ?>';
|
||||
var DiaLControl_auto_HTML = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF_es.gif\" border=0 alt=\"Pausa\"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"../agc/images/vdc_LB_resume_es.gif\" border=0 alt=\"Comienzo\"></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"../agc/images/vdc_LB_pause_es.gif\" border=0 alt=\"Pausa\"></a><IMG SRC=\"../agc/images/vdc_LB_resume_OFF_es.gif\" border=0 alt=\"Comienzo\">";
|
||||
var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF_es.gif\" border=0 alt=\"Pausa\"><IMG SRC=\"../agc/images/vdc_LB_resume_OFF_es.gif\" border=0 alt=\"Comienzo\">";
|
||||
@@ -3365,7 +3377,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code;
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code + "&manual_dial_filter=" + manual_dial_filter;
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(manDiaLnext_query);
|
||||
@@ -3379,14 +3391,36 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
var MDnextResponse_array=MDnextResponse.split("\n");
|
||||
MDnextCID = MDnextResponse_array[0];
|
||||
if ( (MDnextCID == "TOLVA VACÍA") || (MDnextCID == "DNC NÚMERO") )
|
||||
var regMNCvar = new RegExp("HOPPER","ig");
|
||||
var regMDFvarDNC = new RegExp("DNC","ig");
|
||||
var regMDFvarCAMP = new RegExp("CAMPLISTS","ig");
|
||||
if ( (MDnextCID.match(regMNCvar)) || (MDnextCID.match(regMDFvarDNC)) || (MDnextCID.match(regMDFvarCAMP)) )
|
||||
{
|
||||
if (MDnextCID == "TOLVA VACÍA")
|
||||
{alert("No más Leads en el hopper de la campaña:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
var alert_displayed=0;
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
auto_dial_level=starting_dial_level;
|
||||
MainPanelToFront();
|
||||
CalLBacKsCounTCheck();
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber_es.gif\" border=0 alt=\"Marcar el Siguiente Número\"></a>";
|
||||
if (MDnextCID.match(regMNCvar))
|
||||
{alert("No más Leads en el hopper de la campaña:\n" + campaign); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarDNC))
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarCAMP))
|
||||
{alert("This phone number is not in the campaign lists:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (alert_displayed==0)
|
||||
{alert("Unspecified error:\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;}
|
||||
|
||||
if (starting_dial_level == 0)
|
||||
{
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber_es.gif\" border=0 alt=\"Marcar el Siguiente Número\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
||||
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML;
|
||||
reselect_alt_dial = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6439,7 +6473,8 @@ else
|
||||
.skb_text {font-size: 13px; font-family: sans-serif; font-weight: bold;}
|
||||
.ON_conf {font-size: 11px; font-family: monospace; color: black; background: #FFFF99}
|
||||
.OFF_conf {font-size: 11px; font-family: monospace; color: black; background: #FFCC77}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: hidden}
|
||||
.cust_form_text {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
|
||||
-->
|
||||
</style>
|
||||
@@ -6889,7 +6924,7 @@ GRABACIÓN ID: <font class="body_small"><span id="RecorDID"></span></font><BR>
|
||||
<font class="body_text">
|
||||
<?
|
||||
if ( ($multi_line_comments) )
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form\" value=\"\"></TEXTAREA>\n";}
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form_text\" value=\"\"></TEXTAREA>\n";}
|
||||
else
|
||||
{echo "<input type=text size=65 name=comments maxlength=255 class=\"cust_form\" value=\"\">\n";}
|
||||
?>
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
# - $omit_phone_code - ('Y','N')
|
||||
# - $no_delete_sessions - ('0','1')
|
||||
# - $LogouTKicKAlL - ('0','1');
|
||||
# - $manual_dial_filter = ('NONE','CAMPLISTS','DNC','CAMPLISTS_DNC');
|
||||
|
||||
# CHANGELOG:
|
||||
# 50629-1044 - First build of script
|
||||
@@ -143,10 +144,12 @@
|
||||
# 80128-1159 - fixed vicidial_log bugs
|
||||
# 80402-0121 - Fixes for manual dial transfers on some systems, removed /n persist flag
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80722-1000 - Fixed small bugs
|
||||
# 80815-1020 - Added manual dial list restriction option
|
||||
#
|
||||
|
||||
$version = '2.0.4-69';
|
||||
$build = '80424-0442';
|
||||
$version = '2.0.4-71';
|
||||
$build = '80815-1020';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -281,6 +284,8 @@ if (isset($_GET["status"])) {$status=$_GET["status"];}
|
||||
elseif (isset($_POST["status"])) {$status=$_POST["status"];}
|
||||
if (isset($_GET["LogouTKicKAlL"])) {$LogouTKicKAlL=$_GET["LogouTKicKAlL"];}
|
||||
elseif (isset($_POST["LogouTKicKAlL"])) {$LogouTKicKAlL=$_POST["LogouTKicKAlL"];}
|
||||
if (isset($_GET["manual_dial_filter"])) {$manual_dial_filter=$_GET["manual_dial_filter"];}
|
||||
elseif (isset($_POST["manual_dial_filter"])) {$manual_dial_filter=$_POST["manual_dial_filter"];}
|
||||
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -573,6 +578,33 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if (ereg("CAMPLISTS",$manual_dial_filter))
|
||||
{
|
||||
$stmt="SELECT list_id,active from vicidial_lists where campaign_id='$campaign'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$lists_to_parse = mysql_num_rows($rslt);
|
||||
$camp_lists='';
|
||||
$o=0;
|
||||
while ($lists_to_parse > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
if (ereg("Y", $rowx[1])) {$active_lists++; $camp_lists .= "'$rowx[0]',";}
|
||||
if (ereg("N", $rowx[1])) {$inactive_lists++;}
|
||||
$o++;
|
||||
}
|
||||
$camp_lists = eregi_replace(".$","",$camp_lists);
|
||||
|
||||
$stmt="SELECT count(*) FROM vicidial_list where phone_number='$phone_number' and list_id IN($camp_lists);";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
if ($row[0] < 1)
|
||||
{
|
||||
echo "NOMBRE NOT IN CAMPLISTS\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if ($stage=='lookup')
|
||||
{
|
||||
$stmt="SELECT lead_id FROM vicidial_list where phone_number='$phone_number' order by modify_date desc LIMIT 1;";
|
||||
|
||||
@@ -177,10 +177,14 @@
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
# 80722-1000 - Fixed quote display bug
|
||||
# 80815-1015 - Added manual dial list restriction option
|
||||
# 80823-2127 - Fixed form scroll for IE
|
||||
# 81012-0857 - Marker for 2.0.4.1rc5 release
|
||||
#
|
||||
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
$version = '2.0.4-152';
|
||||
$build = '81012-0857';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -285,6 +289,7 @@ $PreseT_DiaL_LinKs = '1'; # set to 1 to show a COMPOSER link for Dial Presets
|
||||
$LogiNAJAX = '1'; # set to 1 to do lookups
|
||||
$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
|
||||
$LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout
|
||||
$CamPManDiaLLocK = '0'; # set to 1 to lock out all manual dials to only numbers in camp lists
|
||||
|
||||
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
|
||||
|
||||
@@ -348,6 +353,11 @@ echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build -->\n";
|
||||
|
||||
if ($CamPManDiaLLocK > 0)
|
||||
{$manual_dial_filter = "CAMPLISTS_ONLY";}
|
||||
else
|
||||
{$manual_dial_filter = "NONE";}
|
||||
|
||||
if ($campaign_login_list > 0)
|
||||
{
|
||||
$camp_form_code = "<select size=1 name=VD_campaign id=VD_campaign onFocus=\"login_allowable_campaigns()\">\n";
|
||||
@@ -1819,6 +1829,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var LogouTKicKAlL = '<? echo $LogouTKicKAlL ?>';
|
||||
var flag_channels = '<? echo $flag_channels ?>';
|
||||
var flag_string = '<? echo $flag_string ?>';
|
||||
var manual_dial_filter = '<? echo $manual_dial_filter ?>';
|
||||
var useIE = '<? echo $useIE ?>';
|
||||
var DiaLControl_auto_HTML = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF.gif\" border=0 alt=\"Pause\"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"../agc/images/vdc_LB_resume.gif\" border=0 alt=\"Résumé\"></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"../agc/images/vdc_LB_pause.gif\" border=0 alt=\"Pause\"></a><IMG SRC=\"../agc/images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Résumé\">";
|
||||
var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF.gif\" border=0 alt=\"Pause\"><IMG SRC=\"../agc/images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Résumé\">";
|
||||
@@ -3365,7 +3377,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code;
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code + "&manual_dial_filter=" + manual_dial_filter;
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(manDiaLnext_query);
|
||||
@@ -3379,14 +3391,36 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
var MDnextResponse_array=MDnextResponse.split("\n");
|
||||
MDnextCID = MDnextResponse_array[0];
|
||||
if ( (MDnextCID == "LISTE D'APPEL VIDE") || (MDnextCID == "DNC NOMBRE") )
|
||||
var regMNCvar = new RegExp("HOPPER","ig");
|
||||
var regMDFvarDNC = new RegExp("DNC","ig");
|
||||
var regMDFvarCAMP = new RegExp("CAMPLISTS","ig");
|
||||
if ( (MDnextCID.match(regMNCvar)) || (MDnextCID.match(regMDFvarDNC)) || (MDnextCID.match(regMDFvarCAMP)) )
|
||||
{
|
||||
if (MDnextCID == "LISTE D'APPEL VIDE")
|
||||
{alert("Plus de fiches clients éligibles pour cette campagne:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
var alert_displayed=0;
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
auto_dial_level=starting_dial_level;
|
||||
MainPanelToFront();
|
||||
CalLBacKsCounTCheck();
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Appel Numéro Suivant\"></a>";
|
||||
if (MDnextCID.match(regMNCvar))
|
||||
{alert("Plus de fiches clients éligibles pour cette campagne:\n" + campaign); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarDNC))
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarCAMP))
|
||||
{alert("This phone number is not in the campaign lists:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (alert_displayed==0)
|
||||
{alert("Unspecified error:\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;}
|
||||
|
||||
if (starting_dial_level == 0)
|
||||
{
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Appel Numéro Suivant\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
||||
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML;
|
||||
reselect_alt_dial = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6439,7 +6473,8 @@ else
|
||||
.skb_text {font-size: 13px; font-family: sans-serif; font-weight: bold;}
|
||||
.ON_conf {font-size: 11px; font-family: monospace; color: black; background: #FFFF99}
|
||||
.OFF_conf {font-size: 11px; font-family: monospace; color: black; background: #FFCC77}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: hidden}
|
||||
.cust_form_text {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
|
||||
-->
|
||||
</style>
|
||||
@@ -6889,7 +6924,7 @@ IDENTIFIANT: <font class="body_small"><span id="RecorDID"></span></font><BR>
|
||||
<font class="body_text">
|
||||
<?
|
||||
if ( ($multi_line_comments) )
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form\" value=\"\"></TEXTAREA>\n";}
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form_text\" value=\"\"></TEXTAREA>\n";}
|
||||
else
|
||||
{echo "<input type=text size=65 name=comments maxlength=255 class=\"cust_form\" value=\"\">\n";}
|
||||
?>
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
# - $omit_phone_code - ('Y','N')
|
||||
# - $no_delete_sessions - ('0','1')
|
||||
# - $LogouTKicKAlL - ('0','1');
|
||||
# - $manual_dial_filter = ('NONE','CAMPLISTS','DNC','CAMPLISTS_DNC');
|
||||
|
||||
# CHANGELOG:
|
||||
# 50629-1044 - First build of script
|
||||
@@ -143,10 +144,12 @@
|
||||
# 80128-1159 - fixed vicidial_log bugs
|
||||
# 80402-0121 - Fixes for manual dial transfers on some systems, removed /n persist flag
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80722-1000 - Fixed small bugs
|
||||
# 80815-1020 - Added manual dial list restriction option
|
||||
#
|
||||
|
||||
$version = '2.0.4-69';
|
||||
$build = '80424-0442';
|
||||
$version = '2.0.4-71';
|
||||
$build = '80815-1020';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -281,6 +284,8 @@ if (isset($_GET["status"])) {$status=$_GET["status"];}
|
||||
elseif (isset($_POST["status"])) {$status=$_POST["status"];}
|
||||
if (isset($_GET["LogouTKicKAlL"])) {$LogouTKicKAlL=$_GET["LogouTKicKAlL"];}
|
||||
elseif (isset($_POST["LogouTKicKAlL"])) {$LogouTKicKAlL=$_POST["LogouTKicKAlL"];}
|
||||
if (isset($_GET["manual_dial_filter"])) {$manual_dial_filter=$_GET["manual_dial_filter"];}
|
||||
elseif (isset($_POST["manual_dial_filter"])) {$manual_dial_filter=$_POST["manual_dial_filter"];}
|
||||
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -573,6 +578,33 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if (ereg("CAMPLISTS",$manual_dial_filter))
|
||||
{
|
||||
$stmt="SELECT list_id,active from vicidial_lists where campaign_id='$campaign'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$lists_to_parse = mysql_num_rows($rslt);
|
||||
$camp_lists='';
|
||||
$o=0;
|
||||
while ($lists_to_parse > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
if (ereg("Y", $rowx[1])) {$active_lists++; $camp_lists .= "'$rowx[0]',";}
|
||||
if (ereg("N", $rowx[1])) {$inactive_lists++;}
|
||||
$o++;
|
||||
}
|
||||
$camp_lists = eregi_replace(".$","",$camp_lists);
|
||||
|
||||
$stmt="SELECT count(*) FROM vicidial_list where phone_number='$phone_number' and list_id IN($camp_lists);";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
if ($row[0] < 1)
|
||||
{
|
||||
echo "NUMERO NOT IN CAMPLISTS\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if ($stage=='lookup')
|
||||
{
|
||||
$stmt="SELECT lead_id FROM vicidial_list where phone_number='$phone_number' order by modify_date desc LIMIT 1;";
|
||||
|
||||
@@ -177,10 +177,14 @@
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
# 80722-1000 - Fixed quote display bug
|
||||
# 80815-1015 - Added manual dial list restriction option
|
||||
# 80823-2127 - Fixed form scroll for IE
|
||||
# 81012-0857 - Marker for 2.0.4.1rc5 release
|
||||
#
|
||||
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
$version = '2.0.4-152';
|
||||
$build = '81012-0857';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -285,6 +289,7 @@ $PreseT_DiaL_LinKs = '1'; # set to 1 to show a CHIAMA link for Dial Presets
|
||||
$LogiNAJAX = '1'; # set to 1 to do lookups
|
||||
$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
|
||||
$LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout
|
||||
$CamPManDiaLLocK = '0'; # set to 1 to lock out all manual dials to only numbers in camp lists
|
||||
|
||||
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
|
||||
|
||||
@@ -348,6 +353,11 @@ echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSIONE: $version CONFIGURAZIONE: $build -->\n";
|
||||
|
||||
if ($CamPManDiaLLocK > 0)
|
||||
{$manual_dial_filter = "CAMPLISTS_ONLY";}
|
||||
else
|
||||
{$manual_dial_filter = "NONE";}
|
||||
|
||||
if ($campaign_login_list > 0)
|
||||
{
|
||||
$camp_form_code = "<select size=1 name=VD_campaign id=VD_campaign onFocus=\"login_allowable_campaigns()\">\n";
|
||||
@@ -1819,6 +1829,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var LogouTKicKAlL = '<? echo $LogouTKicKAlL ?>';
|
||||
var flag_channels = '<? echo $flag_channels ?>';
|
||||
var flag_string = '<? echo $flag_string ?>';
|
||||
var manual_dial_filter = '<? echo $manual_dial_filter ?>';
|
||||
var useIE = '<? echo $useIE ?>';
|
||||
var DiaLControl_auto_HTML = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF.gif\" border=0 alt=\"Pausa\"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"../agc/images/vdc_LB_resume.gif\" border=0 alt=\"Riprendi\"></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"../agc/images/vdc_LB_pause.gif\" border=0 alt=\"Pausa\"></a><IMG SRC=\"../agc/images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Riprendi\">";
|
||||
var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF.gif\" border=0 alt=\"Pausa\"><IMG SRC=\"../agc/images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Riprendi\">";
|
||||
@@ -3365,7 +3377,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code;
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code + "&manual_dial_filter=" + manual_dial_filter;
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(manDiaLnext_query);
|
||||
@@ -3379,14 +3391,36 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
var MDnextResponse_array=MDnextResponse.split("\n");
|
||||
MDnextCID = MDnextResponse_array[0];
|
||||
if ( (MDnextCID == "LISTA DI CHIAMATA VUOTA") || (MDnextCID == "DNC NUMERO") )
|
||||
var regMNCvar = new RegExp("HOPPER","ig");
|
||||
var regMDFvarDNC = new RegExp("DNC","ig");
|
||||
var regMDFvarCAMP = new RegExp("CAMPLISTS","ig");
|
||||
if ( (MDnextCID.match(regMNCvar)) || (MDnextCID.match(regMDFvarDNC)) || (MDnextCID.match(regMDFvarCAMP)) )
|
||||
{
|
||||
if (MDnextCID == "LISTA DI CHIAMATA VUOTA")
|
||||
{alert("Non ci sono contatti nella lista per la campagna:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
var alert_displayed=0;
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
auto_dial_level=starting_dial_level;
|
||||
MainPanelToFront();
|
||||
CalLBacKsCounTCheck();
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Chiama il numero seguente\"></a>";
|
||||
if (MDnextCID.match(regMNCvar))
|
||||
{alert("Non ci sono contatti nella lista per la campagna:\n" + campaign); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarDNC))
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarCAMP))
|
||||
{alert("This phone number is not in the campaign lists:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (alert_displayed==0)
|
||||
{alert("Unspecified error:\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;}
|
||||
|
||||
if (starting_dial_level == 0)
|
||||
{
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Chiama il numero seguente\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
||||
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML;
|
||||
reselect_alt_dial = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6439,7 +6473,8 @@ else
|
||||
.skb_text {font-size: 13px; font-family: sans-serif; font-weight: bold;}
|
||||
.ON_conf {font-size: 11px; font-family: monospace; color: black; background: #FFFF99}
|
||||
.OFF_conf {font-size: 11px; font-family: monospace; color: black; background: #FFCC77}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: hidden}
|
||||
.cust_form_text {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
|
||||
-->
|
||||
</style>
|
||||
@@ -6889,7 +6924,7 @@ IDENTIFICAZIONE Registrazione: <font class="body_small"><span id="RecorDID"></sp
|
||||
<font class="body_text">
|
||||
<?
|
||||
if ( ($multi_line_comments) )
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form\" value=\"\"></TEXTAREA>\n";}
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form_text\" value=\"\"></TEXTAREA>\n";}
|
||||
else
|
||||
{echo "<input type=text size=65 name=comments maxlength=255 class=\"cust_form\" value=\"\">\n";}
|
||||
?>
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
# - $omit_phone_code - ('Y','N')
|
||||
# - $no_delete_sessions - ('0','1')
|
||||
# - $LogouTKicKAlL - ('0','1');
|
||||
# - $manual_dial_filter = ('NONE','CAMPLISTS','DNC','CAMPLISTS_DNC');
|
||||
|
||||
# CHANGELOG:
|
||||
# 50629-1044 - First build of script
|
||||
@@ -143,10 +144,12 @@
|
||||
# 80128-1159 - fixed vicidial_log bugs
|
||||
# 80402-0121 - Fixes for manual dial transfers on some systems, removed /n persist flag
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80722-1000 - Fixed small bugs
|
||||
# 80815-1020 - Added manual dial list restriction option
|
||||
#
|
||||
|
||||
$version = '2.0.4-69';
|
||||
$build = '80424-0442';
|
||||
$version = '2.0.4-71';
|
||||
$build = '80815-1020';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -281,6 +284,8 @@ if (isset($_GET["status"])) {$status=$_GET["status"];}
|
||||
elseif (isset($_POST["status"])) {$status=$_POST["status"];}
|
||||
if (isset($_GET["LogouTKicKAlL"])) {$LogouTKicKAlL=$_GET["LogouTKicKAlL"];}
|
||||
elseif (isset($_POST["LogouTKicKAlL"])) {$LogouTKicKAlL=$_POST["LogouTKicKAlL"];}
|
||||
if (isset($_GET["manual_dial_filter"])) {$manual_dial_filter=$_GET["manual_dial_filter"];}
|
||||
elseif (isset($_POST["manual_dial_filter"])) {$manual_dial_filter=$_POST["manual_dial_filter"];}
|
||||
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -573,6 +578,33 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if (ereg("CAMPLISTS",$manual_dial_filter))
|
||||
{
|
||||
$stmt="SELECT list_id,active from vicidial_lists where campaign_id='$campaign'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$lists_to_parse = mysql_num_rows($rslt);
|
||||
$camp_lists='';
|
||||
$o=0;
|
||||
while ($lists_to_parse > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
if (ereg("Y", $rowx[1])) {$active_lists++; $camp_lists .= "'$rowx[0]',";}
|
||||
if (ereg("N", $rowx[1])) {$inactive_lists++;}
|
||||
$o++;
|
||||
}
|
||||
$camp_lists = eregi_replace(".$","",$camp_lists);
|
||||
|
||||
$stmt="SELECT count(*) FROM vicidial_list where phone_number='$phone_number' and list_id IN($camp_lists);";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
if ($row[0] < 1)
|
||||
{
|
||||
echo "NUMER NOT IN CAMPLISTS\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if ($stage=='lookup')
|
||||
{
|
||||
$stmt="SELECT lead_id FROM vicidial_list where phone_number='$phone_number' order by modify_date desc LIMIT 1;";
|
||||
|
||||
@@ -177,10 +177,14 @@
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
# 80722-1000 - Fixed quote display bug
|
||||
# 80815-1015 - Added manual dial list restriction option
|
||||
# 80823-2127 - Fixed form scroll for IE
|
||||
# 81012-0857 - Marker for 2.0.4.1rc5 release
|
||||
#
|
||||
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
$version = '2.0.4-152';
|
||||
$build = '81012-0857';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -285,6 +289,7 @@ $PreseT_DiaL_LinKs = '1'; # set to 1 to show a WYBIERZ link for Dial Presets
|
||||
$LogiNAJAX = '1'; # set to 1 to do lookups
|
||||
$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
|
||||
$LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout
|
||||
$CamPManDiaLLocK = '0'; # set to 1 to lock out all manual dials to only numbers in camp lists
|
||||
|
||||
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
|
||||
|
||||
@@ -348,6 +353,11 @@ echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- WERSJA: $version KOMPILACJA: $build -->\n";
|
||||
|
||||
if ($CamPManDiaLLocK > 0)
|
||||
{$manual_dial_filter = "CAMPLISTS_ONLY";}
|
||||
else
|
||||
{$manual_dial_filter = "NONE";}
|
||||
|
||||
if ($campaign_login_list > 0)
|
||||
{
|
||||
$camp_form_code = "<select size=1 name=VD_campaign id=VD_campaign onFocus=\"login_allowable_campaigns()\">\n";
|
||||
@@ -1819,6 +1829,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var LogouTKicKAlL = '<? echo $LogouTKicKAlL ?>';
|
||||
var flag_channels = '<? echo $flag_channels ?>';
|
||||
var flag_string = '<? echo $flag_string ?>';
|
||||
var manual_dial_filter = '<? echo $manual_dial_filter ?>';
|
||||
var useIE = '<? echo $useIE ?>';
|
||||
var DiaLControl_auto_HTML = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF_pl.gif\" border=0 alt=\"Przerwa\"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"../agc/images/vdc_LB_resume_pl.gif\" border=0 alt=\"Ponów\"></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"../agc/images/vdc_LB_pause_pl.gif\" border=0 alt=\"Przerwa\"></a><IMG SRC=\"../agc/images/vdc_LB_resume_OFF_pl.gif\" border=0 alt=\"Ponów\">";
|
||||
var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF_pl.gif\" border=0 alt=\"Przerwa\"><IMG SRC=\"../agc/images/vdc_LB_resume_OFF_pl.gif\" border=0 alt=\"Ponów\">";
|
||||
@@ -3365,7 +3377,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code;
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code + "&manual_dial_filter=" + manual_dial_filter;
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(manDiaLnext_query);
|
||||
@@ -3379,14 +3391,36 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
var MDnextResponse_array=MDnextResponse.split("\n");
|
||||
MDnextCID = MDnextResponse_array[0];
|
||||
if ( (MDnextCID == "Zasobnik pusty") || (MDnextCID == "DNC NUMER") )
|
||||
var regMNCvar = new RegExp("HOPPER","ig");
|
||||
var regMDFvarDNC = new RegExp("DNC","ig");
|
||||
var regMDFvarCAMP = new RegExp("CAMPLISTS","ig");
|
||||
if ( (MDnextCID.match(regMNCvar)) || (MDnextCID.match(regMDFvarDNC)) || (MDnextCID.match(regMDFvarCAMP)) )
|
||||
{
|
||||
if (MDnextCID == "Zasobnik pusty")
|
||||
{alert("W zasobniku nie ma już więcej konaktów do wykonania połączeń dla tej kampanii:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
var alert_displayed=0;
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
auto_dial_level=starting_dial_level;
|
||||
MainPanelToFront();
|
||||
CalLBacKsCounTCheck();
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Wybierz kolejny numer\"></a>";
|
||||
if (MDnextCID.match(regMNCvar))
|
||||
{alert("W zasobniku nie ma już więcej konaktów do wykonania połączeń dla tej kampanii:\n" + campaign); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarDNC))
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarCAMP))
|
||||
{alert("This phone number is not in the campaign lists:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (alert_displayed==0)
|
||||
{alert("Unspecified error:\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;}
|
||||
|
||||
if (starting_dial_level == 0)
|
||||
{
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Wybierz kolejny numer\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
||||
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML;
|
||||
reselect_alt_dial = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6439,7 +6473,8 @@ else
|
||||
.skb_text {font-size: 13px; font-family: sans-serif; font-weight: bold;}
|
||||
.ON_conf {font-size: 11px; font-family: monospace; color: black; background: #FFFF99}
|
||||
.OFF_conf {font-size: 11px; font-family: monospace; color: black; background: #FFCC77}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: hidden}
|
||||
.cust_form_text {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
|
||||
-->
|
||||
</style>
|
||||
@@ -6889,7 +6924,7 @@ NUMER NAGRANIA: <font class="body_small"><span id="RecorDID"></span></font><BR>
|
||||
<font class="body_text">
|
||||
<?
|
||||
if ( ($multi_line_comments) )
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form\" value=\"\"></TEXTAREA>\n";}
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form_text\" value=\"\"></TEXTAREA>\n";}
|
||||
else
|
||||
{echo "<input type=text size=65 name=comments maxlength=255 class=\"cust_form\" value=\"\">\n";}
|
||||
?>
|
||||
|
||||
@@ -70,6 +70,7 @@
|
||||
# - $omit_phone_code - ('Y','N')
|
||||
# - $no_delete_sessions - ('0','1')
|
||||
# - $LogouTKicKAlL - ('0','1');
|
||||
# - $manual_dial_filter = ('NONE','CAMPLISTS','DNC','CAMPLISTS_DNC');
|
||||
|
||||
# CHANGELOG:
|
||||
# 50629-1044 - First build of script
|
||||
@@ -143,10 +144,12 @@
|
||||
# 80128-1159 - fixed vicidial_log bugs
|
||||
# 80402-0121 - Fixes for manual dial transfers on some systems, removed /n persist flag
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80722-1000 - Fixed small bugs
|
||||
# 80815-1020 - Added manual dial list restriction option
|
||||
#
|
||||
|
||||
$version = '2.0.4-69';
|
||||
$build = '80424-0442';
|
||||
$version = '2.0.4-71';
|
||||
$build = '80815-1020';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -281,6 +284,8 @@ if (isset($_GET["status"])) {$status=$_GET["status"];}
|
||||
elseif (isset($_POST["status"])) {$status=$_POST["status"];}
|
||||
if (isset($_GET["LogouTKicKAlL"])) {$LogouTKicKAlL=$_GET["LogouTKicKAlL"];}
|
||||
elseif (isset($_POST["LogouTKicKAlL"])) {$LogouTKicKAlL=$_POST["LogouTKicKAlL"];}
|
||||
if (isset($_GET["manual_dial_filter"])) {$manual_dial_filter=$_GET["manual_dial_filter"];}
|
||||
elseif (isset($_POST["manual_dial_filter"])) {$manual_dial_filter=$_POST["manual_dial_filter"];}
|
||||
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
@@ -573,6 +578,33 @@ if ($ACTION == 'manDiaLnextCaLL')
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if (ereg("CAMPLISTS",$manual_dial_filter))
|
||||
{
|
||||
$stmt="SELECT list_id,active from vicidial_lists where campaign_id='$campaign'";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$lists_to_parse = mysql_num_rows($rslt);
|
||||
$camp_lists='';
|
||||
$o=0;
|
||||
while ($lists_to_parse > $o)
|
||||
{
|
||||
$rowx=mysql_fetch_row($rslt);
|
||||
if (ereg("Y", $rowx[1])) {$active_lists++; $camp_lists .= "'$rowx[0]',";}
|
||||
if (ereg("N", $rowx[1])) {$inactive_lists++;}
|
||||
$o++;
|
||||
}
|
||||
$camp_lists = eregi_replace(".$","",$camp_lists);
|
||||
|
||||
$stmt="SELECT count(*) FROM vicidial_list where phone_number='$phone_number' and list_id IN($camp_lists);";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
if ($row[0] < 1)
|
||||
{
|
||||
echo "NÚMERO NOT IN CAMPLISTS\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
if ($stage=='lookup')
|
||||
{
|
||||
$stmt="SELECT lead_id FROM vicidial_list where phone_number='$phone_number' order by modify_date desc LIMIT 1;";
|
||||
|
||||
@@ -177,10 +177,14 @@
|
||||
# 80428-0413 - UTF8 changes and testing
|
||||
# 80507-0932 - Fixed Script display bug (+ instead of space)
|
||||
# 80519-1425 - Added calls in queue display
|
||||
# 80722-1000 - Fixed quote display bug
|
||||
# 80815-1015 - Added manual dial list restriction option
|
||||
# 80823-2127 - Fixed form scroll for IE
|
||||
# 81012-0857 - Marker for 2.0.4.1rc5 release
|
||||
#
|
||||
|
||||
$version = '2.0.4-148';
|
||||
$build = '80519-1425';
|
||||
$version = '2.0.4-152';
|
||||
$build = '81012-0857';
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
@@ -285,6 +289,7 @@ $PreseT_DiaL_LinKs = '1'; # set to 1 to show a SELETOR link for Dial Presets
|
||||
$LogiNAJAX = '1'; # set to 1 to do lookups
|
||||
$HidEMonitoRSessionS = '1'; # set to 1 to hide remote monitoring channels from "session calls"
|
||||
$LogouTKicKAlL = '1'; # set to 1 to hangup all calls in session upon agent logout
|
||||
$CamPManDiaLLocK = '0'; # set to 1 to lock out all manual dials to only numbers in camp lists
|
||||
|
||||
$TEST_all_statuses = '0'; # TEST variable allows all statuses in dispo screen
|
||||
|
||||
@@ -348,6 +353,11 @@ echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSÃO: $version CONFIGURAÇÃO: $build -->\n";
|
||||
|
||||
if ($CamPManDiaLLocK > 0)
|
||||
{$manual_dial_filter = "CAMPLISTS_ONLY";}
|
||||
else
|
||||
{$manual_dial_filter = "NONE";}
|
||||
|
||||
if ($campaign_login_list > 0)
|
||||
{
|
||||
$camp_form_code = "<select size=1 name=VD_campaign id=VD_campaign onFocus=\"login_allowable_campaigns()\">\n";
|
||||
@@ -1819,6 +1829,8 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
var LogouTKicKAlL = '<? echo $LogouTKicKAlL ?>';
|
||||
var flag_channels = '<? echo $flag_channels ?>';
|
||||
var flag_string = '<? echo $flag_string ?>';
|
||||
var manual_dial_filter = '<? echo $manual_dial_filter ?>';
|
||||
var useIE = '<? echo $useIE ?>';
|
||||
var DiaLControl_auto_HTML = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF.gif\" border=0 alt=\"Pausa\"><a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADready');\"><IMG SRC=\"../agc/images/vdc_LB_resume.gif\" border=0 alt=\"Resumo\"></a>";
|
||||
var DiaLControl_auto_HTML_ready = "<a href=\"#\" onclick=\"AutoDial_ReSume_PauSe('VDADpause');\"><IMG SRC=\"../agc/images/vdc_LB_pause.gif\" border=0 alt=\"Pausa\"></a><IMG SRC=\"../agc/images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resumo\">";
|
||||
var DiaLControl_auto_HTML_OFF = "<IMG SRC=\"../agc/images/vdc_LB_pause_OFF.gif\" border=0 alt=\"Pausa\"><IMG SRC=\"../agc/images/vdc_LB_resume_OFF.gif\" border=0 alt=\"Resumo\">";
|
||||
@@ -3365,7 +3377,7 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code;
|
||||
manDiaLnext_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&ACTION=manDiaLnextCaLL&conf_exten=" + session_id + "&user=" + user + "&pass=" + pass + "&campaign=" + campaign + "&ext_context=" + ext_context + "&dial_timeout=" + dial_timeout + "&dial_prefix=" + dial_prefix + "&campaign_cid=" + campaign_cid + "&preview=" + man_preview + "&agent_log_id=" + agent_log_id + "&callback_id=" + mdnCBid + "&lead_id=" + mdnBDleadid + "&phone_code=" + mdnDiaLCodE + "&phone_number=" + mdnPhonENumbeR + "&list_id=" + mdnLisT_id + "&stage=" + mdnStagE + "&use_internal_dnc=" + use_internal_dnc + "&omit_phone_code=" + omit_phone_code + "&manual_dial_filter=" + manual_dial_filter;
|
||||
xmlhttp.open('POST', 'vdc_db_query.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(manDiaLnext_query);
|
||||
@@ -3379,14 +3391,36 @@ if ($enable_fast_refresh < 1) {echo "\tvar refresh_interval = 1000;\n";}
|
||||
|
||||
var MDnextResponse_array=MDnextResponse.split("\n");
|
||||
MDnextCID = MDnextResponse_array[0];
|
||||
if ( (MDnextCID == "FUNIL VAZIO") || (MDnextCID == "DNC NÚMERO") )
|
||||
var regMNCvar = new RegExp("HOPPER","ig");
|
||||
var regMDFvarDNC = new RegExp("DNC","ig");
|
||||
var regMDFvarCAMP = new RegExp("CAMPLISTS","ig");
|
||||
if ( (MDnextCID.match(regMNCvar)) || (MDnextCID.match(regMDFvarDNC)) || (MDnextCID.match(regMDFvarCAMP)) )
|
||||
{
|
||||
if (MDnextCID == "FUNIL VAZIO")
|
||||
{alert("Não mais conduz no funil para a campanha:\n" + campaign);}
|
||||
else
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR);}
|
||||
var alert_displayed=0;
|
||||
alt_phone_dialing=starting_alt_phone_dialing;
|
||||
auto_dial_level=starting_dial_level;
|
||||
MainPanelToFront();
|
||||
CalLBacKsCounTCheck();
|
||||
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Número Seguinte Do Seletor\"></a>";
|
||||
if (MDnextCID.match(regMNCvar))
|
||||
{alert("Não mais conduz no funil para a campanha:\n" + campaign); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarDNC))
|
||||
{alert("This phone number is in the DNC list:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (MDnextCID.match(regMDFvarCAMP))
|
||||
{alert("This phone number is not in the campaign lists:\n" + mdnPhonENumbeR); alert_displayed=1;}
|
||||
if (alert_displayed==0)
|
||||
{alert("Unspecified error:\n" + mdnPhonENumbeR + "|" + MDnextCID); alert_displayed=1;}
|
||||
|
||||
if (starting_dial_level == 0)
|
||||
{
|
||||
document.getElementById("DiaLControl").innerHTML = "<a href=\"#\" onclick=\"ManualDialNext('','','','','');\"><IMG SRC=\"../agc/images/vdc_LB_dialnextnumber.gif\" border=0 alt=\"Número Seguinte Do Seletor\"></a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("MainStatuSSpan").style.background = panel_bgcolor;
|
||||
document.getElementById("DiaLControl").innerHTML = DiaLControl_auto_HTML;
|
||||
reselect_alt_dial = 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -6439,7 +6473,8 @@ else
|
||||
.skb_text {font-size: 13px; font-family: sans-serif; font-weight: bold;}
|
||||
.ON_conf {font-size: 11px; font-family: monospace; color: black; background: #FFFF99}
|
||||
.OFF_conf {font-size: 11px; font-family: monospace; color: black; background: #FFCC77}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
.cust_form {font-family: sans-serif; font-size: 10px; overflow: hidden}
|
||||
.cust_form_text {font-family: sans-serif; font-size: 10px; overflow: auto}
|
||||
|
||||
-->
|
||||
</style>
|
||||
@@ -6889,7 +6924,7 @@ ID REGISTRO: <font class="body_small"><span id="RecorDID"></span></font><BR>
|
||||
<font class="body_text">
|
||||
<?
|
||||
if ( ($multi_line_comments) )
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form\" value=\"\"></TEXTAREA>\n";}
|
||||
{echo "<TEXTAREA NAME=comments ROWS=2 COLS=65 class=\"cust_form_text\" value=\"\"></TEXTAREA>\n";}
|
||||
else
|
||||
{echo "<input type=text size=65 name=comments maxlength=255 class=\"cust_form\" value=\"\">\n";}
|
||||
?>
|
||||
|
||||
@@ -0,0 +1,482 @@
|
||||
<?
|
||||
### active_list_refresh.php
|
||||
###
|
||||
### Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
###
|
||||
### This script is designed purely to serve updates of the live data to the display scripts
|
||||
### This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table
|
||||
###
|
||||
### required variables:
|
||||
### - $server_ip
|
||||
### - $session_name
|
||||
### - $user
|
||||
### - $pass
|
||||
### optional variables:
|
||||
### - $ADD - ('1','2','3','4','5')
|
||||
### - $order - ('asc','desc')
|
||||
### - $format - ('text','table','menu','selectlist','textarea')
|
||||
### - $bgcolor - ('#123456','white','black','etc...')
|
||||
### - $txtcolor - ('#654321','black','white','etc...')
|
||||
### - $txtsize - ('1','2','3','etc...')
|
||||
### - $selectsize - ('2','3','4','etc...')
|
||||
### - $selectfontsize - ('8','10','12','etc...')
|
||||
### - $selectedext - ('cc100')
|
||||
### - $selectedtrunk - ('Zap/25-1')
|
||||
### - $selectedlocal - ('SIP/cc100')
|
||||
### - $textareaheight - ('8','10','12','etc...')
|
||||
### - $textareawidth - ('8','10','12','etc...')
|
||||
### - $field_name - ('extension','busyext','extension_xfer','etc...')
|
||||
###
|
||||
|
||||
# changes
|
||||
# 50323-1147 - First build of script
|
||||
# 50401-1132 - small formatting changes
|
||||
# 50502-1402 - added field_name as modifiable variable
|
||||
# 50503-1213 - added session_name checking for extra security
|
||||
# 50503-1311 - added conferences list
|
||||
# 50610-1155 - Added NULL check on MySQL results to reduced errors
|
||||
# 50711-1209 - removed HTTP authentication in favor of user/pass vars
|
||||
# 60421-1155 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
||||
# 60619-1118 - Added variable filters to close security holes for login form
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
### If you have globals turned off uncomment these lines
|
||||
if (isset($_GET["user"])) {$user=$_GET["user"];}
|
||||
elseif (isset($_POST["user"])) {$user=$_POST["user"];}
|
||||
if (isset($_GET["pass"])) {$pass=$_GET["pass"];}
|
||||
elseif (isset($_POST["pass"])) {$pass=$_POST["pass"];}
|
||||
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
|
||||
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
|
||||
if (isset($_GET["session_name"])) {$session_name=$_GET["session_name"];}
|
||||
elseif (isset($_POST["session_name"])) {$session_name=$_POST["session_name"];}
|
||||
if (isset($_GET["format"])) {$format=$_GET["format"];}
|
||||
elseif (isset($_POST["format"])) {$format=$_POST["format"];}
|
||||
if (isset($_GET["ADD"])) {$ADD=$_GET["ADD"];}
|
||||
elseif (isset($_POST["ADD"])) {$ADD=$_POST["ADD"];}
|
||||
if (isset($_GET["order"])) {$order=$_GET["order"];}
|
||||
elseif (isset($_POST["order"])) {$order=$_POST["order"];}
|
||||
if (isset($_GET["bgcolor"])) {$bgcolor=$_GET["bgcolor"];}
|
||||
elseif (isset($_POST["bgcolor"])) {$bgcolor=$_POST["bgcolor"];}
|
||||
if (isset($_GET["txtcolor"])) {$txtcolor=$_GET["txtcolor"];}
|
||||
elseif (isset($_POST["txtcolor"])) {$txtcolor=$_POST["txtcolor"];}
|
||||
if (isset($_GET["txtsize"])) {$txtsize=$_GET["txtsize"];}
|
||||
elseif (isset($_POST["txtsize"])) {$txtsize=$_POST["txtsize"];}
|
||||
if (isset($_GET["selectsize"])) {$selectsize=$_GET["selectsize"];}
|
||||
elseif (isset($_POST["selectsize"])) {$selectsize=$_POST["selectsize"];}
|
||||
if (isset($_GET["selectfontsize"])) {$selectfontsize=$_GET["selectfontsize"];}
|
||||
elseif (isset($_POST["selectfontsize"])) {$selectfontsize=$_POST["selectfontsize"];}
|
||||
if (isset($_GET["selectedext"])) {$selectedext=$_GET["selectedext"];}
|
||||
elseif (isset($_POST["selectedext"])) {$selectedext=$_POST["selectedext"];}
|
||||
if (isset($_GET["selectedtrunk"])) {$selectedtrunk=$_GET["selectedtrunk"];}
|
||||
elseif (isset($_POST["selectedtrunk"])) {$selectedtrunk=$_POST["selectedtrunk"];}
|
||||
if (isset($_GET["selectedlocal"])) {$selectedlocal=$_GET["selectedlocal"];}
|
||||
elseif (isset($_POST["selectedlocal"])) {$selectedlocal=$_POST["selectedlocal"];}
|
||||
if (isset($_GET["textareaheight"])) {$textareaheight=$_GET["textareaheight"];}
|
||||
elseif (isset($_POST["textareaheight"])) {$textareaheight=$_POST["textareaheight"];}
|
||||
if (isset($_GET["textareawidth"])) {$textareawidth=$_GET["textareawidth"];}
|
||||
elseif (isset($_POST["textareawidth"])) {$textareawidth=$_POST["textareawidth"];}
|
||||
if (isset($_GET["field_name"])) {$field_name=$_GET["field_name"];}
|
||||
elseif (isset($_POST["field_name"])) {$field_name=$_POST["field_name"];}
|
||||
|
||||
### security strip all non-alphanumeric characters out of the variables ###
|
||||
$user=ereg_replace("[^0-9a-zA-Z]","",$user);
|
||||
$pass=ereg_replace("[^0-9a-zA-Z]","",$pass);
|
||||
$ADD=ereg_replace("[^0-9]","",$ADD);
|
||||
$order=ereg_replace("[^0-9a-zA-Z]","",$order);
|
||||
$format=ereg_replace("[^0-9a-zA-Z]","",$format);
|
||||
$bgcolor=ereg_replace("[^\#0-9a-zA-Z]","",$bgcolor);
|
||||
$txtcolor=ereg_replace("[^\#0-9a-zA-Z]","",$txtcolor);
|
||||
$txtsize=ereg_replace("[^0-9a-zA-Z]","",$txtsize);
|
||||
$selectsize=ereg_replace("[^0-9a-zA-Z]","",$selectsize);
|
||||
$selectfontsize=ereg_replace("[^0-9a-zA-Z]","",$selectfontsize);
|
||||
$selectedext=ereg_replace("[^ \#\*\:\/\@\.\-\_0-9a-zA-Z]","",$selectedext);
|
||||
$selectedtrunk=ereg_replace("[^ \#\*\:\/\@\.\-\_0-9a-zA-Z]","",$selectedtrunk);
|
||||
$selectedlocal=ereg_replace("[^ \#\*\:\/\@\.\-\_0-9a-zA-Z]","",$selectedlocal);
|
||||
$textareaheight=ereg_replace("[^0-9a-zA-Z]","",$textareaheight);
|
||||
$textareawidth=ereg_replace("[^0-9a-zA-Z]","",$textareawidth);
|
||||
$field_name=ereg_replace("[^ \#\*\:\/\@\.\-\_0-9a-zA-Z]","",$field_name);
|
||||
|
||||
# default optional vars if not set
|
||||
if (!isset($ADD)) {$ADD="1";}
|
||||
if (!isset($order)) {$order='desc';}
|
||||
if (!isset($format)) {$format="text";}
|
||||
if (!isset($bgcolor)) {$bgcolor='white';}
|
||||
if (!isset($txtcolor)) {$txtcolor='black';}
|
||||
if (!isset($txtsize)) {$txtsize='2';}
|
||||
if (!isset($selectsize)) {$selectsize='4';}
|
||||
if (!isset($selectfontsize)) {$selectfontsize='10';}
|
||||
if (!isset($textareaheight)) {$textareaheight='10';}
|
||||
if (!isset($textareawidth)) {$textareawidth='20';}
|
||||
|
||||
$version = '0.0.8';
|
||||
$build = '60619-1118';
|
||||
$StarTtime = date("U");
|
||||
$NOW_DATE = date("Y-m-d");
|
||||
$NOW_TIME = date("Y-m-d H:i:s");
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$user' and pass='$pass' and user_level > 0;";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Nesprávny Užívateľské meno/Heslo: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Nesprávny server_ip: |$server_ip| or Nesprávny session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT count(*) from web_client_sessions where session_name='$session_name' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nesprávny session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
# do nothing for now
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($format=='table')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERZIA: $version POSTAVENÉ: $build ADD: $ADD server_ip: $server_ip-->\n";
|
||||
echo "<title>Zobraziť zoznamy: ";
|
||||
if ($ADD==1) {echo "Aktívne pobočky";}
|
||||
if ($ADD==2) {echo "Obsadené pobočky";}
|
||||
if ($ADD==3) {echo "Vonkajšie linky";}
|
||||
if ($ADD==4) {echo "Lokálne pobočky";}
|
||||
if ($ADD==5) {echo "Konferencie";}
|
||||
if ($ADD==99999) {echo "POMOC";}
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
######################
|
||||
# ADD=1 display all live extensions on a server
|
||||
######################
|
||||
if ($ADD==1)
|
||||
{
|
||||
$pt='pt';
|
||||
if (!$field_name) {$field_name = 'extension';}
|
||||
if ($format=='table') {echo "<TABLE WIDTH=120 BGCOLOR=$bgcolor cellpadding=0 cellspacing=0>\n";}
|
||||
if ($format=='menu') {echo "<SELECT SIZE=1 name=\"$field_name\">\n";}
|
||||
if ($format=='selectlist')
|
||||
{
|
||||
echo "<SELECT SIZE=$selectsize name=\"$field_name\" STYLE=\"font-family : sans-serif; font-size : $selectfontsize$pt\">\n";
|
||||
}
|
||||
if ($format=='textarea')
|
||||
{
|
||||
echo "<TEXTAREA ROWS=$textareaheight COLS=$textareawidth NAME=extension WRAP=off STYLE=\"font-family : sans-serif; font-size : $selectfontsize$pt\">";
|
||||
}
|
||||
|
||||
$stmt="SELECT extension,fullname FROM phones where server_ip = '$server_ip' order by extension $order";
|
||||
if ($format=='table') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$phones_to_print = mysql_num_rows($rslt);}
|
||||
$o=0;
|
||||
while ($phones_to_print > $o) {
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if ($format=='table')
|
||||
{
|
||||
echo "<TR><TD ALIGN=LEFT NOWRAP><FONT FACE=\"ARIAL,HELVETICA\" COLOR=$txtcolor SIZE=$txtsize>";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</TD></TR>\n";
|
||||
}
|
||||
if ( ($format=='text') or ($format=='textarea') )
|
||||
{
|
||||
echo "$row[0] - $row[1]\n";
|
||||
}
|
||||
if ( ($format=='menu') or ($format=='selectlist') )
|
||||
{
|
||||
echo "<OPTION ";
|
||||
if ($row[0]=="$selectedext") {echo "SELECTED ";}
|
||||
echo "VALUE=\"$row[0]\">";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</OPTION>\n";
|
||||
}
|
||||
$o++;
|
||||
}
|
||||
|
||||
if ($format=='table') {echo "</TABLE>\n";}
|
||||
if ($format=='menu') {echo "</SELECT>\n";}
|
||||
if ($format=='selectlist') {echo "</SELECT>\n";}
|
||||
if ($format=='textarea') {echo "</TEXTAREA>\n";}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
######################
|
||||
# ADD=2 display all busy extensions on a server
|
||||
######################
|
||||
if ($ADD==2)
|
||||
{
|
||||
if (!$field_name) {$field_name = 'busyext';}
|
||||
if ($format=='table') {echo "<TABLE WIDTH=120 BGCOLOR=$bgcolor cellpadding=0 cellspacing=0>\n";}
|
||||
if ($format=='menu') {echo "<SELECT SIZE=1 name=\"$field_name\">\n";}
|
||||
if ($format=='selectlist')
|
||||
{
|
||||
echo "<SELECT SIZE=$selectsize name=\"$field_name\" STYLE=\"font-family : sans-serif; font-size : $selectfontsize$pt\">\n";
|
||||
}
|
||||
if ($format=='textarea')
|
||||
{
|
||||
echo "<TEXTAREA ROWS=$textareaheight COLS=$textareawidth NAME=extension WRAP=off STYLE=\"font-family : sans-serif; font-size : $selectfontsize$pt\">";
|
||||
}
|
||||
|
||||
$stmt="SELECT extension FROM live_channels where server_ip = '$server_ip' order by extension $order";
|
||||
if ($format=='table') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$busys_to_print = mysql_num_rows($rslt);}
|
||||
$o=0;
|
||||
while ($busys_to_print > $o) {
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if ($format=='table')
|
||||
{
|
||||
echo "<TR><TD ALIGN=LEFT NOWRAP><FONT FACE=\"ARIAL,HELVETICA\" COLOR=$txtcolor SIZE=$txtsize>";
|
||||
echo "$row[0]";
|
||||
echo "</TD></TR>\n";
|
||||
}
|
||||
if ( ($format=='text') or ($format=='textarea') )
|
||||
{
|
||||
echo "$row[0]\n";
|
||||
}
|
||||
if ( ($format=='menu') or ($format=='selectlist') )
|
||||
{
|
||||
echo "<OPTION ";
|
||||
if ($row[0]=="$selectedext") {echo "SELECTED ";}
|
||||
echo "VALUE=\"$row[0]\">";
|
||||
echo "$row[0]";
|
||||
echo "</OPTION>\n";
|
||||
}
|
||||
$o++;
|
||||
}
|
||||
|
||||
if ($format=='table') {echo "</TABLE>\n";}
|
||||
if ($format=='menu') {echo "</SELECT>\n";}
|
||||
if ($format=='selectlist') {echo "</SELECT>\n";}
|
||||
if ($format=='textarea') {echo "</TEXTAREA>\n";}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
######################
|
||||
# ADD=3 display all busy outside lines(trunks) on a server
|
||||
######################
|
||||
if ($ADD==3)
|
||||
{
|
||||
if (!$field_name) {$field_name = 'trunk';}
|
||||
if ($format=='table') {echo "<TABLE WIDTH=120 BGCOLOR=$bgcolor cellpadding=0 cellspacing=0>\n";}
|
||||
if ($format=='menu') {echo "<SELECT SIZE=1 name=\"$field_name\">\n";}
|
||||
if ($format=='selectlist')
|
||||
{
|
||||
echo "<SELECT SIZE=$selectsize name=\"$field_name\" STYLE=\"font-family : sans-serif; font-size : $selectfontsize$pt\">\n";
|
||||
}
|
||||
if ($format=='textarea')
|
||||
{
|
||||
echo "<TEXTAREA ROWS=$textareaheight COLS=$textareawidth NAME=extension WRAP=off STYLE=\"font-family : sans-serif; font-size : $selectfontsize$pt\">";
|
||||
}
|
||||
|
||||
$stmt="SELECT channel, extension FROM live_channels where server_ip = '$server_ip' order by channel $order";
|
||||
if ($format=='table') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$busys_to_print = mysql_num_rows($rslt);}
|
||||
$o=0;
|
||||
while ($busys_to_print > $o) {
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if ($format=='table')
|
||||
{
|
||||
echo "<TR><TD ALIGN=LEFT NOWRAP><FONT FACE=\"ARIAL,HELVETICA\" COLOR=$txtcolor SIZE=$txtsize>";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</TD></TR>\n";
|
||||
}
|
||||
if ( ($format=='text') or ($format=='textarea') )
|
||||
{
|
||||
echo "$row[0] - $row[1]\n";
|
||||
}
|
||||
if ( ($format=='menu') or ($format=='selectlist') )
|
||||
{
|
||||
echo "<OPTION ";
|
||||
if ($row[0]=="$selectedtrunk") {echo "SELECTED ";}
|
||||
echo "VALUE=\"$row[0]\">";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</OPTION>\n";
|
||||
}
|
||||
$o++;
|
||||
}
|
||||
|
||||
if ($format=='table') {echo "</TABLE>\n";}
|
||||
if ($format=='menu') {echo "</SELECT>\n";}
|
||||
if ($format=='selectlist') {echo "</SELECT>\n";}
|
||||
if ($format=='textarea') {echo "</TEXTAREA>\n";}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
######################
|
||||
# ADD=4 display all busy Local lines on a server
|
||||
######################
|
||||
if ($ADD==4)
|
||||
{
|
||||
if (!$field_name) {$field_name = 'local';}
|
||||
if ($format=='table') {echo "<TABLE WIDTH=120 BGCOLOR=$bgcolor cellpadding=0 cellspacing=0>\n";}
|
||||
if ($format=='menu') {echo "<SELECT SIZE=1 name=\"$field_name\">\n";}
|
||||
if ($format=='selectlist')
|
||||
{
|
||||
echo "<SELECT SIZE=$selectsize name=\"$field_name\" STYLE=\"font-family : sans-serif; font-size : $selectfontsize$pt\">\n";
|
||||
}
|
||||
if ($format=='textarea')
|
||||
{
|
||||
echo "<TEXTAREA ROWS=$textareaheight COLS=$textareawidth NAME=extension WRAP=off STYLE=\"font-family : sans-serif; font-size : $selectfontsize$pt\">";
|
||||
}
|
||||
|
||||
$stmt="SELECT channel, extension FROM live_sip_channels where server_ip = '$server_ip' order by channel $order";
|
||||
if ($format=='table') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$busys_to_print = mysql_num_rows($rslt);}
|
||||
$o=0;
|
||||
while ($busys_to_print > $o) {
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if ($format=='table')
|
||||
{
|
||||
echo "<TR><TD ALIGN=LEFT NOWRAP><FONT FACE=\"ARIAL,HELVETICA\" COLOR=$txtcolor SIZE=$txtsize>";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</TD></TR>\n";
|
||||
}
|
||||
if ( ($format=='text') or ($format=='textarea') )
|
||||
{
|
||||
echo "$row[0] - $row[1]\n";
|
||||
}
|
||||
if ( ($format=='menu') or ($format=='selectlist') )
|
||||
{
|
||||
echo "<OPTION ";
|
||||
if ($row[0]=="$selectedlocal") {echo "SELECTED ";}
|
||||
echo "VALUE=\"$row[0]\">";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</OPTION>\n";
|
||||
}
|
||||
$o++;
|
||||
}
|
||||
|
||||
if ($format=='table') {echo "</TABLE>\n";}
|
||||
if ($format=='menu') {echo "</SELECT>\n";}
|
||||
if ($format=='selectlist') {echo "</SELECT>\n";}
|
||||
if ($format=='textarea') {echo "</TEXTAREA>\n";}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
######################
|
||||
# ADD=5 display all agc-usable conferences on a server
|
||||
######################
|
||||
if ($ADD==5)
|
||||
{
|
||||
$pt='pt';
|
||||
if (!$field_name) {$field_name = 'conferences';}
|
||||
if ($format=='table') {echo "<TABLE WIDTH=120 BGCOLOR=$bgcolor cellpadding=0 cellspacing=0>\n";}
|
||||
if ($format=='menu') {echo "<SELECT SIZE=1 name=\"$field_name\">\n";}
|
||||
if ($format=='selectlist')
|
||||
{
|
||||
echo "<SELECT SIZE=$selectsize name=\"$field_name\" STYLE=\"font-family : sans-serif; font-size : $selectfontsize$pt\">\n";
|
||||
}
|
||||
if ($format=='textarea')
|
||||
{
|
||||
echo "<TEXTAREA ROWS=$textareaheight COLS=$textareawidth NAME=extension WRAP=off STYLE=\"font-family : sans-serif; font-size : $selectfontsize$pt\">";
|
||||
}
|
||||
|
||||
$stmt="SELECT conf_exten,extension FROM conferences where server_ip = '$server_ip' order by conf_exten $order";
|
||||
if ($format=='table') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$phones_to_print = mysql_num_rows($rslt);}
|
||||
$o=0;
|
||||
while ($phones_to_print > $o) {
|
||||
$row=mysql_fetch_row($rslt);
|
||||
if ($format=='table')
|
||||
{
|
||||
echo "<TR><TD ALIGN=LEFT NOWRAP><FONT FACE=\"ARIAL,HELVETICA\" COLOR=$txtcolor SIZE=$txtsize>";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</TD></TR>\n";
|
||||
}
|
||||
if ( ($format=='text') or ($format=='textarea') )
|
||||
{
|
||||
echo "$row[0] - $row[1]\n";
|
||||
}
|
||||
if ( ($format=='menu') or ($format=='selectlist') )
|
||||
{
|
||||
echo "<OPTION ";
|
||||
if ($row[0]=="$selectedext") {echo "SELECTED ";}
|
||||
echo "VALUE=\"$row[0]\">";
|
||||
echo "$row[0] - $row[1]";
|
||||
echo "</OPTION>\n";
|
||||
}
|
||||
$o++;
|
||||
}
|
||||
|
||||
if ($format=='table') {echo "</TABLE>\n";}
|
||||
if ($format=='menu') {echo "</SELECT>\n";}
|
||||
if ($format=='selectlist') {echo "</SELECT>\n";}
|
||||
if ($format=='textarea') {echo "</TEXTAREA>\n";}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$ENDtime = date("U");
|
||||
$RUNtime = ($ENDtime - $StarTtime);
|
||||
if ($format=='table') {echo "\n<!-- bežiaci script: $RUNtime sekúnd -->";}
|
||||
if ($format=='table') {echo "\n</body>\n</html>\n";}
|
||||
|
||||
exit;
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,196 @@
|
||||
<?
|
||||
### call_log_display.php
|
||||
###
|
||||
### Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
###
|
||||
### This script is designed purely to send the inbound and outbound calls for a specific phone
|
||||
### This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table
|
||||
###
|
||||
### required variables:
|
||||
### - $server_ip
|
||||
### - $session_name
|
||||
### - $user
|
||||
### - $pass
|
||||
### optional variables:
|
||||
### - $format - ('text','debug')
|
||||
### - $exten - ('cc101','testphone','49-1','1234','913125551212',...)
|
||||
### - $protocol - ('SIP','Zap','IAX2',...)
|
||||
### - $in_limit - ('10','20','50','100',...)
|
||||
### - $out_limit - ('10','20','50','100',...)
|
||||
###
|
||||
|
||||
# changes
|
||||
# 50406-1013 - First build of script
|
||||
# 50407-1452 - Added definable limits
|
||||
# 50503-1236 - added session_name checking for extra security
|
||||
# 50610-1158 - Added NULL check on MySQL results to reduced errors
|
||||
# 50711-1202 - removed HTTP authentication in favor of user/pass vars
|
||||
# 60323-1550 - added option for showing different number dialed in log
|
||||
# 60421-1401 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
||||
# 60619-1202 - Added variable filters to close security holes for login form
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
### If you have globals turned off uncomment these lines
|
||||
if (isset($_GET["user"])) {$user=$_GET["user"];}
|
||||
elseif (isset($_POST["user"])) {$user=$_POST["user"];}
|
||||
if (isset($_GET["pass"])) {$pass=$_GET["pass"];}
|
||||
elseif (isset($_POST["pass"])) {$pass=$_POST["pass"];}
|
||||
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
|
||||
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
|
||||
if (isset($_GET["session_name"])) {$session_name=$_GET["session_name"];}
|
||||
elseif (isset($_POST["session_name"])) {$session_name=$_POST["session_name"];}
|
||||
if (isset($_GET["format"])) {$format=$_GET["format"];}
|
||||
elseif (isset($_POST["format"])) {$format=$_POST["format"];}
|
||||
if (isset($_GET["exten"])) {$exten=$_GET["exten"];}
|
||||
elseif (isset($_POST["exten"])) {$exten=$_POST["exten"];}
|
||||
if (isset($_GET["protocol"])) {$protocol=$_GET["protocol"];}
|
||||
elseif (isset($_POST["protocol"])) {$protocol=$_POST["protocol"];}
|
||||
|
||||
$user=ereg_replace("[^0-9a-zA-Z]","",$user);
|
||||
$pass=ereg_replace("[^0-9a-zA-Z]","",$pass);
|
||||
|
||||
# default optional vars if not set
|
||||
if (!isset($format)) {$format="text";}
|
||||
if (!isset($in_limit)) {$in_limit="100";}
|
||||
if (!isset($out_limit)) {$out_limit="100";}
|
||||
$number_dialed = 'number_dialed';
|
||||
#$number_dialed = 'extension';
|
||||
|
||||
$version = '0.0.8';
|
||||
$build = '60619-1202';
|
||||
$StarTtime = date("U");
|
||||
$NOW_DATE = date("Y-m-d");
|
||||
$NOW_TIME = date("Y-m-d H:i:s");
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$user' and pass='$pass' and user_level > 0;";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Nesprávny Užívateľské meno/Heslo: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Nesprávny server_ip: |$server_ip| or Nesprávny session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT count(*) from web_client_sessions where session_name='$session_name' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nesprávny session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
# do nothing for now
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERZIA: $version POSTAVENÉ: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Zobraziť log hovoru";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
}
|
||||
|
||||
|
||||
$row=''; $rowx='';
|
||||
$channel_live=1;
|
||||
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Exten $exten Nie je správny alebo protokol $protocol Nie je správny\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
##### print outbound calls from the call_log table
|
||||
$stmt="SELECT uniqueid,start_time,$number_dialed,length_in_sec FROM call_log where server_ip = '$server_ip' and channel LIKE \"$protocol/$exten%\" order by start_time desc limit $out_limit;";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$out_calls_count = mysql_num_rows($rslt);}
|
||||
echo "$out_calls_count|";
|
||||
$loop_count=0;
|
||||
while ($out_calls_count>$loop_count)
|
||||
{
|
||||
$loop_count++;
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
$call_time_M = ($row[3] / 60);
|
||||
$call_time_M = round($call_time_M, 2);
|
||||
$call_time_M_int = intval("$call_time_M");
|
||||
$call_time_SEC = ($call_time_M - $call_time_M_int);
|
||||
$call_time_SEC = ($call_time_SEC * 60);
|
||||
$call_time_SEC = round($call_time_SEC, 0);
|
||||
if ($call_time_SEC < 10) {$call_time_SEC = "0$call_time_SEC";}
|
||||
$call_time_MS = "$call_time_M_int:$call_time_SEC";
|
||||
|
||||
if ($number_dialed == 'extension') {$row[2] = substr($row[2],-10);}
|
||||
echo "$row[0] ~$row[1] ~$row[2] ~$call_time_MS|";
|
||||
}
|
||||
echo "\n";
|
||||
|
||||
##### print inbound calls from the live_inbound_log table
|
||||
$stmt="SELECT call_log.uniqueid,live_inbound_log.start_time,live_inbound_log.extension,caller_id,length_in_sec from live_inbound_log,call_log where phone_ext='$exten' and live_inbound_log.server_ip = '$server_ip' and call_log.uniqueid=live_inbound_log.uniqueid order by start_time desc limit $in_limit;";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$in_calls_count = mysql_num_rows($rslt);}
|
||||
echo "$in_calls_count|";
|
||||
$loop_count=0;
|
||||
while ($in_calls_count>$loop_count)
|
||||
{
|
||||
$loop_count++;
|
||||
$row=mysql_fetch_row($rslt);
|
||||
|
||||
$call_time_M = ($row[4] / 60);
|
||||
$call_time_M = round($call_time_M, 2);
|
||||
$call_time_M_int = intval("$call_time_M");
|
||||
$call_time_SEC = ($call_time_M - $call_time_M_int);
|
||||
$call_time_SEC = ($call_time_SEC * 60);
|
||||
$call_time_SEC = round($call_time_SEC, 0);
|
||||
if ($call_time_SEC < 10) {$call_time_SEC = "0$call_time_SEC";}
|
||||
$call_time_MS = "$call_time_M_int:$call_time_SEC";
|
||||
$callerIDnum = $row[3]; $callerIDname = $row[3];
|
||||
$callerIDnum = preg_replace("/.*<|>.*/","",$callerIDnum);
|
||||
$callerIDname = preg_replace("/\"| <\d*>/","",$callerIDname);
|
||||
|
||||
echo "$row[0] ~$row[1] ~$row[2] ~$callerIDnum ~$callerIDname ~$call_time_MS|";
|
||||
}
|
||||
echo "\n";
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
$ENDtime = date("U");
|
||||
$RUNtime = ($ENDtime - $StarTtime);
|
||||
echo "\n<!-- bežiaci script: $RUNtime sekúnd -->";
|
||||
echo "\n</body>\n</html>\n";
|
||||
}
|
||||
|
||||
exit;
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,343 @@
|
||||
<?
|
||||
# conf_exten_check.php
|
||||
#
|
||||
# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
#
|
||||
# This script is designed purely to send whether the meetme conference has live channels connected and which they are
|
||||
# This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table
|
||||
#
|
||||
# required variables:
|
||||
# - $server_ip
|
||||
# - $session_name
|
||||
# - $user
|
||||
# - $pass
|
||||
# optional variables:
|
||||
# - $format - ('text','debug')
|
||||
# - $ACTION - ('refresh','register')
|
||||
# - $client - ('agc','vdc')
|
||||
# - $conf_exten - ('8600011',...)
|
||||
# - $exten - ('123test',...)
|
||||
# - $auto_dial_level - ('0','1','1.2',...)
|
||||
# - $campagentstdisp - ('YES',...)
|
||||
#
|
||||
|
||||
# changes
|
||||
# 50509-1054 - First build of script
|
||||
# 50511-1112 - Added ability to register a conference room
|
||||
# 50610-1159 - Added NULL check on MySQL results to reduced errors
|
||||
# 50706-1429 - script changed to not use HTTP login vars, user/pass instead
|
||||
# 50706-1525 - Added date-time display for vicidial client display
|
||||
# 50816-1500 - Added random update to vicidial_live_agents table for vdc users
|
||||
# 51121-1353 - Altered echo statements for several small PHP speed optimizations
|
||||
# 60410-1424 - Added ability to grab calls-being-placed and agent status
|
||||
# 60421-1405 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
||||
# 60619-1201 - Added variable filters to close security holes for login form
|
||||
# 61128-2255 - Added update for manual dial vicidial_live_agents
|
||||
# 70319-1542 - Added agent disabled display function
|
||||
# 71122-0205 - Added vicidial_live_agent status output
|
||||
# 80424-0442 - Added non_latin lookup from system_settings
|
||||
# 80519-1425 - Added calls-in-queue tally
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
### If you have globals turned off uncomment these lines
|
||||
if (isset($_GET["user"])) {$user=$_GET["user"];}
|
||||
elseif (isset($_POST["user"])) {$user=$_POST["user"];}
|
||||
if (isset($_GET["pass"])) {$pass=$_GET["pass"];}
|
||||
elseif (isset($_POST["pass"])) {$pass=$_POST["pass"];}
|
||||
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
|
||||
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
|
||||
if (isset($_GET["session_name"])) {$session_name=$_GET["session_name"];}
|
||||
elseif (isset($_POST["session_name"])) {$session_name=$_POST["session_name"];}
|
||||
if (isset($_GET["format"])) {$format=$_GET["format"];}
|
||||
elseif (isset($_POST["format"])) {$format=$_POST["format"];}
|
||||
if (isset($_GET["ACTION"])) {$ACTION=$_GET["ACTION"];}
|
||||
elseif (isset($_POST["ACTION"])) {$ACTION=$_POST["ACTION"];}
|
||||
if (isset($_GET["client"])) {$client=$_GET["client"];}
|
||||
elseif (isset($_POST["client"])) {$client=$_POST["client"];}
|
||||
if (isset($_GET["conf_exten"])) {$conf_exten=$_GET["conf_exten"];}
|
||||
elseif (isset($_POST["conf_exten"])) {$conf_exten=$_POST["conf_exten"];}
|
||||
if (isset($_GET["exten"])) {$exten=$_GET["exten"];}
|
||||
elseif (isset($_POST["exten"])) {$exten=$_POST["exten"];}
|
||||
if (isset($_GET["auto_dial_level"])) {$auto_dial_level=$_GET["auto_dial_level"];}
|
||||
elseif (isset($_POST["auto_dial_level"])) {$auto_dial_level=$_POST["auto_dial_level"];}
|
||||
if (isset($_GET["campagentstdisp"])) {$campagentstdisp=$_GET["campagentstdisp"];}
|
||||
elseif (isset($_POST["campagentstdisp"])) {$campagentstdisp=$_POST["campagentstdisp"];}
|
||||
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
|
||||
header ("Pragma: no-cache"); // HTTP/1.0
|
||||
|
||||
|
||||
#############################################
|
||||
##### START SYSTEM_SETTINGS LOOKUP #####
|
||||
$stmt = "SELECT use_non_latin FROM system_settings;";
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($DB) {echo "$stmt\n";}
|
||||
$qm_conf_ct = mysql_num_rows($rslt);
|
||||
$i=0;
|
||||
while ($i < $qm_conf_ct)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$non_latin = $row[0];
|
||||
$i++;
|
||||
}
|
||||
##### END SETTINGS LOOKUP #####
|
||||
###########################################
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
$user=ereg_replace("[^0-9a-zA-Z]","",$user);
|
||||
$pass=ereg_replace("[^0-9a-zA-Z]","",$pass);
|
||||
}
|
||||
|
||||
# default optional vars if not set
|
||||
if (!isset($format)) {$format="text";}
|
||||
if (!isset($ACTION)) {$ACTION="refresh";}
|
||||
if (!isset($client)) {$client="agc";}
|
||||
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
$version = '2.0.4-12';
|
||||
$build = '71122-0205';
|
||||
$StarTtime = date("U");
|
||||
$NOW_DATE = date("Y-m-d");
|
||||
$NOW_TIME = date("Y-m-d H:i:s");
|
||||
$FILE_TIME = date("Ymd_His");
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
$random = (rand(1000000, 9999999) + 10000000);
|
||||
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$user' and pass='$pass' and user_level > 0;";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
if ($non_latin > 0) {$rslt=mysql_query("SET NAMES 'UTF8'");}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Nesprávny Užívateľské meno/Heslo: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Nesprávny server_ip: |$server_ip| or Nesprávny session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT count(*) from web_client_sessions where session_name='$session_name' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nesprávny session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
# do nothing for now
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERZIA: $version POSTAVENÉ: $build MEETME: $conf_exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Overiť konferenčnú pobočku";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
}
|
||||
|
||||
if ($ACTION == 'refresh')
|
||||
{
|
||||
$MT[0]='';
|
||||
$row=''; $rowx='';
|
||||
$channel_live=1;
|
||||
if (strlen($conf_exten)<1)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Conf Exten $conf_exten Nie je správny\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if ($client == 'vdc')
|
||||
{
|
||||
$Acount=0;
|
||||
$AexternalDEAD=0;
|
||||
|
||||
### see if the agent has a record in the vicidial_live_agents table
|
||||
$stmt="SELECT count(*) from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Acount=$row[0];
|
||||
|
||||
if ($Acount > 0)
|
||||
{
|
||||
$stmt="SELECT status from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Astatus=$row[0];
|
||||
}
|
||||
# ### find out if external table shows agent should be disabled
|
||||
# $stmt="SELECT count(*) from another_table where user='$user' and status='DEAD';";
|
||||
# if ($DB) {echo "|$stmt|\n";}
|
||||
# $rslt=mysql_query($stmt, $link);
|
||||
# $row=mysql_fetch_row($rslt);
|
||||
# $AexternalDEAD=$row[0];
|
||||
|
||||
if ($auto_dial_level > 0)
|
||||
{
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
if ($campagentstdisp == 'YES')
|
||||
{
|
||||
### grab the status of this agent to display
|
||||
$stmt="SELECT status,campaign_id,closer_campaigns from vicidial_live_agents where user='$user' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$Alogin=$row[0];
|
||||
$Acampaign=$row[1];
|
||||
$AccampSQL=$row[2];
|
||||
$AccampSQL = ereg_replace(' -','', $AccampSQL);
|
||||
$AccampSQL = ereg_replace(' ',"','", $AccampSQL);
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status IN('LIVE') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$RingCalls=$row[0];
|
||||
if ($RingCalls > 0) {$RingCalls = "<font class=\"queue_text_red\">Calls in Queue: $RingCalls</font>";}
|
||||
else {$RingCalls = "<font class=\"queue_text\">Calls in Queue: $RingCalls</font>";}
|
||||
|
||||
### grab the number of calls being placed from this server and campaign
|
||||
$stmt="SELECT count(*) from vicidial_auto_calls where status NOT IN('XFER') and ( (campaign_id='$Acampaign') or (campaign_id IN('$AccampSQL')) );";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$DiaLCalls=$row[0];
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$Alogin='N';
|
||||
$RingCalls='N';
|
||||
$DiaLCalls='N';
|
||||
|
||||
### update the vicidial_live_agents every second with a new random number so it is shown to be alive
|
||||
$stmt="UPDATE vicidial_live_agents set random_id='$random' where user='$user' and server_ip='$server_ip';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
}
|
||||
|
||||
if ($Acount < 1) {$Alogin='DEAD_VLA';}
|
||||
if ($AexternalDEAD > 0) {$Alogin='DEAD_EXTERNAL';}
|
||||
|
||||
echo 'DateTime: ' . $NOW_TIME . '|UnixTime: ' . $StarTtime . '|Logged-in: ' . $Alogin . '|CampCalls: ' . $RingCalls . '|Stav: ' . $Astatus . '|DiaLCalls: ' . $DiaLCalls . "|\n";
|
||||
|
||||
}
|
||||
$total_conf=0;
|
||||
$stmt="SELECT channel FROM live_sip_channels where server_ip = '$server_ip' and extension = '$conf_exten';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$sip_list = mysql_num_rows($rslt);}
|
||||
# echo "$sip_list|";
|
||||
$loop_count=0;
|
||||
while ($sip_list>$loop_count)
|
||||
{
|
||||
$loop_count++; $total_conf++;
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$KanálA[$total_conf] = "$row[0]";
|
||||
if ($format=='debug') {echo "\n<!-- $row[0] -->";}
|
||||
}
|
||||
$stmt="SELECT channel FROM live_channels where server_ip = '$server_ip' and extension = '$conf_exten';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$channels_list = mysql_num_rows($rslt);}
|
||||
# echo "$channels_list|";
|
||||
$loop_count=0;
|
||||
while ($channels_list>$loop_count)
|
||||
{
|
||||
$loop_count++; $total_conf++;
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$KanálA[$total_conf] = "$row[0]";
|
||||
if ($format=='debug') {echo "\n<!-- $row[0] -->";}
|
||||
}
|
||||
}
|
||||
$channels_list = ($channels_list + $sip_list);
|
||||
echo "$channels_list|";
|
||||
|
||||
$counter=0;
|
||||
$countecho='';
|
||||
while($total_conf > $counter)
|
||||
{
|
||||
$counter++;
|
||||
$countecho = "$countecho$KanálA[$counter] ~";
|
||||
# echo "$KanálA[$counter] ~";
|
||||
}
|
||||
|
||||
echo "$countecho\n";
|
||||
}
|
||||
|
||||
if ($ACTION == 'register')
|
||||
{
|
||||
$MT[0]='';
|
||||
$row=''; $rowx='';
|
||||
$channel_live=1;
|
||||
if ( (strlen($conf_exten)<1) || (strlen($exten)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Conf Exten $conf_exten Nie je správny or Exten $exten Nie je správny\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="UPDATE conferences set extension='$exten' where server_ip = '$server_ip' and conf_exten = '$conf_exten';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
}
|
||||
echo "Konferencia $conf_exten bol zaregistrovaný $exten\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
$ENDtime = date("U");
|
||||
$RUNtime = ($ENDtime - $StarTtime);
|
||||
echo "\n<!-- bežiaci script: $RUNtime sekúnd -->";
|
||||
echo "\n</body>\n</html>\n";
|
||||
}
|
||||
|
||||
exit;
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?
|
||||
#
|
||||
# Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
#
|
||||
if ( file_exists("/etc/astguiclient.conf") )
|
||||
{
|
||||
$DBCagc = file("/etc/astguiclient.conf");
|
||||
foreach ($DBCagc as $DBCline)
|
||||
{
|
||||
$DBCline = preg_replace("/ |>|\n|\r|\t|\#.*|;.*/","",$DBCline);
|
||||
if (ereg("^PATHlogs", $DBCline))
|
||||
{$PATHlogs = $DBCline; $PATHlogs = preg_replace("/.*=/","",$PATHlogs);}
|
||||
if (ereg("^PATHweb", $DBCline))
|
||||
{$WeBServeRRooT = $DBCline; $WeBServeRRooT = preg_replace("/.*=/","",$WeBServeRRooT);}
|
||||
if (ereg("^VARDB_server", $DBCline))
|
||||
{$VARDB_server = $DBCline; $VARDB_server = preg_replace("/.*=/","",$VARDB_server);}
|
||||
if (ereg("^VARDB_database", $DBCline))
|
||||
{$VARDB_database = $DBCline; $VARDB_database = preg_replace("/.*=/","",$VARDB_database);}
|
||||
if (ereg("^VARDB_user", $DBCline))
|
||||
{$VARDB_user = $DBCline; $VARDB_user = preg_replace("/.*=/","",$VARDB_user);}
|
||||
if (ereg("^VARDB_pass", $DBCline))
|
||||
{$VARDB_pass = $DBCline; $VARDB_pass = preg_replace("/.*=/","",$VARDB_pass);}
|
||||
if (ereg("^VARDB_port", $DBCline))
|
||||
{$VARDB_port = $DBCline; $VARDB_port = preg_replace("/.*=/","",$VARDB_port);}
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
#defaults for DB connection
|
||||
$VARDB_server = 'localhost';
|
||||
$VARDB_user = 'cron';
|
||||
$VARDB_pass = '1234';
|
||||
$VARDB_database = '1234';
|
||||
$WeBServeRRooT = '/usr/local/apache2/htdocs';
|
||||
}
|
||||
|
||||
$link=mysql_connect("$VARDB_server", "$VARDB_user", "$VARDB_pass");
|
||||
mysql_select_db("$VARDB_database");
|
||||
|
||||
$local_DEF = 'Local/';
|
||||
$conf_silent_prefix = '7';
|
||||
$local_AMP = '@';
|
||||
$ext_context = 'demo';
|
||||
$recording_exten = '8309';
|
||||
$WeBRooTWritablE = '1';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,351 @@
|
||||
<?
|
||||
### inbound_popup.php
|
||||
###
|
||||
### Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
###
|
||||
### This script is designed to open up when a live_inbound call comes in giving the user
|
||||
### options of what to do with the call or options to lookup the callerID on various web sites
|
||||
### This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table
|
||||
###
|
||||
### required variables:
|
||||
### - $server_ip
|
||||
### - $session_name
|
||||
### - $uniqueid - ('1234567890.123456',...)
|
||||
### - $user
|
||||
### - $pass
|
||||
### optional variables:
|
||||
### - $format - ('text','debug')
|
||||
### - $vmail_box - ('101','1234',...)
|
||||
### - $exten - ('cc101','testphone','49-1','1234','913125551212',...)
|
||||
### - $ext_context - ('default','demo',...)
|
||||
### - $ext_priority - ('1','2',...)
|
||||
### - $voicemail_dump_exten - ('85026666666666')
|
||||
### - $local_web_callerID_URL_enc - ( rawurlencoded custom callerid lookup URL)
|
||||
###
|
||||
|
||||
# changes
|
||||
# 50428-1500 - First build of script display only
|
||||
# 50429-1241 - some formatting, hangup and Vmail redirect, 30s timeout on actions, and CID web lookup links
|
||||
# 50503-1244 - added session_name checking for extra security
|
||||
# 50711-1203 - removed HTTP authentication in favor of user/pass vars
|
||||
# 60421-1043 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
||||
# 60619-1205 - Added variable filters to close security holes for login form
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
### If you have globals turned off uncomment these lines
|
||||
if (isset($_GET["user"])) {$user=$_GET["user"];}
|
||||
elseif (isset($_POST["user"])) {$user=$_POST["user"];}
|
||||
if (isset($_GET["pass"])) {$pass=$_GET["pass"];}
|
||||
elseif (isset($_POST["pass"])) {$pass=$_POST["pass"];}
|
||||
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
|
||||
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
|
||||
if (isset($_GET["session_name"])) {$session_name=$_GET["session_name"];}
|
||||
elseif (isset($_POST["session_name"])) {$session_name=$_POST["session_name"];}
|
||||
if (isset($_GET["uniqueid"])) {$uniqueid=$_GET["uniqueid"];}
|
||||
elseif (isset($_POST["uniqueid"])) {$uniqueid=$_POST["uniqueid"];}
|
||||
if (isset($_GET["format"])) {$format=$_GET["format"];}
|
||||
elseif (isset($_POST["format"])) {$format=$_POST["format"];}
|
||||
if (isset($_GET["exten"])) {$exten=$_GET["exten"];}
|
||||
elseif (isset($_POST["exten"])) {$exten=$_POST["exten"];}
|
||||
if (isset($_GET["vmail_box"])) {$vmail_box=$_GET["vmail_box"];}
|
||||
elseif (isset($_POST["vmail_box"])) {$vmail_box=$_POST["vmail_box"];}
|
||||
if (isset($_GET["ext_context"])) {$ext_context=$_GET["ext_context"];}
|
||||
elseif (isset($_POST["ext_context"])) {$ext_context=$_POST["ext_context"];}
|
||||
if (isset($_GET["ext_priority"])) {$ext_priority=$_GET["ext_priority"];}
|
||||
elseif (isset($_POST["ext_priority"])) {$ext_priority=$_POST["ext_priority"];}
|
||||
if (isset($_GET["voicemail_dump_exten"])) {$voicemail_dump_exten=$_GET["voicemail_dump_exten"];}
|
||||
elseif (isset($_POST["voicemail_dump_exten"])) {$voicemail_dump_exten=$_POST["voicemail_dump_exten"];}
|
||||
if (isset($_GET["local_web_callerID_URL_enc"])) {$local_web_callerID_URL_enc=$_GET["local_web_callerID_URL_enc"];}
|
||||
elseif (isset($_POST["local_web_callerID_URL_enc"])) {$local_web_callerID_URL_enc=$_POST["local_web_callerID_URL_enc"];}
|
||||
if (isset($_GET["local_web_callerID_URL_enc"])) {$local_web_callerID_URL = rawurldecode($local_web_callerID_URL_enc);}
|
||||
else {$local_web_callerID_URL = '';}
|
||||
|
||||
$user=ereg_replace("[^0-9a-zA-Z]","",$user);
|
||||
$pass=ereg_replace("[^0-9a-zA-Z]","",$pass);
|
||||
|
||||
# default optional vars if not set
|
||||
if (!isset($format)) {$format="text";}
|
||||
|
||||
$version = '0.0.6';
|
||||
$build = '60619-1205';
|
||||
$StarTtime = date("U");
|
||||
$NOW_DATE = date("Y-m-d");
|
||||
$NOW_TIME = date("Y-m-d H:i:s");
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
$DO = '-1';
|
||||
if ( (eregi("^Zap",$channel)) and (!eregi("-",$channel)) ) {$channel = "$channel$DO";}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$user' and pass='$pass' and user_level > 0;";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Nesprávny Užívateľské meno/Heslo: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Nesprávny server_ip: |$server_ip| or Nesprávny session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT count(*) from web_client_sessions where session_name='$session_name' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nesprávny session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
# do nothing for now
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
$forever_stop=0;
|
||||
$user_abb = "$user$user$user$user";
|
||||
while ( (strlen($user_abb) > 4) and ($forever_stop < 200) )
|
||||
{$user_abb = eregi_replace("^.","",$user_abb); $forever_stop++;}
|
||||
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERZIA: $version POSTAVENÉ: $build UNIQUEID: $uniqueid server_ip: $server_ip-->\n";
|
||||
?>
|
||||
<script language="Javascript">
|
||||
var server_ip = '<? echo $server_ip ?>';
|
||||
var epoch_sec = '<? echo $StarTtime ?>';
|
||||
var user_abb = '<? echo $user_abb ?>';
|
||||
var vmail_box = '<? echo $vmail_box ?>';
|
||||
var ext_context = '<? echo $ext_context ?>';
|
||||
var ext_priority = '<? echo $ext_priority ?>';
|
||||
var voicemail_dump_exten = '<? echo $voicemail_dump_exten ?>';
|
||||
var session_name = '<? echo $session_name ?>';
|
||||
var user = '<? echo $user ?>';
|
||||
var pass = '<? echo $pass ?>';
|
||||
|
||||
|
||||
// ################################################################################
|
||||
// Send Hangup command for Live call connected to phone now to Manager
|
||||
function livehangup_send_hangup(taskvar)
|
||||
{
|
||||
var xmlhttp=false;
|
||||
/*@cc_on @*/
|
||||
/*@if (@_jscript_version >= 5)
|
||||
// JScript gives us Conditional compilation, we can cope with old IE versions.
|
||||
// and security blocked creation of the objects.
|
||||
try {
|
||||
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
||||
} catch (e) {
|
||||
try {
|
||||
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
} catch (E) {
|
||||
xmlhttp = false;
|
||||
}
|
||||
}
|
||||
@end @*/
|
||||
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
|
||||
{
|
||||
xmlhttp = new XMLHttpRequest();
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
var queryCID = "HLagcP" + epoch_sec + user_abb;
|
||||
var hangupvalue = taskvar;
|
||||
livehangup_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Hangup&format=text&channel=" + hangupvalue + "&queryCID=" + queryCID;
|
||||
xmlhttp.open('POST', 'manager_send.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(livehangup_query);
|
||||
xmlhttp.onreadystatechange = function()
|
||||
{
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
||||
{
|
||||
Nactiveext = null;
|
||||
Nactiveext = xmlhttp.responseText;
|
||||
alert(xmlhttp.responseText);
|
||||
}
|
||||
}
|
||||
delete xmlhttp;
|
||||
}
|
||||
call_action_link_clear();
|
||||
}
|
||||
|
||||
|
||||
// ################################################################################
|
||||
// Send Redirect command for ringing call to go directly to your voicemail
|
||||
function liveredirect_send_vmail(taskvar,taskbox)
|
||||
{
|
||||
var xmlhttp=false;
|
||||
/*@cc_on @*/
|
||||
/*@if (@_jscript_version >= 5)
|
||||
// JScript gives us Conditional compilation, we can cope with old IE versions.
|
||||
// and security blocked creation of the objects.
|
||||
try {
|
||||
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
|
||||
} catch (e) {
|
||||
try {
|
||||
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
||||
} catch (E) {
|
||||
xmlhttp = false;
|
||||
}
|
||||
}
|
||||
@end @*/
|
||||
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
|
||||
{
|
||||
xmlhttp = new XMLHttpRequest();
|
||||
}
|
||||
if (xmlhttp)
|
||||
{
|
||||
var queryCID = "RVagcP" + epoch_sec + user_abb;
|
||||
var hangupvalue = taskvar;
|
||||
var mailboxvalue = taskbox;
|
||||
liveredirect_query = "server_ip=" + server_ip + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&ACTION=Redirect&format=text&channel=" + hangupvalue + "&queryCID=" + queryCID + "&exten=" + voicemail_dump_exten + "" + mailboxvalue + "&ext_context=" + ext_context + "&ext_priority=" + ext_priority;
|
||||
xmlhttp.open('POST', 'manager_send.php');
|
||||
xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8');
|
||||
xmlhttp.send(liveredirect_query);
|
||||
xmlhttp.onreadystatechange = function()
|
||||
{
|
||||
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
|
||||
{
|
||||
Nactiveext = null;
|
||||
Nactiveext = xmlhttp.responseText;
|
||||
alert(xmlhttp.responseText);
|
||||
}
|
||||
}
|
||||
delete xmlhttp;
|
||||
}
|
||||
call_action_link_clear();
|
||||
}
|
||||
|
||||
|
||||
// ################################################################################
|
||||
// timeout to deactivate the call action links after 30 sekúnd
|
||||
function link_timeout()
|
||||
{
|
||||
window.focus();
|
||||
setTimeout("call_action_link_clear()", 30000);
|
||||
}
|
||||
|
||||
// ################################################################################
|
||||
// deactivates the call action links
|
||||
function call_action_link_clear()
|
||||
{
|
||||
document.getElementById("callactions").innerHTML = "";
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<?
|
||||
echo "<title>ŽIVÝ PRÍCHODZÍ HOVOR";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=\"#CCC2E0\" marginheight=0 marginwidth=0 leftmargin=0 topmargin=0 onload=\"link_timeout();\">\n";
|
||||
echo "<CENTER><H2>ŽIVÝ PRÍCHODZÍ HOVOR</H2>\n";
|
||||
echo "<B>$NOW_TIME</B><BR><BR>\n";
|
||||
}
|
||||
|
||||
|
||||
$MT[0]='';
|
||||
$row=''; $rowx='';
|
||||
$channel_live=1;
|
||||
if (strlen($uniqueid)<9)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Uniqueid $uniqueid Nie je správny\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT * FROM live_inbound where server_ip = '$server_ip' and uniqueid = '$uniqueid';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$channels_list = mysql_num_rows($rslt);
|
||||
if ($channels_list>0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
# echo "$LIuniqueid|$LIchannel|$LIcallerid|$LIdatetime|$row[8]|$row[9]|$row[10]|$row[11]|$row[12]|$row[13]|";
|
||||
# Zap/73|"V.I.C.I. MARKET" <7275338730>|2005-04-28 14:01:21|7274514936|Inbound direct to Matt|||||
|
||||
if ($format=='debug') {echo "\n<!-- $row[0]|$row[1]|$row[2]|$row[3]|$row[4]|$row[5]|$row[6]|$row[7]|$row[8]|$row[9]|$row[10]|$row[11]|$row[12]|$row[13]| -->";}
|
||||
echo "<table width=95% cellpadding=1 cellspacing=3>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>Kanál: </td><td align=left>$row[1]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>IDvolajúceho: </td><td align=left>$row[3]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td colspan=2 align=center>\n";
|
||||
|
||||
$phone = eregi_replace(".*\<","",$row[3]);
|
||||
$phone = eregi_replace("\>.*","",$phone);
|
||||
$NPA = substr($phone, 0, 3);
|
||||
$NXX = substr($phone, 3, 3);
|
||||
$XXXX = substr($phone, 6, 4);
|
||||
$D='-';
|
||||
echo "<a href=\"http://www.google.com/search?hl=en&lr=&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial_s&q=$NPA+$NXX+$XXXX&btnG=Search\" target=\"_blank\">GOOGLE</a> - \n";
|
||||
echo "<a href=\"http://www.anywho.com/qry/wp_rl?npa=$NPA&telephone=$NXX$XXXX\" target=\"_blank\">ANYWHO</a> - \n";
|
||||
echo "<a href=\"http://www.switchboard.com/bin/cgirlookup.dll?SR=&MEM=1&LNK=32%3A36&type=BOTH&at=$NPA&e=$NXX&n=$XXXX&search.x=55&search.y=20\" target=\"_blank\">SWITCHBOARD</a> - \n";
|
||||
echo "<a href=\"http://yellowpages.superpages.com/listings.jsp?SRC=&STYPE=&PG=L&CB=&C=&N=&E=&T=&S=&Z=&A=727&X=533&P=8730&AXP=$NPA$NXX$XXXX&R=N&PS=15&search=Find+It\" target=\"_blank\">VERIZON</a> - \n";
|
||||
echo "<a href=\"http://www.whitepages.com/1014/log_click/search/Reverse_Telefón?npa=$NPA&phone=$NXX$XXXX\" target=\"_blank\">WHITEPAGES</a> - \n";
|
||||
echo "<a href=\"http://www.411.com/10742/search/Reverse_Telefón?phone=%28$NPA%29+$NXX$D$XXXX\" target=\"_blank\">411.COM</a> - \n";
|
||||
echo "<a href=\"http://www.phonenumber.com/10006/search/Reverse_Telefón?npa=$NPA&phone=$NXX$XXXX\" target=\"_blank\">411.COM</a> - \n";
|
||||
|
||||
$local_web_callerID_QUERY_STRING ='';
|
||||
$local_web_callerID_QUERY_STRING.="?callerID_areacode=$NPA";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_prefix=$NXX";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_last4=$XXXX";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_Time=$row[6]";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_Kanál=$row[1]";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_uniqueID=$row[0]";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_phone_ext=$row[5]";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_server_ip=$row[2]";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_extension=$row[4]";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_inbound_number=$row[8]";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_comment_a=$row[9]";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_comment_b=$row[10]";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_comment_c=$row[11]";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_comment_d=$row[12]";
|
||||
$local_web_callerID_QUERY_STRING.="&callerID_comment_e=$row[13]";
|
||||
echo "<a href=\"$local_web_callerID_URL$local_web_callerID_QUERY_STRING\" target=\"_blank\">UPRAVENÉ</a> - \n";
|
||||
|
||||
echo "</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>Volané číslo: </td><td align=left>$row[8]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>Poznámka: </td><td align=left>$row[9]|$row[10]|$row[11]|$row[12]|$row[13]|</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td colspan=2 align=center>\n<span id=\"callactions\">";
|
||||
echo "<a href=\"#\" onclick=\"livehangup_send_hangup('$row[1]');return false;\">POLOŹIŤ</a> - \n";
|
||||
echo "<a href=\"#\" onclick=\"liveredirect_send_vmail('$row[1]','$vmail_box');return false;\">POSLAŤ DO MOJEJ HLASOVEJ SCHRÁNKY</a>\n";
|
||||
echo "</span></td></tr>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
|
||||
$stmt="UPDATE live_inbound set acknowledged='Y' where server_ip = '$server_ip' and uniqueid = '$uniqueid';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
$ENDtime = date("U");
|
||||
$RUNtime = ($ENDtime - $StarTtime);
|
||||
echo "\n<!-- bežiaci script: $RUNtime sekúnd -->";
|
||||
echo "\n</body>\n</html>\n";
|
||||
}
|
||||
|
||||
exit;
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,278 @@
|
||||
<?
|
||||
### live_exten_check.php
|
||||
###
|
||||
### Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
###
|
||||
### This script is designed purely to send whether the client channel is live and to what channel it is connected
|
||||
### This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table
|
||||
###
|
||||
### required variables:
|
||||
### - $server_ip
|
||||
### - $session_name
|
||||
### - $user
|
||||
### - $pass
|
||||
### optional variables:
|
||||
### - $format - ('text','debug')
|
||||
### - $exten - ('cc101','testphone','49-1','1234','913125551212',...)
|
||||
### - $protocol - ('SIP','Zap','IAX2',...)
|
||||
###
|
||||
|
||||
# changes
|
||||
# 50404-1249 - First build of script
|
||||
# 50406-1402 - added connected trunk lookup
|
||||
# 50428-1452 - added live_inbound check for exten on 2nd line of output
|
||||
# 50503-1233 - added session_name checking for extra security
|
||||
# 50524-1429 - added parked calls count
|
||||
# 50610-1204 - Added NULL check on MySQL results to reduced errors
|
||||
# 50711-1204 - removed HTTP authentication in favor of user/pass vars
|
||||
# 60103-1541 - added favorite extens status display
|
||||
# 60421-1359 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
||||
# 60619-1203 - Added variable filters to close security holes for login form
|
||||
# 60825-1029 - Fixed translation variable issue ChannelA
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
### If you have globals turned off uncomment these lines
|
||||
if (isset($_GET["user"])) {$user=$_GET["user"];}
|
||||
elseif (isset($_POST["user"])) {$user=$_POST["user"];}
|
||||
if (isset($_GET["pass"])) {$pass=$_GET["pass"];}
|
||||
elseif (isset($_POST["pass"])) {$pass=$_POST["pass"];}
|
||||
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
|
||||
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
|
||||
if (isset($_GET["session_name"])) {$session_name=$_GET["session_name"];}
|
||||
elseif (isset($_POST["session_name"])) {$session_name=$_POST["session_name"];}
|
||||
if (isset($_GET["format"])) {$format=$_GET["format"];}
|
||||
elseif (isset($_POST["format"])) {$format=$_POST["format"];}
|
||||
if (isset($_GET["exten"])) {$exten=$_GET["exten"];}
|
||||
elseif (isset($_POST["exten"])) {$exten=$_POST["exten"];}
|
||||
if (isset($_GET["protocol"])) {$protocol=$_GET["protocol"];}
|
||||
elseif (isset($_POST["protocol"])) {$protocol=$_POST["protocol"];}
|
||||
if (isset($_GET["favorites_count"])) {$favorites_count=$_GET["favorites_count"];}
|
||||
elseif (isset($_POST["favorites_count"])) {$favorites_count=$_POST["favorites_count"];}
|
||||
if (isset($_GET["favorites_list"])) {$favorites_list=$_GET["favorites_list"];}
|
||||
elseif (isset($_POST["favorites_list"])) {$favorites_list=$_POST["favorites_list"];}
|
||||
|
||||
$user=ereg_replace("[^0-9a-zA-Z]","",$user);
|
||||
$pass=ereg_replace("[^0-9a-zA-Z]","",$pass);
|
||||
|
||||
# default optional vars if not set
|
||||
if (!isset($format)) {$format="text";}
|
||||
|
||||
$version = '2.0.1';
|
||||
$build = '60825-1029';
|
||||
$StarTtime = date("U");
|
||||
$NOW_DATE = date("Y-m-d");
|
||||
$NOW_TIME = date("Y-m-d H:i:s");
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$user' and pass='$pass' and user_level > 0;";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Nesprávny Užívateľské meno/Heslo: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Nesprávny server_ip: |$server_ip| or Nesprávny session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT count(*) from web_client_sessions where session_name='$session_name' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nesprávny session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
# do nothing for now
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERZIA: $version POSTAVENÉ: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Overiť aktívnu pobočku";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
}
|
||||
|
||||
|
||||
echo "DateTime: $NOW_TIME|";
|
||||
echo "UnixTime: $StarTtime|";
|
||||
|
||||
$stmt="SELECT count(*) FROM parked_channels where server_ip = '$server_ip';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
echo "$row[0]|";
|
||||
|
||||
$MT[0]='';
|
||||
$row=''; $rowx='';
|
||||
$channel_live=1;
|
||||
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Exten $exten Nie je správny alebo protokol $protocol Nie je správny\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT channel,extension FROM live_sip_channels where server_ip = '$server_ip' and channel LIKE \"$protocol/$exten%\";";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$channels_list = mysql_num_rows($rslt);}
|
||||
echo "$channels_list|";
|
||||
$loop_count=0;
|
||||
while ($channels_list>$loop_count)
|
||||
{
|
||||
$loop_count++;
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$ChanneLA[$loop_count] = "$row[0]";
|
||||
$ChanneLB[$loop_count] = "$row[1]";
|
||||
if ($format=='debug') {echo "\n<!-- $row[0] $row[1] -->";}
|
||||
}
|
||||
}
|
||||
|
||||
$counter=0;
|
||||
while($loop_count > $counter)
|
||||
{
|
||||
$counter++;
|
||||
$stmt="SELECT channel FROM live_channels where server_ip = '$server_ip' and channel_data = '$ChanneLA[$counter]';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$trunk_count = mysql_num_rows($rslt);}
|
||||
if ($trunk_count>0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
echo "Conversation: $counter ~";
|
||||
echo "KanálA: $ChanneLA[$counter] ~";
|
||||
echo "KanálB: $ChanneLB[$counter] ~";
|
||||
echo "KanálBtrunk: $row[0]|";
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT channel FROM live_sip_channels where server_ip = '$server_ip' and channel_data = '$ChanneLA[$counter]';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$trunk_count = mysql_num_rows($rslt);}
|
||||
if ($trunk_count>0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
echo "Conversation: $counter ~";
|
||||
echo "KanálA: $ChanneLA[$counter] ~";
|
||||
echo "KanálB: $ChanneLB[$counter] ~";
|
||||
echo "KanálBtrunk: $row[0]|";
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT channel FROM live_sip_channels where server_ip = '$server_ip' and channel LIKE \"$ChanneLB[$counter]%\";";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$trunk_count = mysql_num_rows($rslt);}
|
||||
if ($trunk_count>0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
echo "Conversation: $counter ~";
|
||||
echo "KanálA: $ChanneLA[$counter] ~";
|
||||
echo "KanálB: $ChanneLB[$counter] ~";
|
||||
echo "KanálBtrunk: $row[0]|";
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT channel FROM live_channels where server_ip = '$server_ip' and channel LIKE \"$ChanneLB[$counter]%\";";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$trunk_count = mysql_num_rows($rslt);}
|
||||
if ($trunk_count>0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
echo "Conversation: $counter ~";
|
||||
echo "KanálA: $ChanneLA[$counter] ~";
|
||||
echo "KanálB: $ChanneLB[$counter] ~";
|
||||
echo "KanálBtrunk: $row[0]|";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Conversation: $counter ~";
|
||||
echo "KanálA: $ChanneLA[$counter] ~";
|
||||
echo "KanálB: $ChanneLB[$counter] ~";
|
||||
echo "KanálBtrunk: $ChanneLA[$counter]|";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo "\n";
|
||||
|
||||
### check for live_inbound entry
|
||||
$stmt="select * from live_inbound where server_ip = '$server_ip' and phone_ext = '$exten' and acknowledged='N';";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
if ($rslt) {$channels_list = mysql_num_rows($rslt);}
|
||||
if ($channels_list>0)
|
||||
{
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$LIuniqueid = "$row[0]";
|
||||
$LIchannel = "$row[1]";
|
||||
$LIcallerid = "$row[3]";
|
||||
$LIdatetime = "$row[6]";
|
||||
echo "$LIuniqueid|$LIchannel|$LIcallerid|$LIdatetime|$row[8]|$row[9]|$row[10]|$row[11]|$row[12]|$row[13]|";
|
||||
if ($format=='debug') {echo "\n<!-- $row[0]|$row[1]|$row[2]|$row[3]|$row[4]|$row[5]|$row[6]|$row[7]|$row[8]|$row[9]|$row[10]|$row[11]|$row[12]|$row[13]| -->";}
|
||||
}
|
||||
|
||||
echo "\n";
|
||||
|
||||
|
||||
### if favorites are present do a lookup to see if any are active
|
||||
if ($favorites_count > 0)
|
||||
{
|
||||
$favorites = explode(',',$favorites_list);
|
||||
$h=0;
|
||||
$favs_print='';
|
||||
while ($favorites_count > $h)
|
||||
{
|
||||
$fav_extension = explode('/',$favorites[$h]);
|
||||
$stmt="SELECT count(*) FROM live_sip_channels where server_ip = '$server_ip' and channel LIKE \"$favorites[$h]%\";";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$favs_print .= "$fav_extension[1]: $row[0] ~";
|
||||
$h++;
|
||||
}
|
||||
echo "$favs_print\n";
|
||||
}
|
||||
|
||||
if ($format=='debug') {echo "\n<!-- |$favorites_count|$favorites_list| -->";}
|
||||
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
$ENDtime = date("U");
|
||||
$RUNtime = ($ENDtime - $StarTtime);
|
||||
echo "\n<!-- bežiaci script: $RUNtime sekúnd -->";
|
||||
echo "\n</body>\n</html>\n";
|
||||
}
|
||||
|
||||
exit;
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,146 @@
|
||||
<?
|
||||
### park_calls_display.php
|
||||
###
|
||||
### Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
###
|
||||
### This script is designed purely to send the details on the parked calls on the server
|
||||
### This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table
|
||||
###
|
||||
### required variables:
|
||||
### - $server_ip
|
||||
### - $session_name
|
||||
### - $user
|
||||
### - $pass
|
||||
### optional variables:
|
||||
### - $format - ('text','debug')
|
||||
### - $exten - ('cc101','testphone','49-1','1234','913125551212',...)
|
||||
### - $protocol - ('SIP','Zap','IAX2',...)
|
||||
###
|
||||
|
||||
# changes
|
||||
# 50524-1515 - First build of script
|
||||
# 50711-1208 - removed HTTP authentication in favor of user/pass vars
|
||||
# 60421-1111 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
||||
# 60619-1205 - Added variable filters to close security holes for login form
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
### If you have globals turned off uncomment these lines
|
||||
if (isset($_GET["user"])) {$user=$_GET["user"];}
|
||||
elseif (isset($_POST["user"])) {$user=$_POST["user"];}
|
||||
if (isset($_GET["pass"])) {$pass=$_GET["pass"];}
|
||||
elseif (isset($_POST["pass"])) {$pass=$_POST["pass"];}
|
||||
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
|
||||
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
|
||||
if (isset($_GET["session_name"])) {$session_name=$_GET["session_name"];}
|
||||
elseif (isset($_POST["session_name"])) {$session_name=$_POST["session_name"];}
|
||||
if (isset($_GET["format"])) {$format=$_GET["format"];}
|
||||
elseif (isset($_POST["format"])) {$format=$_POST["format"];}
|
||||
if (isset($_GET["exten"])) {$exten=$_GET["exten"];}
|
||||
elseif (isset($_POST["exten"])) {$exten=$_POST["exten"];}
|
||||
if (isset($_GET["protocol"])) {$protocol=$_GET["protocol"];}
|
||||
elseif (isset($_POST["protocol"])) {$protocol=$_POST["protocol"];}
|
||||
|
||||
$user=ereg_replace("[^0-9a-zA-Z]","",$user);
|
||||
$pass=ereg_replace("[^0-9a-zA-Z]","",$pass);
|
||||
|
||||
# default optional vars if not set
|
||||
if (!isset($format)) {$format="text";}
|
||||
if (!isset($park_limit)) {$park_limit="1000";}
|
||||
|
||||
$version = '0.0.4';
|
||||
$build = '60619-1205';
|
||||
$StarTtime = date("U");
|
||||
$NOW_DATE = date("Y-m-d");
|
||||
$NOW_TIME = date("Y-m-d H:i:s");
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$user' and pass='$pass' and user_level > 0;";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0) )
|
||||
{
|
||||
echo "Nesprávny Užívateľské meno/Heslo: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) ) {
|
||||
echo "Nesprávny server_ip: |$server_ip| or Nesprávny session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT count(*) from web_client_sessions where session_name='$session_name' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nesprávny session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
# do nothing for now
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERZIA: $version POSTAVENÉ: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Zobraziť zaparkované hovory";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
}
|
||||
|
||||
|
||||
$row=''; $rowx='';
|
||||
$channel_live=1;
|
||||
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Exten $exten Nie je správny alebo protokol $protocol Nie je správny\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
##### print parked calls from the parked_channels table
|
||||
$stmt="SELECT * from parked_channels where server_ip = '$server_ip' order by parked_time limit $park_limit;";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$park_calls_count = mysql_num_rows($rslt);
|
||||
echo "$park_calls_count\n";
|
||||
$loop_count=0;
|
||||
while ($park_calls_count>$loop_count)
|
||||
{
|
||||
$loop_count++;
|
||||
$row=mysql_fetch_row($rslt);
|
||||
echo "$row[0] ~$row[2] ~$row[3] ~$row[4] ~$row[5]|";
|
||||
}
|
||||
echo "\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
$ENDtime = date("U");
|
||||
$RUNtime = ($ENDtime - $StarTtime);
|
||||
echo "\n<!-- bežiaci script: $RUNtime sekúnd -->";
|
||||
echo "\n</body>\n</html>\n";
|
||||
}
|
||||
|
||||
exit;
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,140 @@
|
||||
<?
|
||||
### voicemail_check.php
|
||||
###
|
||||
### Copyright (C) 2006 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
###
|
||||
### This script is designed purely to check whether the voicemail box on the server defined has new and old messages
|
||||
### This script depends on the server_ip being sent and also needs to have a valid user/pass from the vicidial_users table
|
||||
###
|
||||
### required variables:
|
||||
### - $server_ip
|
||||
### - $session_name
|
||||
### - $user
|
||||
### - $pass
|
||||
### optional variables:
|
||||
### - $format - ('text','debug')
|
||||
### - $vmail_box - ('101','1234',...)
|
||||
###
|
||||
|
||||
# changes
|
||||
# 50422-1147 - First build of script
|
||||
# 50503-1241 - added session_name checking for extra security
|
||||
# 50711-1201 - removed HTTP authentication in favor of user/pass vars
|
||||
# 60421-1147 - check GET/POST vars lines with isset to not trigger PHP NOTICES
|
||||
# 60619-1204 - Added variable filters to close security holes for login form
|
||||
#
|
||||
|
||||
require("dbconnect.php");
|
||||
|
||||
### If you have globals turned off uncomment these lines
|
||||
if (isset($_GET["user"])) {$user=$_GET["user"];}
|
||||
elseif (isset($_POST["user"])) {$user=$_POST["user"];}
|
||||
if (isset($_GET["pass"])) {$pass=$_GET["pass"];}
|
||||
elseif (isset($_POST["pass"])) {$pass=$_POST["pass"];}
|
||||
if (isset($_GET["server_ip"])) {$server_ip=$_GET["server_ip"];}
|
||||
elseif (isset($_POST["server_ip"])) {$server_ip=$_POST["server_ip"];}
|
||||
if (isset($_GET["session_name"])) {$session_name=$_GET["session_name"];}
|
||||
elseif (isset($_POST["session_name"])) {$session_name=$_POST["session_name"];}
|
||||
if (isset($_GET["format"])) {$format=$_GET["format"];}
|
||||
elseif (isset($_POST["format"])) {$format=$_POST["format"];}
|
||||
if (isset($_GET["vmail_box"])) {$vmail_box=$_GET["vmail_box"];}
|
||||
elseif (isset($_POST["vmail_box"])) {$vmail_box=$_POST["vmail_box"];}
|
||||
|
||||
$user=ereg_replace("[^0-9a-zA-Z]","",$user);
|
||||
$pass=ereg_replace("[^0-9a-zA-Z]","",$pass);
|
||||
|
||||
# default optional vars if not set
|
||||
if (!isset($format)) {$format="text";}
|
||||
|
||||
$version = '0.0.5';
|
||||
$build = '60619-1204';
|
||||
$StarTtime = date("U");
|
||||
$NOW_DATE = date("Y-m-d");
|
||||
$NOW_TIME = date("Y-m-d H:i:s");
|
||||
if (!isset($query_date)) {$query_date = $NOW_DATE;}
|
||||
|
||||
$stmt="SELECT count(*) from vicidial_users where user='$user' and pass='$pass' and user_level > 0;";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$auth=$row[0];
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Nesprávny Užívateľské meno/Heslo: |$user|$pass|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Nesprávny server_ip: |$server_ip| or Nesprávny session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT count(*) from web_client_sessions where session_name='$session_name' and server_ip='$server_ip';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$row=mysql_fetch_row($rslt);
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Nesprávny session_name: |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
# do nothing for now
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERZIA: $version POSTAVENÉ: $build VMBOX: $vmail_box server_ip: $server_ip-->\n";
|
||||
echo "<title>Overiť hlasovú schránku";
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
}
|
||||
|
||||
$MT[0]='';
|
||||
$row=''; $rowx='';
|
||||
if (strlen($vmail_box)<1)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "hlasová schránka $vmail_box Nie je správny\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
$stmt="SELECT messages,old_messages FROM phones where server_ip='$server_ip' and voicemail_id='$vmail_box' limit 1;";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_query($stmt, $link);
|
||||
$vmails_list = mysql_num_rows($rslt);
|
||||
$loop_count=0;
|
||||
while ($vmails_list>$loop_count)
|
||||
{
|
||||
$loop_count++;
|
||||
$row=mysql_fetch_row($rslt);
|
||||
echo "$row[0]|$row[1]";
|
||||
if ($format=='debug') {echo "\n<!-- $row[0] $row[1] -->";}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($format=='debug')
|
||||
{
|
||||
$ENDtime = date("U");
|
||||
$RUNtime = ($ENDtime - $StarTtime);
|
||||
echo "\n<!-- bežiaci script: $RUNtime sekúnd -->";
|
||||
echo "\n</body>\n</html>\n";
|
||||
}
|
||||
|
||||
exit;
|
||||
|
||||
?>
|
||||
@@ -1159,11 +1159,12 @@ $list_mix_container = ereg_replace(";","",$list_mix_container);
|
||||
# 71125-1751 - Added allowable transfer groups to campaign detail screen
|
||||
# 80330-0814 - Added CBHOLD block on selecting, added user stats/status links
|
||||
# 80424-0442 - Added non_latin system_settings lookup at top to override dbconnect setting
|
||||
#
|
||||
# 81011-0855 - Version marker for 2.0.5.1rc5 release
|
||||
#
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||
|
||||
$admin_version = '2.0.4-121';
|
||||
$build = '80424-0442';
|
||||
$admin_version = '2.0.4-122';
|
||||
$build = '81011-0855';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
|
||||
@@ -21,11 +21,13 @@
|
||||
# 70510-1518 - Added campaign and system duplicate check and phonecode override
|
||||
# 80428-0417 - UTF8 changes
|
||||
# 80514-1030 - removed filesize limit and raised number of errors to be displayed
|
||||
# 81011-2009 - a few bug fixes
|
||||
#
|
||||
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
|
||||
$version = '2.0.4-25';
|
||||
$build = '80514-1030';
|
||||
$version = '2.0.4-26';
|
||||
$build = '81011-2009';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -49,6 +51,7 @@ if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
if (isset($_GET["leadfile_name"])) {$leadfile_name=$_GET["leadfile_name"];}
|
||||
elseif (isset($_POST["leadfile_name"])) {$leadfile_name=$_POST["leadfile_name"];}
|
||||
if (isset($_FILES["leadfile"])) {$leadfile_name=$_FILES["leadfile"]['name'];}
|
||||
if (isset($_GET["file_layout"])) {$file_layout=$_GET["file_layout"];}
|
||||
elseif (isset($_POST["file_layout"])) {$file_layout=$_POST["file_layout"];}
|
||||
if (isset($_GET["OK_to_process"])) {$OK_to_process=$_GET["OK_to_process"];}
|
||||
@@ -1291,54 +1294,23 @@ if ($leadfile) {
|
||||
|
||||
for ($i=0; $i<mysql_num_fields($rslt); $i++) {
|
||||
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
if ( (mysql_field_name($rslt, $i)=="list_id" and $list_id_override!="") or (mysql_field_name($rslt, $i)=="phone_code" and $phone_code_override!="") ) {
|
||||
print "<!-- skipping " . mysql_field_name($rslt, $i) . " -->\n";
|
||||
} else {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
|
||||
#print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
#print " <td align=center><font class=standard>$row[$i]</font></td>\r\n";
|
||||
#print " <td align=center><select name=datafield$i>\r\n";
|
||||
#print " <option value=''>---------------------</option>\r\n";
|
||||
#print " <option value='entry_date'>Entry date</option>\r\n";
|
||||
#print " <option value='modify_date'>Modify date</option>\r\n";
|
||||
#print " <option value='status'>Status</option>\r\n";
|
||||
#print " <option value='user'>User</option>\r\n";
|
||||
#print " <option value='vendor_lead_code'>Vendor lead code</option>\r\n";
|
||||
#print " <option value='source_id'>Source ID</option>\r\n";
|
||||
#print " <option value='list_id'>List ID</option>\r\n";
|
||||
#print " <option value='gmt_offset'>Campaign ID</option>\r\n";
|
||||
#print " <option value='called_since_last_reset'>Called since last reset</option>\r\n";
|
||||
#print " <option value='phone_code'>Phone code</option>\r\n";
|
||||
#print " <option value='phone_number'>Phone number</option>\r\n";
|
||||
#print " <option value='title'>Title</option>\r\n";
|
||||
#print " <option value='first_name'>First name</option>\r\n";
|
||||
#print " <option value='middle_initial'>Middle initial</option>\r\n";
|
||||
#print " <option value='last_name'>Last name</option>\r\n";
|
||||
#print " <option value='address1'>Address 1</option>\r\n";
|
||||
#print " <option value='address2'>Address 2</option>\r\n";
|
||||
#print " <option value='address3'>Address 3</option>\r\n";
|
||||
#print " <option value='city'>City</option>\r\n";
|
||||
#print " <option value='state'>State</option>\r\n";
|
||||
#print " <option value='province'>Province</option>\r\n";
|
||||
#print " <option value='postal_code'>Postal code</option>\r\n";
|
||||
#print " <option value='country_code'>Country code</option>\r\n";
|
||||
#print " <option value='gender'>Gender</option>\r\n";
|
||||
#print " <option value='date_of_birth'>Date of birth</option>\r\n";
|
||||
#print " <option value='alt_phone'>Alt. phone</option>\r\n";
|
||||
#print " <option value='email'>E-mail</option>\r\n";
|
||||
#print " <option value='security_phrase'>Security phrase</option>\r\n";
|
||||
#print " <option value='comments'>Comments</option>\r\n";
|
||||
#print " </td>\r\n";
|
||||
#print " </tr>\r\n";
|
||||
}
|
||||
}
|
||||
else if (!eregi(".csv", $leadfile_name))
|
||||
@@ -1393,54 +1365,22 @@ if ($leadfile) {
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
$row=fgetcsv($file, 1000, ",");
|
||||
for ($i=0; $i<mysql_num_fields($rslt); $i++) {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
if ( (mysql_field_name($rslt, $i)=="list_id" and $list_id_override!="") or (mysql_field_name($rslt, $i)=="phone_code" and $phone_code_override!="") ) {
|
||||
print "<!-- skipping " . mysql_field_name($rslt, $i) . " -->\n";
|
||||
} else {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
|
||||
#print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
#print " <td align=center><font class=standard>$row[$i]</font></td>\r\n";
|
||||
#print " <td align=center><select name=datafield$i>\r\n";
|
||||
#print " <option value=''>---------------------</option>\r\n";
|
||||
#print " <option value='entry_date'>Entry date</option>\r\n";
|
||||
#print " <option value='modify_date'>Modify date</option>\r\n";
|
||||
#print " <option value='status'>Status</option>\r\n";
|
||||
#print " <option value='user'>User</option>\r\n";
|
||||
#print " <option value='vendor_lead_code'>Vendor lead code</option>\r\n";
|
||||
#print " <option value='source_id'>Source ID</option>\r\n";
|
||||
#print " <option value='list_id'>List ID</option>\r\n";
|
||||
#print " <option value='gmt_offset'>Campaign ID</option>\r\n";
|
||||
#print " <option value='called_since_last_reset'>Called since last reset</option>\r\n";
|
||||
#print " <option value='phone_code'>Phone code</option>\r\n";
|
||||
#print " <option value='phone_number'>Phone number</option>\r\n";
|
||||
#print " <option value='title'>Title</option>\r\n";
|
||||
#print " <option value='first_name'>First name</option>\r\n";
|
||||
#print " <option value='middle_initial'>Middle initial</option>\r\n";
|
||||
#print " <option value='last_name'>Last name</option>\r\n";
|
||||
#print " <option value='address1'>Address 1</option>\r\n";
|
||||
#print " <option value='address2'>Address 2</option>\r\n";
|
||||
#print " <option value='address3'>Address 3</option>\r\n";
|
||||
#print " <option value='city'>City</option>\r\n";
|
||||
#print " <option value='state'>State</option>\r\n";
|
||||
#print " <option value='province'>Province</option>\r\n";
|
||||
#print " <option value='postal_code'>Postal code</option>\r\n";
|
||||
#print " <option value='country_code'>Country code</option>\r\n";
|
||||
#print " <option value='gender'>Gender</option>\r\n";
|
||||
#print " <option value='date_of_birth'>Date of birth</option>\r\n";
|
||||
#print " <option value='alt_phone'>Alt. phone</option>\r\n";
|
||||
#print " <option value='email'>E-mail</option>\r\n";
|
||||
#print " <option value='security_phrase'>Security phrase</option>\r\n";
|
||||
#print " <option value='comments'>Comments</option>\r\n";
|
||||
#print " </td>\r\n";
|
||||
#print " </tr>\r\n";
|
||||
}
|
||||
}
|
||||
print " <tr bgcolor='#330099'>\r\n";
|
||||
@@ -2090,4 +2030,6 @@ if (!$AC_processed)
|
||||
}
|
||||
|
||||
return $gmt_offset;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1159,11 +1159,12 @@ $list_mix_container = ereg_replace(";","",$list_mix_container);
|
||||
# 71125-1751 - Added allowable transfer groups to campaign detail screen
|
||||
# 80330-0814 - Added CBHOLD block on selecting, added user stats/status links
|
||||
# 80424-0442 - Added non_latin system_settings lookup at top to override dbconnect setting
|
||||
#
|
||||
# 81011-0855 - Version marker for 2.0.5.1rc5 release
|
||||
#
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||
|
||||
$admin_version = '2.0.4-121';
|
||||
$build = '80424-0442';
|
||||
$admin_version = '2.0.4-122';
|
||||
$build = '81011-0855';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
|
||||
@@ -21,11 +21,13 @@
|
||||
# 70510-1518 - Added campaign and system duplicate check and phonecode override
|
||||
# 80428-0417 - UTF8 changes
|
||||
# 80514-1030 - removed filesize limit and raised number of errors to be displayed
|
||||
# 81011-2009 - a few bug fixes
|
||||
#
|
||||
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
|
||||
$version = '2.0.4-25';
|
||||
$build = '80514-1030';
|
||||
$version = '2.0.4-26';
|
||||
$build = '81011-2009';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -49,6 +51,7 @@ if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
|
||||
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
|
||||
if (isset($_GET["leadfile_name"])) {$leadfile_name=$_GET["leadfile_name"];}
|
||||
elseif (isset($_POST["leadfile_name"])) {$leadfile_name=$_POST["leadfile_name"];}
|
||||
if (isset($_FILES["leadfile"])) {$leadfile_name=$_FILES["leadfile"]['name'];}
|
||||
if (isset($_GET["file_layout"])) {$file_layout=$_GET["file_layout"];}
|
||||
elseif (isset($_POST["file_layout"])) {$file_layout=$_POST["file_layout"];}
|
||||
if (isset($_GET["OK_to_process"])) {$OK_to_process=$_GET["OK_to_process"];}
|
||||
@@ -1291,54 +1294,23 @@ if ($leadfile) {
|
||||
|
||||
for ($i=0; $i<mysql_num_fields($rslt); $i++) {
|
||||
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
if ( (mysql_field_name($rslt, $i)=="list_id" and $list_id_override!="") or (mysql_field_name($rslt, $i)=="phone_code" and $phone_code_override!="") ) {
|
||||
print "<!-- skipping " . mysql_field_name($rslt, $i) . " -->\n";
|
||||
} else {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
|
||||
#print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
#print " <td align=center><font class=standard>$row[$i]</font></td>\r\n";
|
||||
#print " <td align=center><select name=datafield$i>\r\n";
|
||||
#print " <option value=''>---------------------</option>\r\n";
|
||||
#print " <option value='entry_date'>Entry date</option>\r\n";
|
||||
#print " <option value='modify_date'>Modify date</option>\r\n";
|
||||
#print " <option value='status'>Status</option>\r\n";
|
||||
#print " <option value='user'>User</option>\r\n";
|
||||
#print " <option value='vendor_lead_code'>Vendor lead code</option>\r\n";
|
||||
#print " <option value='source_id'>Source ID</option>\r\n";
|
||||
#print " <option value='list_id'>Liste Identifikation</option>\r\n";
|
||||
#print " <option value='gmt_offset'>Kampagne Identifikation</option>\r\n";
|
||||
#print " <option value='called_since_last_reset'>Called since last reset</option>\r\n";
|
||||
#print " <option value='phone_code'>Phone code</option>\r\n";
|
||||
#print " <option value='phone_number'>Phone number</option>\r\n";
|
||||
#print " <option value='title'>Title</option>\r\n";
|
||||
#print " <option value='first_name'>First name</option>\r\n";
|
||||
#print " <option value='middle_initial'>Middle initial</option>\r\n";
|
||||
#print " <option value='last_name'>Last name</option>\r\n";
|
||||
#print " <option value='address1'Adresse1</option>\r\n";
|
||||
#print " <option value='address2'Adresse2</option>\r\n";
|
||||
#print " <option value='address3'Adresse3</option>\r\n";
|
||||
#print " <option value='city'>Stadt</option>\r\n";
|
||||
#print " <option value='state'>State</option>\r\n";
|
||||
#print " <option value='province'>Provinz</option>\r\n";
|
||||
#print " <option value='postal_code'>Postal code</option>\r\n";
|
||||
#print " <option value='country_code'Landcode</option>\r\n";
|
||||
#print " <option value='gender'>Geschlecht</option>\r\n";
|
||||
#print " <option value='date_of_birth'>Date of birth</option>\r\n";
|
||||
#print " <option value='alt_phone'>Alt. phone</option>\r\n";
|
||||
#print " <option value='email'>E-mail</option>\r\n";
|
||||
#print " <option value='security_phrase'Sicherheitphrase</option>\r\n";
|
||||
#print " <option value='comments'>Anmerkungen</option>\r\n";
|
||||
#print " </td>\r\n";
|
||||
#print " </tr>\r\n";
|
||||
}
|
||||
}
|
||||
else if (!eregi(".csv", $leadfile_name))
|
||||
@@ -1393,54 +1365,22 @@ if ($leadfile) {
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
$row=fgetcsv($file, 1000, ",");
|
||||
for ($i=0; $i<mysql_num_fields($rslt); $i++) {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
if ( (mysql_field_name($rslt, $i)=="list_id" and $list_id_override!="") or (mysql_field_name($rslt, $i)=="phone_code" and $phone_code_override!="") ) {
|
||||
print "<!-- skipping " . mysql_field_name($rslt, $i) . " -->\n";
|
||||
} else {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
|
||||
#print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
#print " <td align=center><font class=standard>$row[$i]</font></td>\r\n";
|
||||
#print " <td align=center><select name=datafield$i>\r\n";
|
||||
#print " <option value=''>---------------------</option>\r\n";
|
||||
#print " <option value='entry_date'>Entry date</option>\r\n";
|
||||
#print " <option value='modify_date'>Modify date</option>\r\n";
|
||||
#print " <option value='status'>Status</option>\r\n";
|
||||
#print " <option value='user'>User</option>\r\n";
|
||||
#print " <option value='vendor_lead_code'>Vendor lead code</option>\r\n";
|
||||
#print " <option value='source_id'>Source ID</option>\r\n";
|
||||
#print " <option value='list_id'>Liste Identifikation</option>\r\n";
|
||||
#print " <option value='gmt_offset'>Kampagne Identifikation</option>\r\n";
|
||||
#print " <option value='called_since_last_reset'>Called since last reset</option>\r\n";
|
||||
#print " <option value='phone_code'>Phone code</option>\r\n";
|
||||
#print " <option value='phone_number'>Phone number</option>\r\n";
|
||||
#print " <option value='title'>Title</option>\r\n";
|
||||
#print " <option value='first_name'>First name</option>\r\n";
|
||||
#print " <option value='middle_initial'>Middle initial</option>\r\n";
|
||||
#print " <option value='last_name'>Last name</option>\r\n";
|
||||
#print " <option value='address1'Adresse1</option>\r\n";
|
||||
#print " <option value='address2'Adresse2</option>\r\n";
|
||||
#print " <option value='address3'Adresse3</option>\r\n";
|
||||
#print " <option value='city'>Stadt</option>\r\n";
|
||||
#print " <option value='state'>State</option>\r\n";
|
||||
#print " <option value='province'>Provinz</option>\r\n";
|
||||
#print " <option value='postal_code'>Postal code</option>\r\n";
|
||||
#print " <option value='country_code'Landcode</option>\r\n";
|
||||
#print " <option value='gender'>Geschlecht</option>\r\n";
|
||||
#print " <option value='date_of_birth'>Date of birth</option>\r\n";
|
||||
#print " <option value='alt_phone'>Alt. phone</option>\r\n";
|
||||
#print " <option value='email'>E-mail</option>\r\n";
|
||||
#print " <option value='security_phrase'Sicherheitphrase</option>\r\n";
|
||||
#print " <option value='comments'>Anmerkungen</option>\r\n";
|
||||
#print " </td>\r\n";
|
||||
#print " </tr>\r\n";
|
||||
}
|
||||
}
|
||||
print " <tr bgcolor='#330099'>\r\n";
|
||||
@@ -2090,4 +2030,6 @@ if (!$AC_processed)
|
||||
}
|
||||
|
||||
return $gmt_offset;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1159,11 +1159,12 @@ $list_mix_container = ereg_replace(";","",$list_mix_container);
|
||||
# 71125-1751 - Added allowable transfer groups to campaign detail screen
|
||||
# 80330-0814 - Added CBHOLD block on selecting, added user stats/status links
|
||||
# 80424-0442 - Added non_latin system_settings lookup at top to override dbconnect setting
|
||||
#
|
||||
# 81011-0855 - Version marker for 2.0.5.1rc5 release
|
||||
#
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||
|
||||
$admin_version = '2.0.4-121';
|
||||
$build = '80424-0442';
|
||||
$admin_version = '2.0.4-122';
|
||||
$build = '81011-0855';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
|
||||
@@ -21,11 +21,13 @@
|
||||
# 70510-1518 - Added campaign and system duplicate check and phonecode override
|
||||
# 80428-0417 - UTF8 changes
|
||||
# 80514-1030 - removed filesize limit and raised number of errors to be displayed
|
||||
# 81011-2009 - a few bug fixes
|
||||
#
|
||||
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
|
||||
$version = '2.0.4-25';
|
||||
$build = '80514-1030';
|
||||
$version = '2.0.4-26';
|
||||
$build = '81011-2009';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -49,6 +51,7 @@ if (isset($_GET["ΕΠΙΒΕΒΑΙΩΣΗ"])) {$ΕΠΙΒΕΒΑΙΩΣΗ=$_GET["
|
||||
elseif (isset($_POST["ΕΠΙΒΕΒΑΙΩΣΗ"])) {$ΕΠΙΒΕΒΑΙΩΣΗ=$_POST["ΕΠΙΒΕΒΑΙΩΣΗ"];}
|
||||
if (isset($_GET["leadfile_name"])) {$leadfile_name=$_GET["leadfile_name"];}
|
||||
elseif (isset($_POST["leadfile_name"])) {$leadfile_name=$_POST["leadfile_name"];}
|
||||
if (isset($_FILES["leadfile"])) {$leadfile_name=$_FILES["leadfile"]['name'];}
|
||||
if (isset($_GET["file_layout"])) {$file_layout=$_GET["file_layout"];}
|
||||
elseif (isset($_POST["file_layout"])) {$file_layout=$_POST["file_layout"];}
|
||||
if (isset($_GET["OK_to_process"])) {$OK_to_process=$_GET["OK_to_process"];}
|
||||
@@ -1291,54 +1294,23 @@ if ($leadfile) {
|
||||
|
||||
for ($i=0; $i<mysql_num_fields($rslt); $i++) {
|
||||
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
if ( (mysql_field_name($rslt, $i)=="list_id" and $list_id_override!="") or (mysql_field_name($rslt, $i)=="phone_code" and $phone_code_override!="") ) {
|
||||
print "<!-- skipping " . mysql_field_name($rslt, $i) . " -->\n";
|
||||
} else {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
|
||||
#print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
#print " <td align=center><font class=standard>$row[$i]</font></td>\r\n";
|
||||
#print " <td align=center><select name=datafield$i>\r\n";
|
||||
#print " <option value=''>---------------------</option>\r\n";
|
||||
#print " <option value='entry_date'>Entry date</option>\r\n";
|
||||
#print " <option value='modify_date'>Modify date</option>\r\n";
|
||||
#print " <option value='status'>Status</option>\r\n";
|
||||
#print " <option value='user'>User</option>\r\n";
|
||||
#print " <option value='vendor_lead_code'>Vendor lead code</option>\r\n";
|
||||
#print " <option value='source_id'>Source ID</option>\r\n";
|
||||
#print " <option value='list_id'>ID Λίστας</option>\r\n";
|
||||
#print " <option value='gmt_offset'>ID Εκστρατείας</option>\r\n";
|
||||
#print " <option value='called_since_last_reset'>Called since last reset</option>\r\n";
|
||||
#print " <option value='phone_code'>Phone code</option>\r\n";
|
||||
#print " <option value='phone_number'>Phone number</option>\r\n";
|
||||
#print " <option value='title'>Title</option>\r\n";
|
||||
#print " <option value='first_name'>First name</option>\r\n";
|
||||
#print " <option value='middle_initial'>Middle initial</option>\r\n";
|
||||
#print " <option value='last_name'>Last name</option>\r\n";
|
||||
#print " <option value='address1'>Διεύθυνση 1</option>\r\n";
|
||||
#print " <option value='address2'>Διεύθυνση 2</option>\r\n";
|
||||
#print " <option value='address3'>Διεύθυνση 3</option>\r\n";
|
||||
#print " <option value='city'>Πόλη</option>\r\n";
|
||||
#print " <option value='state'>State</option>\r\n";
|
||||
#print " <option value='province'>Επαρχία</option>\r\n";
|
||||
#print " <option value='postal_code'>Postal code</option>\r\n";
|
||||
#print " <option value='country_code'>Χώρα code</option>\r\n";
|
||||
#print " <option value='gender'>Φύλο</option>\r\n";
|
||||
#print " <option value='date_of_birth'>Date of birth</option>\r\n";
|
||||
#print " <option value='alt_phone'>Alt. phone</option>\r\n";
|
||||
#print " <option value='email'>E-mail</option>\r\n";
|
||||
#print " <option value='security_phrase'>Ασφάλεια phrase</option>\r\n";
|
||||
#print " <option value='comments'>Σχόλια</option>\r\n";
|
||||
#print " </td>\r\n";
|
||||
#print " </tr>\r\n";
|
||||
}
|
||||
}
|
||||
else if (!eregi(".csv", $leadfile_name))
|
||||
@@ -1393,54 +1365,22 @@ if ($leadfile) {
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
$row=fgetcsv($file, 1000, ",");
|
||||
for ($i=0; $i<mysql_num_fields($rslt); $i++) {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
if ( (mysql_field_name($rslt, $i)=="list_id" and $list_id_override!="") or (mysql_field_name($rslt, $i)=="phone_code" and $phone_code_override!="") ) {
|
||||
print "<!-- skipping " . mysql_field_name($rslt, $i) . " -->\n";
|
||||
} else {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
|
||||
#print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
#print " <td align=center><font class=standard>$row[$i]</font></td>\r\n";
|
||||
#print " <td align=center><select name=datafield$i>\r\n";
|
||||
#print " <option value=''>---------------------</option>\r\n";
|
||||
#print " <option value='entry_date'>Entry date</option>\r\n";
|
||||
#print " <option value='modify_date'>Modify date</option>\r\n";
|
||||
#print " <option value='status'>Status</option>\r\n";
|
||||
#print " <option value='user'>User</option>\r\n";
|
||||
#print " <option value='vendor_lead_code'>Vendor lead code</option>\r\n";
|
||||
#print " <option value='source_id'>Source ID</option>\r\n";
|
||||
#print " <option value='list_id'>ID Λίστας</option>\r\n";
|
||||
#print " <option value='gmt_offset'>ID Εκστρατείας</option>\r\n";
|
||||
#print " <option value='called_since_last_reset'>Called since last reset</option>\r\n";
|
||||
#print " <option value='phone_code'>Phone code</option>\r\n";
|
||||
#print " <option value='phone_number'>Phone number</option>\r\n";
|
||||
#print " <option value='title'>Title</option>\r\n";
|
||||
#print " <option value='first_name'>First name</option>\r\n";
|
||||
#print " <option value='middle_initial'>Middle initial</option>\r\n";
|
||||
#print " <option value='last_name'>Last name</option>\r\n";
|
||||
#print " <option value='address1'>Διεύθυνση 1</option>\r\n";
|
||||
#print " <option value='address2'>Διεύθυνση 2</option>\r\n";
|
||||
#print " <option value='address3'>Διεύθυνση 3</option>\r\n";
|
||||
#print " <option value='city'>Πόλη</option>\r\n";
|
||||
#print " <option value='state'>State</option>\r\n";
|
||||
#print " <option value='province'>Επαρχία</option>\r\n";
|
||||
#print " <option value='postal_code'>Postal code</option>\r\n";
|
||||
#print " <option value='country_code'>Χώρα code</option>\r\n";
|
||||
#print " <option value='gender'>Φύλο</option>\r\n";
|
||||
#print " <option value='date_of_birth'>Date of birth</option>\r\n";
|
||||
#print " <option value='alt_phone'>Alt. phone</option>\r\n";
|
||||
#print " <option value='email'>E-mail</option>\r\n";
|
||||
#print " <option value='security_phrase'>Ασφάλεια phrase</option>\r\n";
|
||||
#print " <option value='comments'>Σχόλια</option>\r\n";
|
||||
#print " </td>\r\n";
|
||||
#print " </tr>\r\n";
|
||||
}
|
||||
}
|
||||
print " <tr bgcolor='#330099'>\r\n";
|
||||
@@ -2090,4 +2030,6 @@ if (!$AC_processed)
|
||||
}
|
||||
|
||||
return $gmt_offset;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1159,11 +1159,12 @@ $list_mix_container = ereg_replace(";","",$list_mix_container);
|
||||
# 71125-1751 - Added allowable transfer groups to campaign detail screen
|
||||
# 80330-0814 - Added CBHOLD block on selecting, added user stats/status links
|
||||
# 80424-0442 - Added non_latin system_settings lookup at top to override dbconnect setting
|
||||
#
|
||||
# 81011-0855 - Version marker for 2.0.5.1rc5 release
|
||||
#
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||
|
||||
$admin_version = '2.0.4-121';
|
||||
$build = '80424-0442';
|
||||
$admin_version = '2.0.4-122';
|
||||
$build = '81011-0855';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
|
||||
@@ -21,11 +21,13 @@
|
||||
# 70510-1518 - Added campaign and system duplicate check and phonecode override
|
||||
# 80428-0417 - UTF8 changes
|
||||
# 80514-1030 - removed filesize limit and raised number of errors to be displayed
|
||||
# 81011-2009 - a few bug fixes
|
||||
#
|
||||
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
|
||||
$version = '2.0.4-25';
|
||||
$build = '80514-1030';
|
||||
$version = '2.0.4-26';
|
||||
$build = '81011-2009';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -49,6 +51,7 @@ if (isset($_GET["ENVIAR"])) {$ENVIAR=$_GET["ENVIAR"];}
|
||||
elseif (isset($_POST["ENVIAR"])) {$ENVIAR=$_POST["ENVIAR"];}
|
||||
if (isset($_GET["leadfile_name"])) {$leadfile_name=$_GET["leadfile_name"];}
|
||||
elseif (isset($_POST["leadfile_name"])) {$leadfile_name=$_POST["leadfile_name"];}
|
||||
if (isset($_FILES["leadfile"])) {$leadfile_name=$_FILES["leadfile"]['name'];}
|
||||
if (isset($_GET["file_layout"])) {$file_layout=$_GET["file_layout"];}
|
||||
elseif (isset($_POST["file_layout"])) {$file_layout=$_POST["file_layout"];}
|
||||
if (isset($_GET["OK_to_process"])) {$OK_to_process=$_GET["OK_to_process"];}
|
||||
@@ -1291,54 +1294,23 @@ if ($leadfile) {
|
||||
|
||||
for ($i=0; $i<mysql_num_fields($rslt); $i++) {
|
||||
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
if ( (mysql_field_name($rslt, $i)=="list_id" and $list_id_override!="") or (mysql_field_name($rslt, $i)=="phone_code" and $phone_code_override!="") ) {
|
||||
print "<!-- skipping " . mysql_field_name($rslt, $i) . " -->\n";
|
||||
} else {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
|
||||
#print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
#print " <td align=center><font class=standard>$row[$i]</font></td>\r\n";
|
||||
#print " <td align=center><select name=datafield$i>\r\n";
|
||||
#print " <option value=''>---------------------</option>\r\n";
|
||||
#print " <option value='entry_date'>Entry date</option>\r\n";
|
||||
#print " <option value='modify_date'>Modify date</option>\r\n";
|
||||
#print " <option value='status'>Status</option>\r\n";
|
||||
#print " <option value='user'>User</option>\r\n";
|
||||
#print " <option value='vendor_lead_code'>Vendor lead code</option>\r\n";
|
||||
#print " <option value='source_id'>Source ID</option>\r\n";
|
||||
#print " <option value='list_id'>ID De la Lista</option>\r\n";
|
||||
#print " <option value='gmt_offset'>ID De la Campaña</option>\r\n";
|
||||
#print " <option value='called_since_last_reset'>Called since last reset</option>\r\n";
|
||||
#print " <option value='phone_code'>Phone code</option>\r\n";
|
||||
#print " <option value='phone_number'>Phone number</option>\r\n";
|
||||
#print " <option value='title'>Title</option>\r\n";
|
||||
#print " <option value='first_name'>First name</option>\r\n";
|
||||
#print " <option value='middle_initial'>Middle initial</option>\r\n";
|
||||
#print " <option value='last_name'>Last name</option>\r\n";
|
||||
#print " <option value='address1'>Dirección 1</option>\r\n";
|
||||
#print " <option value='address2'>Dirección 2</option>\r\n";
|
||||
#print " <option value='address3'>Dirección 3</option>\r\n";
|
||||
#print " <option value='city'>Ciudad</option>\r\n";
|
||||
#print " <option value='state'>State</option>\r\n";
|
||||
#print " <option value='province'>Provincia</option>\r\n";
|
||||
#print " <option value='postal_code'>Postal code</option>\r\n";
|
||||
#print " <option value='country_code'>País code</option>\r\n";
|
||||
#print " <option value='gender'>Sexo</option>\r\n";
|
||||
#print " <option value='date_of_birth'>Date of birth</option>\r\n";
|
||||
#print " <option value='alt_phone'>Alt. phone</option>\r\n";
|
||||
#print " <option value='email'>E-mail</option>\r\n";
|
||||
#print " <option value='security_phrase'>Seguridadphrase</option>\r\n";
|
||||
#print " <option value='comments'>Comentarios</option>\r\n";
|
||||
#print " </td>\r\n";
|
||||
#print " </tr>\r\n";
|
||||
}
|
||||
}
|
||||
else if (!eregi(".csv", $leadfile_name))
|
||||
@@ -1393,54 +1365,22 @@ if ($leadfile) {
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
$row=fgetcsv($file, 1000, ",");
|
||||
for ($i=0; $i<mysql_num_fields($rslt); $i++) {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
if ( (mysql_field_name($rslt, $i)=="list_id" and $list_id_override!="") or (mysql_field_name($rslt, $i)=="phone_code" and $phone_code_override!="") ) {
|
||||
print "<!-- skipping " . mysql_field_name($rslt, $i) . " -->\n";
|
||||
} else {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
|
||||
#print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
#print " <td align=center><font class=standard>$row[$i]</font></td>\r\n";
|
||||
#print " <td align=center><select name=datafield$i>\r\n";
|
||||
#print " <option value=''>---------------------</option>\r\n";
|
||||
#print " <option value='entry_date'>Entry date</option>\r\n";
|
||||
#print " <option value='modify_date'>Modify date</option>\r\n";
|
||||
#print " <option value='status'>Status</option>\r\n";
|
||||
#print " <option value='user'>User</option>\r\n";
|
||||
#print " <option value='vendor_lead_code'>Vendor lead code</option>\r\n";
|
||||
#print " <option value='source_id'>Source ID</option>\r\n";
|
||||
#print " <option value='list_id'>ID De la Lista</option>\r\n";
|
||||
#print " <option value='gmt_offset'>ID De la Campaña</option>\r\n";
|
||||
#print " <option value='called_since_last_reset'>Called since last reset</option>\r\n";
|
||||
#print " <option value='phone_code'>Phone code</option>\r\n";
|
||||
#print " <option value='phone_number'>Phone number</option>\r\n";
|
||||
#print " <option value='title'>Title</option>\r\n";
|
||||
#print " <option value='first_name'>First name</option>\r\n";
|
||||
#print " <option value='middle_initial'>Middle initial</option>\r\n";
|
||||
#print " <option value='last_name'>Last name</option>\r\n";
|
||||
#print " <option value='address1'>Dirección 1</option>\r\n";
|
||||
#print " <option value='address2'>Dirección 2</option>\r\n";
|
||||
#print " <option value='address3'>Dirección 3</option>\r\n";
|
||||
#print " <option value='city'>Ciudad</option>\r\n";
|
||||
#print " <option value='state'>State</option>\r\n";
|
||||
#print " <option value='province'>Provincia</option>\r\n";
|
||||
#print " <option value='postal_code'>Postal code</option>\r\n";
|
||||
#print " <option value='country_code'>País code</option>\r\n";
|
||||
#print " <option value='gender'>Sexo</option>\r\n";
|
||||
#print " <option value='date_of_birth'>Date of birth</option>\r\n";
|
||||
#print " <option value='alt_phone'>Alt. phone</option>\r\n";
|
||||
#print " <option value='email'>E-mail</option>\r\n";
|
||||
#print " <option value='security_phrase'>Seguridadphrase</option>\r\n";
|
||||
#print " <option value='comments'>Comentarios</option>\r\n";
|
||||
#print " </td>\r\n";
|
||||
#print " </tr>\r\n";
|
||||
}
|
||||
}
|
||||
print " <tr bgcolor='#330099'>\r\n";
|
||||
@@ -2090,4 +2030,6 @@ if (!$AC_processed)
|
||||
}
|
||||
|
||||
return $gmt_offset;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -1159,11 +1159,12 @@ $list_mix_container = ereg_replace(";","",$list_mix_container);
|
||||
# 71125-1751 - Added allowable transfer groups to campaign detail screen
|
||||
# 80330-0814 - Added CBHOLD block on selecting, added user stats/status links
|
||||
# 80424-0442 - Added non_latin system_settings lookup at top to override dbconnect setting
|
||||
#
|
||||
# 81011-0855 - Version marker for 2.0.5.1rc5 release
|
||||
#
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time
|
||||
|
||||
$admin_version = '2.0.4-121';
|
||||
$build = '80424-0442';
|
||||
$admin_version = '2.0.4-122';
|
||||
$build = '81011-0855';
|
||||
|
||||
$STARTtime = date("U");
|
||||
$SQLdate = date("Y-m-d H:i:s");
|
||||
|
||||
@@ -21,11 +21,13 @@
|
||||
# 70510-1518 - Added campaign and system duplicate check and phonecode override
|
||||
# 80428-0417 - UTF8 changes
|
||||
# 80514-1030 - removed filesize limit and raised number of errors to be displayed
|
||||
# 81011-2009 - a few bug fixes
|
||||
#
|
||||
|
||||
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
|
||||
|
||||
$version = '2.0.4-25';
|
||||
$build = '80514-1030';
|
||||
$version = '2.0.4-26';
|
||||
$build = '81011-2009';
|
||||
|
||||
|
||||
require("dbconnect.php");
|
||||
@@ -49,6 +51,7 @@ if (isset($_GET["INVIA"])) {$INVIA=$_GET["INVIA"];}
|
||||
elseif (isset($_POST["INVIA"])) {$INVIA=$_POST["INVIA"];}
|
||||
if (isset($_GET["leadfile_name"])) {$leadfile_name=$_GET["leadfile_name"];}
|
||||
elseif (isset($_POST["leadfile_name"])) {$leadfile_name=$_POST["leadfile_name"];}
|
||||
if (isset($_FILES["leadfile"])) {$leadfile_name=$_FILES["leadfile"]['name'];}
|
||||
if (isset($_GET["file_layout"])) {$file_layout=$_GET["file_layout"];}
|
||||
elseif (isset($_POST["file_layout"])) {$file_layout=$_POST["file_layout"];}
|
||||
if (isset($_GET["OK_to_process"])) {$OK_to_process=$_GET["OK_to_process"];}
|
||||
@@ -1291,54 +1294,23 @@ if ($leadfile) {
|
||||
|
||||
for ($i=0; $i<mysql_num_fields($rslt); $i++) {
|
||||
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
if ( (mysql_field_name($rslt, $i)=="list_id" and $list_id_override!="") or (mysql_field_name($rslt, $i)=="phone_code" and $phone_code_override!="") ) {
|
||||
print "<!-- skipping " . mysql_field_name($rslt, $i) . " -->\n";
|
||||
} else {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
|
||||
#print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
#print " <td align=center><font class=standard>$row[$i]</font></td>\r\n";
|
||||
#print " <td align=center><select name=datafield$i>\r\n";
|
||||
#print " <option value=''>---------------------</option>\r\n";
|
||||
#print " <option value='entry_date'>Entry date</option>\r\n";
|
||||
#print " <option value='modify_date'>Modify date</option>\r\n";
|
||||
#print " <option value='status'>Status</option>\r\n";
|
||||
#print " <option value='user'>User</option>\r\n";
|
||||
#print " <option value='vendor_lead_code'>Vendor lead code</option>\r\n";
|
||||
#print " <option value='source_id'>Source ID</option>\r\n";
|
||||
#print " <option value='list_id'>ID Lista</option>\r\n";
|
||||
#print " <option value='gmt_offset'>ID Campagna</option>\r\n";
|
||||
#print " <option value='called_since_last_reset'>Called since last reset</option>\r\n";
|
||||
#print " <option value='phone_code'>Phone code</option>\r\n";
|
||||
#print " <option value='phone_number'>Phone number</option>\r\n";
|
||||
#print " <option value='title'>Title</option>\r\n";
|
||||
#print " <option value='first_name'>First name</option>\r\n";
|
||||
#print " <option value='middle_initial'>Middle initial</option>\r\n";
|
||||
#print " <option value='last_name'>Last name</option>\r\n";
|
||||
#print " <option value='address1'>Indirizzo 1</option>\r\n";
|
||||
#print " <option value='address2'>Indirizzo 2</option>\r\n";
|
||||
#print " <option value='address3'>Indirizzo 3</option>\r\n";
|
||||
#print " <option value='city'>Citta`</option>\r\n";
|
||||
#print " <option value='state'>State</option>\r\n";
|
||||
#print " <option value='province'>Provincia</option>\r\n";
|
||||
#print " <option value='postal_code'>Postal code</option>\r\n";
|
||||
#print " <option value='country_code'>Stato code</option>\r\n";
|
||||
#print " <option value='gender'>Sesso</option>\r\n";
|
||||
#print " <option value='date_of_birth'>Date of birth</option>\r\n";
|
||||
#print " <option value='alt_phone'>Alt. phone</option>\r\n";
|
||||
#print " <option value='email'>E-mail</option>\r\n";
|
||||
#print " <option value='security_phrase'>Seguridadphrase</option>\r\n";
|
||||
#print " <option value='comments'>Note</option>\r\n";
|
||||
#print " </td>\r\n";
|
||||
#print " </tr>\r\n";
|
||||
}
|
||||
}
|
||||
else if (!eregi(".csv", $leadfile_name))
|
||||
@@ -1393,54 +1365,22 @@ if ($leadfile) {
|
||||
$total=0; $good=0; $bad=0; $dup=0; $post=0; $phone_list='';
|
||||
$row=fgetcsv($file, 1000, ",");
|
||||
for ($i=0; $i<mysql_num_fields($rslt); $i++) {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
if ( (mysql_field_name($rslt, $i)=="list_id" and $list_id_override!="") or (mysql_field_name($rslt, $i)=="phone_code" and $phone_code_override!="") ) {
|
||||
print "<!-- skipping " . mysql_field_name($rslt, $i) . " -->\n";
|
||||
} else {
|
||||
print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
print " <td align=right><font class=standard>".strtoupper(eregi_replace("_", " ", mysql_field_name($rslt, $i))).": </font></td>\r\n";
|
||||
print " <td align=center><select name='".mysql_field_name($rslt, $i)."_field'>\r\n";
|
||||
print " <option value='-1'>(none)</option>\r\n";
|
||||
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
for ($j=0; $j<count($row); $j++) {
|
||||
eregi_replace("\"", "", $row[$j]);
|
||||
print " <option value='$j'>\"$row[$j]\"</option>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
}
|
||||
|
||||
print " </select></td>\r\n";
|
||||
print " </tr>\r\n";
|
||||
|
||||
#print " <tr bgcolor=#D9E6FE>\r\n";
|
||||
#print " <td align=center><font class=standard>$row[$i]</font></td>\r\n";
|
||||
#print " <td align=center><select name=datafield$i>\r\n";
|
||||
#print " <option value=''>---------------------</option>\r\n";
|
||||
#print " <option value='entry_date'>Entry date</option>\r\n";
|
||||
#print " <option value='modify_date'>Modify date</option>\r\n";
|
||||
#print " <option value='status'>Status</option>\r\n";
|
||||
#print " <option value='user'>User</option>\r\n";
|
||||
#print " <option value='vendor_lead_code'>Vendor lead code</option>\r\n";
|
||||
#print " <option value='source_id'>Source ID</option>\r\n";
|
||||
#print " <option value='list_id'>ID Lista</option>\r\n";
|
||||
#print " <option value='gmt_offset'>ID Campagna</option>\r\n";
|
||||
#print " <option value='called_since_last_reset'>Called since last reset</option>\r\n";
|
||||
#print " <option value='phone_code'>Phone code</option>\r\n";
|
||||
#print " <option value='phone_number'>Phone number</option>\r\n";
|
||||
#print " <option value='title'>Title</option>\r\n";
|
||||
#print " <option value='first_name'>First name</option>\r\n";
|
||||
#print " <option value='middle_initial'>Middle initial</option>\r\n";
|
||||
#print " <option value='last_name'>Last name</option>\r\n";
|
||||
#print " <option value='address1'>Indirizzo 1</option>\r\n";
|
||||
#print " <option value='address2'>Indirizzo 2</option>\r\n";
|
||||
#print " <option value='address3'>Indirizzo 3</option>\r\n";
|
||||
#print " <option value='city'>Citta`</option>\r\n";
|
||||
#print " <option value='state'>State</option>\r\n";
|
||||
#print " <option value='province'>Provincia</option>\r\n";
|
||||
#print " <option value='postal_code'>Postal code</option>\r\n";
|
||||
#print " <option value='country_code'>Stato code</option>\r\n";
|
||||
#print " <option value='gender'>Sesso</option>\r\n";
|
||||
#print " <option value='date_of_birth'>Date of birth</option>\r\n";
|
||||
#print " <option value='alt_phone'>Alt. phone</option>\r\n";
|
||||
#print " <option value='email'>E-mail</option>\r\n";
|
||||
#print " <option value='security_phrase'>Seguridadphrase</option>\r\n";
|
||||
#print " <option value='comments'>Note</option>\r\n";
|
||||
#print " </td>\r\n";
|
||||
#print " </tr>\r\n";
|
||||
}
|
||||
}
|
||||
print " <tr bgcolor='#330099'>\r\n";
|
||||
@@ -2090,4 +2030,6 @@ if (!$AC_processed)
|
||||
}
|
||||
|
||||
return $gmt_offset;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -49,6 +49,13 @@ INSERT INTO vicidial_phone_codes (country_code, country, areacode, state, GMT_of
|
||||
|
||||
8. Added calls in queue display to vicidial.php agent screen
|
||||
|
||||
9. New Slovak translation for the agent screen, as well as new German agent
|
||||
screen translation and new German buttons for the agent screen
|
||||
|
||||
10. New Welcome demo screen with links to all translations of agent and admin
|
||||
screens
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ agc|htglobalize.php|1
|
||||
"NOV"|"NOV"|
|
||||
"DEC"|"DEZ"|
|
||||
\./images/|../agc/images/|
|
||||
BORDER|BORDER|
|
||||
BORDER|Border|
|
||||
VALUE=SUBMIT|VALUE=SUBMIT|
|
||||
TYPE=SUBMIT|TYPE=Submit|
|
||||
MAXLENGTH|maxlength|
|
||||
|
||||
@@ -19,34 +19,34 @@ echo "<TR><TD ALIGN=CENTER COLSPAN=2 VALIGN=TOP>\n";
|
||||
|
||||
echo "<TABLE WIDTH=300 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#E0C2D6\">";
|
||||
echo "<TR><TD ALIGN=LEFT>";
|
||||
echo "<font size=3><b> <a href=\"../agc/vicidial.php\"><IMG SRC=\"../agc/images/en.gif\" border=0> English Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/en.gif\" border=0> English Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_es/vicidial.php\"><IMG SRC=\"../agc/images/es.gif\" border=0> Spanish Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_es/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/es.gif\" border=0> Spanish Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_de/vicidial.php\"><IMG SRC=\"../agc/images/de.gif\" border=0> German Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_de/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/de.gif\" border=0> German Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_it/vicidial.php\"><IMG SRC=\"../agc/images/it.gif\" border=0> Italian Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_it/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/it.gif\" border=0> Italian Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_el/vicidial.php\"><IMG SRC=\"../agc/images/el.gif\" border=0> Greek Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_el/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/el.gif\" border=0> Greek Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_fr/vicidial.php\"><IMG SRC=\"../agc/images/fr.gif\" border=0> French Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_fr/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/fr.gif\" border=0> French Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_br/vicidial.php\"><IMG SRC=\"../agc/images/br.gif\" border=0> Brazillian Portuguese Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_br/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/br.gif\" border=0> Brazillian Portuguese Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_pt/vicidial.php\"><IMG SRC=\"../agc/images/pt.gif\" border=0> Portuguese Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_pt/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/pt.gif\" border=0> Portuguese Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_pl/vicidial.php\"><IMG SRC=\"../agc/images/pl.gif\" border=0> Polish Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_pl/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/pl.gif\" border=0> Polish Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_sk/vicidial.php\"><IMG SRC=\"../agc/images/sk.gif\" border=0> Slovak Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_sk/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/sk.gif\" border=0> Slovak Agent Login</a>";
|
||||
echo "</TD></TR></TABLE>\n";
|
||||
|
||||
echo "</TD><TD VALIGN=TOP>\n";
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
<?
|
||||
# welcome_demo.php - VICIDIAL welcome Demo page
|
||||
#
|
||||
#
|
||||
# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
#
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
echo "<title>VICIDIAL Welcome</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<BR><BR><BR><BR><CENTER><TABLE WIDTH=600 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#E0C2D6\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM WIDTH=120><IMG SRC=\"../agc/images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=RIGHT VALIGN=MIDDLE WIDTH=180> Welcome! Bienvenue! </TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=MIDDLE WIDTH=300> Willkommen! Benvenuto! Υποδοχή!</TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=3><font size=1> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2 VALIGN=TOP>\n";
|
||||
|
||||
echo "<TABLE WIDTH=300 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#E0C2D6\">";
|
||||
echo "<TR><TD ALIGN=LEFT>";
|
||||
echo "<font size=3><b> <a href=\"../agc/vicidial.php\"><IMG SRC=\"../agc/images/en.gif\" border=0> English Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_es/vicidial.php\"><IMG SRC=\"../agc/images/es.gif\" border=0> Spanish Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_de/vicidial.php\"><IMG SRC=\"../agc/images/de.gif\" border=0> German Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_it/vicidial.php\"><IMG SRC=\"../agc/images/it.gif\" border=0> Italian Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_el/vicidial.php\"><IMG SRC=\"../agc/images/el.gif\" border=0> Greek Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_fr/vicidial.php\"><IMG SRC=\"../agc/images/fr.gif\" border=0> French Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_br/vicidial.php\"><IMG SRC=\"../agc/images/br.gif\" border=0> Brazillian Portuguese Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_pt/vicidial.php\"><IMG SRC=\"../agc/images/pt.gif\" border=0> Portuguese Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_pl/vicidial.php\"><IMG SRC=\"../agc/images/pl.gif\" border=0> Polish Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_sk/vicidial.php\"><IMG SRC=\"../agc/images/sk.gif\" border=0> Slovak Agent Login</a>";
|
||||
echo "</TD></TR></TABLE>\n";
|
||||
|
||||
echo "</TD><TD VALIGN=TOP>\n";
|
||||
|
||||
echo "<TABLE WIDTH=300 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#E0C2D6\">";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../vicidial/admin.php\"><IMG SRC=\"../agc/images/en.gif\" border=0> English Administration</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../vicidial_es/admin.php\"><IMG SRC=\"../agc/images/es.gif\" border=0> Spanish Administration</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../vicidial_de/admin.php\"><IMG SRC=\"../agc/images/de.gif\" border=0> German Administration</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../vicidial_it/admin.php\"><IMG SRC=\"../agc/images/it.gif\" border=0> Italian Administration</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../vicidial_el/admin.php\"><IMG SRC=\"../agc/images/el.gif\" border=0> Greek Administration</a>";
|
||||
echo "</TD></TR></TABLE>\n";
|
||||
echo "<TR><TD ALIGN=LEFT ><font size=1> </TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
echo "</html>\n\n";
|
||||
|
||||
?>
|
||||
@@ -186,6 +186,12 @@ NOTE: Upgrading from 1.1.12-3 to 2.0.1 is at the bottom
|
||||
40. Added ability to set callerID number on outgoing conference calls to
|
||||
CAMPAIGN, CUSTOMER or AGENT_PHONE callerID settings.
|
||||
|
||||
41. New Slovak translation for the agent screen, as well as new German agent
|
||||
screen translation and new German buttons for the agent screen
|
||||
|
||||
42. New Welcome demo screen with links to all translations of agent and admin
|
||||
screens
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ agc|htglobalize.php|1
|
||||
"NOV"|"NOV"|
|
||||
"DEC"|"DEZ"|
|
||||
\./images/|../agc/images/|
|
||||
BORDER|BORDER|
|
||||
BORDER|Border|
|
||||
VALUE=SUBMIT|VALUE=SUBMIT|
|
||||
TYPE=SUBMIT|TYPE=Submit|
|
||||
MAXLENGTH|maxlength|
|
||||
|
||||
@@ -19,34 +19,34 @@ echo "<TR><TD ALIGN=CENTER COLSPAN=2 VALIGN=TOP>\n";
|
||||
|
||||
echo "<TABLE WIDTH=300 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#E0C2D6\">";
|
||||
echo "<TR><TD ALIGN=LEFT>";
|
||||
echo "<font size=3><b> <a href=\"../agc/vicidial.php\"><IMG SRC=\"../agc/images/en.gif\" border=0> English Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/en.gif\" border=0> English Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_es/vicidial.php\"><IMG SRC=\"../agc/images/es.gif\" border=0> Spanish Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_es/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/es.gif\" border=0> Spanish Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_de/vicidial.php\"><IMG SRC=\"../agc/images/de.gif\" border=0> German Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_de/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/de.gif\" border=0> German Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_it/vicidial.php\"><IMG SRC=\"../agc/images/it.gif\" border=0> Italian Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_it/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/it.gif\" border=0> Italian Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_el/vicidial.php\"><IMG SRC=\"../agc/images/el.gif\" border=0> Greek Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_el/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/el.gif\" border=0> Greek Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_fr/vicidial.php\"><IMG SRC=\"../agc/images/fr.gif\" border=0> French Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_fr/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/fr.gif\" border=0> French Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_br/vicidial.php\"><IMG SRC=\"../agc/images/br.gif\" border=0> Brazillian Portuguese Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_br/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/br.gif\" border=0> Brazillian Portuguese Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_pt/vicidial.php\"><IMG SRC=\"../agc/images/pt.gif\" border=0> Portuguese Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_pt/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/pt.gif\" border=0> Portuguese Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_pl/vicidial.php\"><IMG SRC=\"../agc/images/pl.gif\" border=0> Polish Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_pl/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/pl.gif\" border=0> Polish Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_sk/vicidial.php\"><IMG SRC=\"../agc/images/sk.gif\" border=0> Slovak Agent Login</a>";
|
||||
echo "<font size=3><b> <a href=\"../agc_sk/vicidial.php?relogin=YES&VD_login=6666&VD_campaign=TESTCAMP&phone_login=phone&phone_pass=phone&VD_pass=1234\"><IMG SRC=\"../agc/images/sk.gif\" border=0> Slovak Agent Login</a>";
|
||||
echo "</TD></TR></TABLE>\n";
|
||||
|
||||
echo "</TD><TD VALIGN=TOP>\n";
|
||||
|
||||
@@ -0,0 +1,76 @@
|
||||
<?
|
||||
# welcome_demo.php - VICIDIAL welcome Demo page
|
||||
#
|
||||
#
|
||||
# Copyright (C) 2008 Matt Florell <vicidial@gmail.com> LICENSE: GPLv2
|
||||
#
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
echo "<title>VICIDIAL Welcome</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<BR><BR><BR><BR><CENTER><TABLE WIDTH=600 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#E0C2D6\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM WIDTH=120><IMG SRC=\"../agc/images/vdc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=RIGHT VALIGN=MIDDLE WIDTH=180> Welcome! Bienvenue! </TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=MIDDLE WIDTH=300> Willkommen! Benvenuto! Υποδοχή!</TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=3><font size=1> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2 VALIGN=TOP>\n";
|
||||
|
||||
echo "<TABLE WIDTH=300 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#E0C2D6\">";
|
||||
echo "<TR><TD ALIGN=LEFT>";
|
||||
echo "<font size=3><b> <a href=\"../agc/vicidial.php\"><IMG SRC=\"../agc/images/en.gif\" border=0> English Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_es/vicidial.php\"><IMG SRC=\"../agc/images/es.gif\" border=0> Spanish Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_de/vicidial.php\"><IMG SRC=\"../agc/images/de.gif\" border=0> German Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_it/vicidial.php\"><IMG SRC=\"../agc/images/it.gif\" border=0> Italian Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_el/vicidial.php\"><IMG SRC=\"../agc/images/el.gif\" border=0> Greek Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_fr/vicidial.php\"><IMG SRC=\"../agc/images/fr.gif\" border=0> French Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_br/vicidial.php\"><IMG SRC=\"../agc/images/br.gif\" border=0> Brazillian Portuguese Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_pt/vicidial.php\"><IMG SRC=\"../agc/images/pt.gif\" border=0> Portuguese Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_pl/vicidial.php\"><IMG SRC=\"../agc/images/pl.gif\" border=0> Polish Agent Login</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../agc_sk/vicidial.php\"><IMG SRC=\"../agc/images/sk.gif\" border=0> Slovak Agent Login</a>";
|
||||
echo "</TD></TR></TABLE>\n";
|
||||
|
||||
echo "</TD><TD VALIGN=TOP>\n";
|
||||
|
||||
echo "<TABLE WIDTH=300 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\"#E0C2D6\">";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../vicidial/admin.php\"><IMG SRC=\"../agc/images/en.gif\" border=0> English Administration</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../vicidial_es/admin.php\"><IMG SRC=\"../agc/images/es.gif\" border=0> Spanish Administration</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../vicidial_de/admin.php\"><IMG SRC=\"../agc/images/de.gif\" border=0> German Administration</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../vicidial_it/admin.php\"><IMG SRC=\"../agc/images/it.gif\" border=0> Italian Administration</a>";
|
||||
echo "</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT >";
|
||||
echo "<font size=3><b> <a href=\"../vicidial_el/admin.php\"><IMG SRC=\"../agc/images/el.gif\" border=0> Greek Administration</a>";
|
||||
echo "</TD></TR></TABLE>\n";
|
||||
echo "<TR><TD ALIGN=LEFT ><font size=1> </TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
echo "</html>\n\n";
|
||||
|
||||
?>
|
||||