Changed agent code to use new QXZ function in functions.php. This will facilitate easier other language builds and easier dynamic text and image replacement.
git-svn-id: svn://192.168.202.10@2161 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
ALTERNATE NUMBER DIALING Redesign Started: 2008-08-20 Updated: 2011-08-02
|
||||
ALTERNATE NUMBER DIALING Redesign Started: 2008-08-20 Updated: 2014-07-15
|
||||
|
||||
*** THIS SECTION OUTLINES PROPOSED CHANGES TO ALT-NUMBER-DIALING in the 2.0.5 version ***
|
||||
*** FOR INFORMATION ON THE 2.0.3 AND 2.0.4 VERSION OF ALT NUMBER DIALING LOOK BELOW THIS SECTION ***
|
||||
@@ -45,6 +45,8 @@ Using MULTI_LEAD is different from the other standard Auto-Alt-Dial functions, i
|
||||
|
||||
The Auto-Alt-Statuses are still in used for MULTI_LEAD so you may want to make sure that statuses like DROP, PDROP and others to your campaign's auto-alt-dial statuses so that the other leads tied by vendor_lead_code in the campaign's lists are not deactivated.
|
||||
|
||||
There is a feature in the hopper section of the modify campaign page that it is recommended you activate if you are using MULTI_LEAD auto-alt dialing: Hopper VLC Dup Check. This feature will prevent multiple numbers from the same account from getting inserted into the hopper at the same time.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# active_list_refresh.php version 2.8
|
||||
# active_list_refresh.php version 2.10
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# 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
|
||||
@@ -42,6 +42,7 @@
|
||||
# 130328-0029 - Converted ereg to preg functions
|
||||
# 130603-2222 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130802-0957 - Changed to PHP mysqli functions
|
||||
# 140811-0850 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
@@ -131,14 +132,14 @@ if ($auth_message == 'GOOD')
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password").": |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
echo _QXZ("Invalid server_ip").": |$server_ip| or Invalid session_name: |$session_name|\n"; #underscore
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -150,7 +151,7 @@ else
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Invalid session_name: |$session_name|$server_ip|\n";
|
||||
echo _QXZ("Invalid session_name").": |$session_name|$server_ip|\n"; #underscore
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -166,12 +167,12 @@ if ($format=='table')
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build ADD: $ADD server_ip: $server_ip-->\n";
|
||||
echo "<title>List Display: ";
|
||||
if ($ADD==1) {echo "Live Extensions";}
|
||||
if ($ADD==2) {echo "Busy Extensions";}
|
||||
if ($ADD==3) {echo "Outside Lines";}
|
||||
if ($ADD==4) {echo "Local Extensions";}
|
||||
if ($ADD==5) {echo "Conferences";}
|
||||
if ($ADD==99999) {echo "HELP";}
|
||||
if ($ADD==1) {echo _QXZ("Live Extensions");}
|
||||
if ($ADD==2) {echo _QXZ("Busy Extensions");}
|
||||
if ($ADD==3) {echo _QXZ("Outside Lines");}
|
||||
if ($ADD==4) {echo _QXZ("Local Extensions");}
|
||||
if ($ADD==5) {echo _QXZ("Conferences");}
|
||||
if ($ADD==99999) {echo _QXZ( "HELP");}
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
|
||||
+330
-329
File diff suppressed because it is too large
Load Diff
+117
-116
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# astguiclient.php - the web-based version of the astGUIclient client application
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# make sure you have added a user to the vicidial_users MySQL table with at least
|
||||
# user_level 1 or greater to access this page. Also you need to have the login
|
||||
@@ -62,6 +62,7 @@
|
||||
# 130328-0017 - Converted ereg to preg functions
|
||||
# 130603-2220 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130802-1002 - Changed to PHP mysqli functions
|
||||
# 140811-0848 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
@@ -112,7 +113,7 @@ if ($force_logout)
|
||||
Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
|
||||
Header("HTTP/1.0 401 Unauthorized");
|
||||
}
|
||||
echo "You have now logged out. Thank you\n";
|
||||
echo _QXZ("You have now logged out. Thank you\n");
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -149,7 +150,7 @@ if( (strlen($user)<2) or (strlen($pass)<2) or (!$auth) or ($relogin == 'YES') )
|
||||
{
|
||||
header ("Content-type: text/html; charset=utf-8");
|
||||
|
||||
echo "<title>astGUIclient web client: Login</title>\n";
|
||||
echo "<title>"._QXZ("astGUIclient web client: Login")."</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<TABLE><TR><TD></TD>\n";
|
||||
@@ -158,20 +159,20 @@ if( (strlen($user)<2) or (strlen($pass)<2) or (!$auth) or ($relogin == 'YES') )
|
||||
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=\"./images/agc_tab_astguiclient.gif\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Login </TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/"._QXZ("agc_tab_astguiclient.gif")."\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> "._QXZ("Login")." </TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>User Login: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("User Login:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME=user SIZE=10 MAXLENGTH=20 VALUE=\"$user\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>User Password: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("User Password:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=PASSWORD NAME=pass SIZE=10 MAXLENGTH=20 VALUE=\"$pass\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Phone Login: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("Phone Login:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME=phone_login SIZE=10 MAXLENGTH=20 VALUE=\"$phone_login\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Phone Password: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("Phone Password:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=PASSWORD NAME=phone_pass SIZE=10 MAXLENGTH=20 VALUE=\"$phone_pass\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSION: $version BUILD: $build</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE="._QXZ("SUBMIT")."></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -211,7 +212,7 @@ echo "<!-- VERSION: $version BUILD: $build ADD: $ADD-->\n";
|
||||
|
||||
if ( (strlen($phone_login)<2) or (strlen($phone_pass)<2) )
|
||||
{
|
||||
echo "<title>astGUIclient web client: Phone Login</title>\n";
|
||||
echo "<title>"._QXZ("astGUIclient web client: Phone Login")."</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<TABLE><TR><TD></TD>\n";
|
||||
@@ -222,16 +223,16 @@ 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=\"./images/agc_tab_astguiclient.gif\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Phone Login </TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/"._QXZ("agc_tab_astguiclient.gif")."\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> "._QXZ("Phone Login")." </TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Phone Login: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("Phone Login:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME=phone_login SIZE=10 MAXLENGTH=20 VALUE=\"$phone_login\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Phone Password: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("Phone Password:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=PASSWORD NAME=phone_pass SIZE=10 MAXLENGTH=20 VALUE=\"$phone_pass\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSION: $version BUILD: $build</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE="._QXZ("SUBMIT")."></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -248,7 +249,7 @@ $row=mysqli_fetch_row($rslt);
|
||||
$authphone=$row[0];
|
||||
if (!$authphone)
|
||||
{
|
||||
echo "<title>astGUIclient web client: Phone Login</title>\n";
|
||||
echo "<title>"._QXZ("astGUIclient web client: Phone Login")."</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<TABLE><TR><TD></TD>\n";
|
||||
@@ -259,16 +260,16 @@ if (!$authphone)
|
||||
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=\"./images/agc_tab_astguiclient.gif\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> Phone Login </TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/"._QXZ("agc_tab_astguiclient.gif")."\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE> "._QXZ("Phone Login")." </TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><font size=1> <BR><FONT SIZE=3>Sorry, your phone login and password are not active in this system, please try again: <BR> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Phone Login: </TD>";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><font size=1> <BR><FONT SIZE=3>"._QXZ("Sorry, your phone login and password are not active in this system, please try again:")." <BR> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("Phone Login:")."</TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME=phone_login SIZE=10 MAXLENGTH=20 VALUE=\"$phone_login\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>Phone Password: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("Phone Password:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=PASSWORD NAME=phone_pass SIZE=10 MAXLENGTH=20 VALUE=\"$phone_pass\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSION: $version BUILD: $build</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE="._QXZ("SUBMIT")."></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>"._QXZ("VERSION: $version BUILD: $build:")."</TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -277,7 +278,7 @@ if (!$authphone)
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<title>astGUIclient web client</title>\n";
|
||||
echo "<title>"._QXZ("astGUIclient web client")."</title>\n";
|
||||
$stmt="SELECT extension,dialplan_number,voicemail_id,phone_ip,computer_ip,server_ip,login,pass,status,active,phone_type,fullname,company,picture,messages,old_messages,protocol,local_gmt,ASTmgrUSERNAME,ASTmgrSECRET,login_user,login_pass,login_campaign,park_on_extension,conf_on_extension,VICIDIAL_park_on_extension,VICIDIAL_park_on_filename,monitor_prefix,recording_exten,voicemail_exten,voicemail_dump_exten,ext_context,dtmf_send_extension,call_out_number_group,client_browser,install_directory,local_web_callerID_URL,VICIDIAL_web_URL,AGI_call_logging_enabled,user_switching_enabled,conferencing_enabled,admin_hangup_enabled,admin_hijack_enabled,admin_monitor_enabled,call_parking_enabled,updater_check_enabled,AFLogging_enabled,QUEUE_ACTION_enabled,CallerID_popup_enabled,voicemail_button_enabled,enable_fast_refresh,fast_refresh_rate,enable_persistant_mysql,auto_dial_next_number,VDstop_rec_after_each_call,DBX_server,DBX_database,DBX_user,DBX_pass,DBX_port,DBY_server,DBY_database,DBY_user,DBY_pass,DBY_port,outbound_cid,enable_sipsak_messages,email,template_id,conf_override,phone_context,phone_ring_timeout,conf_secret from phones where login='$phone_login' and pass='$phone_pass' and active = 'Y';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
@@ -493,15 +494,15 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var phone_pass = '<?php echo $phone_pass ?>';
|
||||
var session_name = '<?php echo $session_name ?>';
|
||||
var image_livecall_OFF = new Image();
|
||||
image_livecall_OFF.src="./images/agc_live_call_OFF.gif";
|
||||
image_livecall_OFF.src="./images/<?php echo _QXZ("agc_live_call_OFF.gif") ?>";
|
||||
var image_livecall_ON = new Image();
|
||||
image_livecall_ON.src="./images/agc_live_call_ON.gif";
|
||||
image_livecall_ON.src="./images/<?php echo _QXZ("agc_live_call_ON.gif") ?>";
|
||||
var image_voicemail_OFF = new Image();
|
||||
image_voicemail_OFF.src="./images/agc_check_voicemail_OFF.gif";
|
||||
image_voicemail_OFF.src="./images/<?php echo _QXZ("agc_check_voicemail_OFF.gif") ?>";
|
||||
var image_voicemail_ON = new Image();
|
||||
image_voicemail_ON.src="./images/agc_check_voicemail_ON.gif";
|
||||
image_voicemail_ON.src="./images/<?php echo _QXZ("agc_check_voicemail_ON.gif") ?>";
|
||||
var image_voicemail_BLINK = new Image();
|
||||
image_voicemail_BLINK.src="./images/agc_check_voicemail_BLINK.gif";
|
||||
image_voicemail_BLINK.src="./images/<?php echo _QXZ("agc_check_voicemail_BLINK.gif") ?>";
|
||||
var favorites = new Array();
|
||||
var favorites_names = new Array();
|
||||
var favorites_busy = new Array();
|
||||
@@ -888,7 +889,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
else
|
||||
{
|
||||
bsr_continue=0;
|
||||
alert("You can only monitor Zap channels:\n" + listenvalue);
|
||||
alert("<?php echo _QXZ("You can only monitor Zap channels"); ?>:\n" + listenvalue);
|
||||
}
|
||||
}
|
||||
if (bsr_continue == '1')
|
||||
@@ -1386,7 +1387,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 CALLS ON THIS PHONE:</B></font><BR><table width=100%><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\">CLIENT CHANNEL</td><td><font class=\"log_title\">REMOTE CHANNEL</td><td><font class=\"log_title\">RECORD</td><td><font class=\"log_title\">HANGUP</td><td><font class=\"log_title\">XFER</td><td><font class=\"log_title\">PARK</td></tr>";
|
||||
var live_calls_HTML = "<font face=\"Arial,Helvetica\"><B><?php echo _QXZ("LIVE CALLS ON THIS PHONE"); ?>:</B></font><BR><table width=100%><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"><?php echo _QXZ("CLIENT CHANNEL"); ?></td><td><font class=\"log_title\"><?php echo _QXZ("REMOTE CHANNEL"); ?></td><td><font class=\"log_title\"><?php echo _QXZ("RECORD"); ?></td><td><font class=\"log_title\"><?php echo _QXZ("HANGUP"); ?></td><td><font class=\"log_title\"><?php echo _QXZ("XFER"); ?></td><td><font class=\"log_title\"><?php echo _QXZ("PARK"); ?></td></tr>";
|
||||
if ( (LCAcount > live_calls) || (LCAcount < live_calls) )
|
||||
{
|
||||
LCAe[0]=''; LCAe[1]=''; LCAe[2]=''; LCAe[3]=''; LCAe[4]=''; LCAe[5]='';
|
||||
@@ -1416,7 +1417,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
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;\">Record</span>";}
|
||||
|
||||
live_calls_HTML = live_calls_HTML + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + channelfieldBtrunk_array[1] + "');return false;\">HANGUP</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + channelfieldBtrunk_array[1] + "','" + channelfieldA_array[1] + "');return false;\">XFER</a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"mainxfer_send_redirect('ParK','" + channelfieldBtrunk_array[1] + "');return false;\">PARK</td></tr>";
|
||||
live_calls_HTML = live_calls_HTML + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + channelfieldBtrunk_array[1] + "');return false;\"><?php echo _QXZ("HANGUP"); ?></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + channelfieldBtrunk_array[1] + "','" + channelfieldA_array[1] + "');return false;\"><?php echo _QXZ("XFER"); ?></a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"mainxfer_send_redirect('ParK','" + channelfieldBtrunk_array[1] + "');return false;\">PARK</td></tr>";
|
||||
|
||||
if (LCAe[ARY_ct].length < 1)
|
||||
{LCAe[ARY_ct] = channelfieldA_array[1]; LCAcontent_change++; LCAalter++;}
|
||||
@@ -1533,7 +1534,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var conv_start=0;
|
||||
if (out_calls > 0)
|
||||
{
|
||||
var out_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> CALL DATE/TIME</td><td><font class=\"log_title\">NUMBER</td><td align=right><font class=\"log_title\">LENGTH (M:SS)</td><td><font class=\"log_title\"> </td></tr>"
|
||||
var out_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"><?php echo _QXZ("CALL DATE/TIME"); ?></td><td><font class=\"log_title\"><?php echo _QXZ("NUMBER"); ?></td><td align=right><font class=\"log_title\"><?php echo _QXZ("LENGTH"); ?> (M:SS)</td><td><font class=\"log_title\"> </td></tr>"
|
||||
while (loop_ct < out_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -1561,7 +1562,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var conv_start=0;
|
||||
if (in_calls > 0)
|
||||
{
|
||||
var in_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> CALL DATE/TIME</td><td><font class=\"log_title\">IN-NUMBER</td><td COLSPAN=2><font class=\"log_title\">CALLERID</td><td align=right><font class=\"log_title\">LENGTH</td><td><font class=\"log_title\"> </td></tr>"
|
||||
var in_log_HTML = "<table width=580><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"> <?php echo _QXZ("CALL DATE/TIME"); ?></td><td><font class=\"log_title\"><?php echo _QXZ("IN-NUMBER"); ?></td><td COLSPAN=2><font class=\"log_title\"><?php echo _QXZ("CALLER ID"); ?></td><td align=right><font class=\"log_title\"><?php echo _QXZ("LENGTH"); ?></td><td><font class=\"log_title\"> </td></tr>"
|
||||
while (loop_ct < in_calls)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -1636,7 +1637,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var conv_start=-1;
|
||||
if (parked_count > 0)
|
||||
{
|
||||
var park_HTML = "<table width=600><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\">CHANNEL<BR> CALL ID</td><td><font class=\"log_title\">PARKED BY<BR> PARKED TIME</td><td><font class=\"log_title\">HANGUP</td><td><font class=\"log_title\">XFER</td><td><font class=\"log_title\">PICKUP</td></tr>"
|
||||
var park_HTML = "<table width=600><tr bgcolor=#E6E6E6><td><font class=\"log_title\">#</td><td><font class=\"log_title\"><?php echo _QXZ("CHANNEL"); ?><BR> <?php echo _QXZ("CALL ID"); ?></td><td><font class=\"log_title\"><?php echo _QXZ("PARKED BY"); ?><BR> <?php echo _QXZ("PARKED TIME"); ?></td><td><font class=\"log_title\"><?php echo _QXZ("HANGUP"); ?></td><td><font class=\"log_title\"><?php echo _QXZ("XFER"); ?></td><td><font class=\"log_title\"><?php echo _QXZ("PICKUP"); ?></td></tr>"
|
||||
while (loop_ct < parked_count)
|
||||
{
|
||||
loop_ct++;
|
||||
@@ -1652,7 +1653,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var park_call_id = park_array[1];
|
||||
var parked_by = park_array[3];
|
||||
var parked_time = park_array[4];
|
||||
park_HTML = park_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + park_channel + "<BR> " + park_call_id + "</td><td><font class=\"log_text\">" + parked_by + "<BR> " + parked_time + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + park_channel + "');return false;\">HANGUP</a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + park_channel + "');return false;\">XFER</a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"mainxfer_send_redirect('FROMParK','" + park_channel + "');return false;\">PICKUP</a></td></tr>";
|
||||
park_HTML = park_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + park_channel + "<BR> " + park_call_id + "</td><td><font class=\"log_text\">" + parked_by + "<BR> " + parked_time + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + park_channel + "');return false;\"><?php echo _QXZ("HANGUP"); ?></a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + park_channel + "');return false;\"><?php echo _QXZ("XFER"); ?></a></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"mainxfer_send_redirect('FROMParK','" + park_channel + "');return false;\"><?php echo _QXZ("PICKUP"); ?></a></td></tr>";
|
||||
|
||||
}
|
||||
park_HTML = park_HTML + "</table>";
|
||||
@@ -1760,11 +1761,11 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
var reglink='';
|
||||
if (taskreg.length<1)
|
||||
{
|
||||
head_reg = 'NO ONE';
|
||||
head_reg = <?php echo _QXZ("'NO ONE'"); ?>;
|
||||
show_reglink=1;
|
||||
reglink = "<a href=\"#\" onclick=\"conf_register_room('" + head_conf + "');return false;\">Register</a>";
|
||||
}
|
||||
var conf_head_HTML = "<font class=\"sh_text\">CONFERENCE " + head_conf + "</b></font><font class=\"sb_text\"> Registered to: " + head_reg + " " + reglink + " <a href=\"#\" onclick=\"basic_originate_call('" + head_conf + "','NO','NO');return false;\">Enter Conference </a><BR><a href=\"#\" onclick=\"check_for_conf_calls('" + head_conf + "','1');return false;\">Refresh </a> <span id=\"conf_rec_link\"><a href=\"#\" onclick=\"conf_send_recording('MonitorConf','conf_rec_link','" + head_conf + "');return false;\">Record</a></span> <input TYPE=TEXT SIZE=15 NAME=conf_dtmf STYLE=\"font-family : sans-serif; font-size : 10px\"> <A HREF=\"#\" onclick=\"SendConfDTMF(" + head_conf + ");\">Send 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 + ");\">Dial From Conf</A><BR></font>";
|
||||
var conf_head_HTML = "<font class=\"sh_text\"><?php echo _QXZ("CONFERENCE"); ?> " + head_conf + "</b></font><font class=\"sb_text\"> <?php echo _QXZ("Registered to"); ?>: " + head_reg + " " + reglink + " <a href=\"#\" onclick=\"basic_originate_call('" + head_conf + "','NO','NO');return false;\"><?php echo _QXZ("Enter Conference"); ?> </a><BR><a href=\"#\" onclick=\"check_for_conf_calls('" + head_conf + "','1');return false;\"><?php echo _QXZ("Refresh"); ?> </a> <span id=\"conf_rec_link\"><a href=\"#\" onclick=\"conf_send_recording('MonitorConf','conf_rec_link','" + head_conf + "');return false;\"><?php echo _QXZ("Record"); ?></a></span> <input TYPE=TEXT SIZE=15 NAME=conf_dtmf STYLE=\"font-family : sans-serif; font-size : 10px\"> <A HREF=\"#\" onclick=\"SendConfDTMF(" + head_conf + ");\"><?php echo _QXZ("Send 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 + ");\"><?php echo _QXZ("Dial From Conf"); ?></A><BR></font>";
|
||||
|
||||
document.getElementById("ConfereNceHeaderContent").innerHTML = conf_head_HTML;
|
||||
check_for_conf_calls(head_conf,taskrefresh);
|
||||
@@ -1825,7 +1826,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 CALLS IN THIS CONFERENCE:</B></font><BR><TABLE WIDTH=500><TR BGCOLOR=#E6E6E6><TD><font class=\"log_title\">#</TD><TD><font class=\"log_title\">REMOTE CHANNEL</TD><TD><font class=\"log_title\">HANGUP</TD><TD><font class=\"log_title\">XFER</TD></TR>";
|
||||
var live_conf_HTML = "<font face=\"Arial,Helvetica\"><B><?php echo _QXZ("LIVE CALLS IN THIS CONFERENCE"); ?>:</B></font><BR><TABLE WIDTH=500><TR BGCOLOR=#E6E6E6><TD><font class=\"log_title\">#</TD><TD><font class=\"log_title\"><?php echo _QXZ("REMOTE CHANNEL"); ?></TD><TD><font class=\"log_title\"><?php echo _QXZ("HANGUP"); ?></TD><TD><font class=\"log_title\">XFER</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]='';
|
||||
@@ -1841,7 +1842,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
{var row_color = '#CCCCFF';}
|
||||
var conv_ct = (loop_ct + conv_start);
|
||||
var channelfieldA = conf_chan_array[conv_ct];
|
||||
live_conf_HTML = live_conf_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + channelfieldA + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + channelfieldA + "');return false;\">HANGUP</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + channelfieldA + "');return false;\">XFER</td></tr>";
|
||||
live_conf_HTML = live_conf_HTML + "<tr bgcolor=\"" + row_color + "\"><td><font class=\"log_text\">" + loop_ct + "</td><td><font class=\"log_text\">" + channelfieldA + "</td><td><font class=\"log_text\"><a href=\"#\" onclick=\"livehangup_send_hangup('" + channelfieldA + "');return false;\"><?php echo _QXZ("HANGUP"); ?></td><td><font class=\"log_text\"><a href=\"#\" onclick=\"showMainXfeR('MainXfeRBox','" + channelfieldA + "');return false;\"><?php echo _QXZ("XFER"); ?></td></tr>";
|
||||
|
||||
if (!LMAe[ARY_ct])
|
||||
{LMAe[ARY_ct] = channelfieldA; LMAcontent_change++; LMAalter++;}
|
||||
@@ -2290,7 +2291,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>AVAILABLE EXTENSIONS</B></td><td align=center bgcolor=\"#CCCC99\"><B> FAVORITES</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><?php echo _QXZ("AVAILABLE EXTENSIONS"); ?></B></td><td align=center bgcolor=\"#CCCC99\"><B> <?php echo _QXZ("FAVORITES"); ?></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)
|
||||
{
|
||||
@@ -2325,7 +2326,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=\"./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=\"./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=\"./images/remove.gif\" BORDER=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=\"./images/<?php echo _QXZ("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=\"./images/<?php echo _QXZ("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=\"./images/<?php echo _QXZ("remove.gif") ?>\" BORDER=0></a></b></font><BR>";
|
||||
}
|
||||
loop_ct++;
|
||||
}
|
||||
@@ -2387,7 +2388,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
hideDiv('MainPanel');
|
||||
showDiv('LogouTBox');
|
||||
|
||||
document.getElementById("LogouTBoxLink").innerHTML = "<a href=\"" + agcPAGE + "?relogin=YES&session_epoch=" + epoch_sec + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&user=" + user + "&phone_login=" + phone_login + "&phone_pass=" + phone_pass + "\">CLICK HERE TO LOG IN AGAIN</a>\n";
|
||||
document.getElementById("LogouTBoxLink").innerHTML = "<a href=\"" + agcPAGE + "?relogin=YES&session_epoch=" + epoch_sec + "&session_name=" + session_name + "&user=" + user + "&pass=" + pass + "&user=" + user + "&phone_login=" + phone_login + "&phone_pass=" + phone_pass + "\"><?php echo _QXZ("CLICK HERE TO LOG IN AGAIN"); ?></a>\n";
|
||||
|
||||
logout_stop_timeouts = 1;
|
||||
|
||||
@@ -2468,7 +2469,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=" - ACTIVE DISPLAY PAUSED -";}
|
||||
{active_display=2; display_message="<?php echo _QXZ(" - ACTIVE DISPLAY PAUSED -"); ?>";}
|
||||
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
|
||||
@@ -2489,13 +2490,13 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
function activeext_order_asc() // changes order of activeext list to ascending
|
||||
{
|
||||
activeext_order="asc"; getactiveext();
|
||||
desc_order_HTML ='<a href="#" onclick="activeext_order_desc();return false;">ORDER</a>';
|
||||
desc_order_HTML ='<a href="#" onclick="activeext_order_desc();return false;"><?php echo _QXZ("ORDER"); ?></a>';
|
||||
document.getElementById("activeext_order").innerHTML = desc_order_HTML;
|
||||
}
|
||||
function activeext_order_desc() // changes order of activeext list to descending
|
||||
{
|
||||
activeext_order="desc"; getactiveext();
|
||||
asc_order_HTML ='<a href="#" onclick="activeext_order_asc();return false;">ORDER</a>';
|
||||
asc_order_HTML ='<a href="#" onclick="activeext_order_asc();return false;"><?php echo _QXZ("ORDER"); ?></a>';
|
||||
document.getElementById("activeext_order").innerHTML = asc_order_HTML;
|
||||
}
|
||||
|
||||
@@ -2505,13 +2506,13 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
function busytrunk_order_asc() // changes order of busytrunk list to ascending
|
||||
{
|
||||
busytrunk_order="asc"; getbusytrunk();
|
||||
desc_order_HTML ='<a href="#" onclick="busytrunk_order_desc();return false;">ORDER</a>';
|
||||
desc_order_HTML ='<a href="#" onclick="busytrunk_order_desc();return false;"><?php echo _QXZ("ORDER"); ?></a>';
|
||||
document.getElementById("busytrunk_order").innerHTML = desc_order_HTML;
|
||||
}
|
||||
function busytrunk_order_desc() // changes order of busytrunk list to descending
|
||||
{
|
||||
busytrunk_order="desc"; getbusytrunk();
|
||||
asc_order_HTML ='<a href="#" onclick="busytrunk_order_asc();return false;">ORDER</a>';
|
||||
asc_order_HTML ='<a href="#" onclick="busytrunk_order_asc();return false;"><?php echo _QXZ("ORDER"); ?></a>';
|
||||
document.getElementById("busytrunk_order").innerHTML = asc_order_HTML;
|
||||
}
|
||||
function busytrunkhangup_force_refresh() // forces immediate refresh of list content
|
||||
@@ -2523,13 +2524,13 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
|
||||
function busyext_order_asc() // changes order of busyext list to ascending
|
||||
{
|
||||
busyext_order="asc"; getbusyext();
|
||||
desc_order_HTML ='<a href="#" onclick="busyext_order_desc();return false;">ORDER</a>';
|
||||
desc_order_HTML ='<a href="#" onclick="busyext_order_desc();return false;"><?php echo _QXZ("ORDER"); ?></a>';
|
||||
document.getElementById("busyext_order").innerHTML = desc_order_HTML;
|
||||
}
|
||||
function busyext_order_desc() // changes order of busyext list to descending
|
||||
{
|
||||
busyext_order="desc"; getbusyext();
|
||||
asc_order_HTML ='<a href="#" onclick="busyext_order_asc();return false;">ORDER</a>';
|
||||
asc_order_HTML ='<a href="#" onclick="busyext_order_asc();return false;"><?php echo _QXZ("ORDER"); ?></a>';
|
||||
document.getElementById("busyext_order").innerHTML = asc_order_HTML;
|
||||
}
|
||||
function busylocalhangup_force_refresh() // forces immediate refresh of list content
|
||||
@@ -2718,75 +2719,75 @@ echo "</head>\n";
|
||||
<TR VALIGN=TOP ALIGN=LEFT><TD COLSPAN=5 VALIGN=TOP ALIGN=LEFT>
|
||||
<INPUT TYPE=HIDDEN NAME=extension>
|
||||
<font class="body_text">
|
||||
<?php echo "Welcome $LOGfullname, you are logged into this phone: $fullname - $protocol/$extension on $server_ip <a href=\"#\" onclick=\"LogouT();return false;\">LOGOUT</a><BR>\n"; ?>
|
||||
<?php echo _QXZ("Welcome $LOGfullname, you are logged into this phone: $fullname - $protocol/$extension on $server_ip")." <a href=\"#\" onclick=\"LogouT();return false;\">"._QXZ("LOGOUT")."</a><BR>\n"; ?>
|
||||
</TD></TR>
|
||||
<TR VALIGN=TOP ALIGN=LEFT>
|
||||
<TD><A HREF="#" onclick="MainPanelToFront();"><IMG SRC="./images/agc_tab_main.gif" ALT="Main Panel" WIDTH=83 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD><A HREF="#" onclick="ActiveLinesPanelToFront();"><IMG SRC="./images/agc_tab_active_lines.gif" ALT="Active Lines Panel" WIDTH=139 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD><A HREF="#" onclick="ConfereNcesPanelToFront();"><IMG SRC="./images/agc_tab_conferences.gif" ALT="Conferences Panel" WIDTH=139 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD><A HREF="#" onclick="SendCheckVoiceMail();"><IMG SRC="./images/agc_check_voicemail_ON.gif" NAME=voicemail ALT="Check Voicemail" WIDTH=170 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD><IMG SRC="./images/agc_live_call_OFF.gif" NAME=livecall ALT="Live Call" WIDTH=109 HEIGHT=30 BORDER=0></TD>
|
||||
<TD><A HREF="#" onclick="MainPanelToFront();"><IMG SRC="./images/<?php echo _QXZ("agc_tab_main.gif") ?>" ALT="Main Panel" WIDTH=83 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD><A HREF="#" onclick="ActiveLinesPanelToFront();"><IMG SRC="./images/<?php echo _QXZ("agc_tab_active_lines.gif") ?>" ALT="Active Lines Panel" WIDTH=139 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD><A HREF="#" onclick="ConfereNcesPanelToFront();"><IMG SRC="./images/<?php echo _QXZ("agc_tab_conferences.gif") ?>" ALT="Conferences Panel" WIDTH=139 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD><A HREF="#" onclick="SendCheckVoiceMail();"><IMG SRC="./images/<?php echo _QXZ("agc_check_voicemail_ON.gif") ?>" NAME=voicemail ALT="Check Voicemail" WIDTH=170 HEIGHT=30 BORDER=0></A></TD>
|
||||
<TD><IMG SRC="./images/<?php echo _QXZ("agc_live_call_OFF.gif") ?>" NAME=livecall ALT="Live Call" WIDTH=109 HEIGHT=30 BORDER=0></TD>
|
||||
</TR></TABLE>
|
||||
</SPAN>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:26;" id="LogouTBox">
|
||||
<table border=1 bgcolor="#FFFFFF" width=750 height=500><TR><TD align=center><BR><span id="LogouTBoxLink">Logout</span></TD></TR></TABLE>
|
||||
<table border=1 bgcolor="#FFFFFF" width=750 height=500><TR><TD align=center><BR><span id="LogouTBoxLink"><?php echo _QXZ("Logout"); ?></span></TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:12px;z-index:29;" id="TrunkHangupBox">
|
||||
<table border=1 bgcolor="#CDE0C2" width=600 height=500><TR><TD> TRUNK HANGUP <BR><BR>
|
||||
<span id="TrunkHangupContent"> Active Trunks Menu </span><BR>
|
||||
<span id="TrunkHangup_HUlink"><a href="#" onclick="busyhangup_send_hangup('Trunk');return false;">Hangup Trunk</a> | </span>
|
||||
<span id="TrunkHangup_HJlink"><a href="#" onclick="busyhangup_send_redirect('Trunk','HIJACK');return false;">Hijack Trunk</a> | </span>
|
||||
<span id="TrunkHangup_ZMlink"><a href="#" onclick="busyhangup_send_redirect('Trunk','LISTEN');return false;">Listen Trunk</a> | </span>
|
||||
<a href="#" onclick="busytrunkhangup_force_refresh();return false;">Refresh</a> |
|
||||
<a href="#" onclick="hideTrunkHangup('TrunkHangupBox');">Back to Main Window</a>
|
||||
<table border=1 bgcolor="#CDE0C2" width=600 height=500><TR><TD> <?php echo _QXZ("TRUNK HANGUP"); ?> <BR><BR>
|
||||
<span id="TrunkHangupContent"> <?php echo _QXZ("Active Trunks Menu"); ?> </span><BR>
|
||||
<span id="TrunkHangup_HUlink"><a href="#" onclick="busyhangup_send_hangup('Trunk');return false;"><?php echo _QXZ("Hangup Trunk"); ?></a> | </span>
|
||||
<span id="TrunkHangup_HJlink"><a href="#" onclick="busyhangup_send_redirect('Trunk','HIJACK');return false;"><?php echo _QXZ("Hijack Trunk"); ?></a> | </span>
|
||||
<span id="TrunkHangup_ZMlink"><a href="#" onclick="busyhangup_send_redirect('Trunk','LISTEN');return false;"><?php echo _QXZ("Listen Trunk"); ?></a> | </span>
|
||||
<a href="#" onclick="busytrunkhangup_force_refresh();return false;"><?php echo _QXZ("Refresh"); ?></a> |
|
||||
<a href="#" onclick="hideTrunkHangup('TrunkHangupBox');"><?php echo _QXZ("Back to Main Window"); ?></a>
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:0px;top:12px;z-index:28;" id="LocalHangupBox">
|
||||
<table border=1 bgcolor="#CDE0C2" width=600 height=500><TR><TD> LOCAL HANGUP <BR><BR>
|
||||
<span id="LocalHangupContent"> Active Local Menu </span><BR>
|
||||
<span id="LocalHangup_HUlink"><a href="#" onclick="busyhangup_send_hangup('Local');return false;">Hangup Local</a> | </span>
|
||||
<span id="LocalHangup_HJlink"><a href="#" onclick="busyhangup_send_redirect('Local');return false;">Hijack Local</a> | </span>
|
||||
<span id="LocalHangup_ZMlink"><a href="#" onclick="busyhangup_send_redirect('Local','LISTEN');return false;">Listen Local</a> | </span>
|
||||
<a href="#" onclick="busylocalhangup_force_refresh();return false;">Refresh</a> |
|
||||
<a href="#" onclick="hideLocalHangup('LocalHangupBox');">Back to Main Window</a>
|
||||
<table border=1 bgcolor="#CDE0C2" width=600 height=500><TR><TD> <?php echo _QXZ("LOCAL HANGUP"); ?> <BR><BR>
|
||||
<span id="LocalHangupContent"> <?php echo _QXZ("Active Local Menu"); ?> </span><BR>
|
||||
<span id="LocalHangup_HUlink"><a href="#" onclick="busyhangup_send_hangup('Local');return false;"><?php echo _QXZ("Hangup Local"); ?></a> | </span>
|
||||
<span id="LocalHangup_HJlink"><a href="#" onclick="busyhangup_send_redirect('Local');return false;"><?php echo _QXZ("Hijack Local"); ?></a> | </span>
|
||||
<span id="LocalHangup_ZMlink"><a href="#" onclick="busyhangup_send_redirect('Local','LISTEN');return false;"><?php echo _QXZ("Listen Local"); ?></a> | </span>
|
||||
<a href="#" onclick="busylocalhangup_force_refresh();return false;"><?php echo _QXZ("Refresh"); ?></a> |
|
||||
<a href="#" onclick="hideLocalHangup('LocalHangupBox');"><?php echo _QXZ("Back to Main Window"); ?></a>
|
||||
</TD></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<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 CALL TRANSFER</b> <BR>Channel to be transferred: <span id="MainXfeRChanneL">Channel</span><BR></tr>
|
||||
<tr><td>Extensions:<BR><span id="MainXfeRContent"> Extensions Menu </span></td>
|
||||
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> <?php echo _QXZ("LIVE CALL TRANSFER"); ?></b> <BR><?php echo _QXZ("Channel to be transferred:"); ?> <span id="MainXfeRChanneL"><?php echo _QXZ("Channel"); ?></span><BR></tr>
|
||||
<tr><td><?php echo _QXZ("Extensions:"); ?><BR><span id="MainXfeRContent"> <?php echo _QXZ("Extensions Menu"); ?> </span></td>
|
||||
<td>
|
||||
<BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('XfeR');return false;">Send to selected extension</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('VMAIL');return false;">Send to selected vmail box</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('ENTRY');return false;">Send to this number</a>:<BR><input type=text name=extension_xfer_entry size=20 maxlength=50> <BR><BR>
|
||||
<a href="#" onclick="getactiveext('MainXfeRBox');return false;">Refresh</a> <BR><BR><BR>
|
||||
<a href="#" onclick="hideMainXfeR('MainXfeRBox');">Back to Main Window</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('XfeR');return false;"><?php echo _QXZ("Send to selected extension"); ?></a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('VMAIL');return false;"><?php echo _QXZ("Send to selected vmail box"); ?></a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_redirect('ENTRY');return false;"><?php echo _QXZ("Send to this number"); ?></a>:<BR><input type=text name=extension_xfer_entry size=20 maxlength=50> <BR><BR>
|
||||
<a href="#" onclick="getactiveext('MainXfeRBox');return false;"><?php echo _QXZ("Refresh"); ?></a> <BR><BR><BR>
|
||||
<a href="#" onclick="hideMainXfeR('MainXfeRBox');"><?php echo _QXZ("Back to Main Window"); ?></a> <BR><BR>
|
||||
</TD>
|
||||
<TD>Conferences:<BR><font size=1>(click on a number below to send to a conference)<BR><input type=checkbox name=MainXfeRconfXTRA size=1 value="1"> Send my channel too<div class="scroll_list" id="MainXfeRconfContent"> Conferences Menu </div></td></TR></TABLE>
|
||||
<TD><?php echo _QXZ("Conferences:"); ?><BR><font size=1><?php echo _QXZ("(click on a number below to send to a conference)"); ?><BR><input type=checkbox name=MainXfeRconfXTRA size=1 value="1"> <?php echo _QXZ("Send my channel too"); ?><div class="scroll_list" id="MainXfeRconfContent"> <?php echo _QXZ("Conferences Menu"); ?> </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> LOCAL Extensions Dial</b> <BR>Phone calling from: <span id="LocalDialChanneL">Channel</span><BR></tr>
|
||||
<tr><td>Extensions:<BR><span id="LocalDialContent"> Extensions Menu </span></td>
|
||||
<table border=0 bgcolor="#FFFFCC" width=600 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> <?php echo _QXZ("LOCAL Extensions Dial"); ?></b> <BR><?php echo _QXZ("Phone calling from:"); ?> <span id="LocalDialChanneL"><?php echo _QXZ("Channel"); ?></span><BR></tr>
|
||||
<tr><td><?php echo _QXZ("Extensions:"); ?><BR><span id="LocalDialContent"> <?php echo _QXZ("Extensions Menu"); ?> </span></td>
|
||||
<td>
|
||||
<BR>
|
||||
<a href="#" onclick="mainxfer_send_originate('DiaL','','');return false;">Call selected extension</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_originate('VMAIL');return false;">Call selected vmail box</a> <BR><BR>
|
||||
<a href="#" onclick="getactiveext('LocalDialBox');return false;">Refresh</a> <BR><BR><BR>
|
||||
<a href="#" onclick="hideLocalDial('LocalDialBox');">Back to Main Window</a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_originate('DiaL','','');return false;"><?php echo _QXZ("Call selected extension"); ?></a> <BR><BR>
|
||||
<a href="#" onclick="mainxfer_send_originate('VMAIL');return false;"><?php echo _QXZ("Call selected vmail box"); ?></a> <BR><BR>
|
||||
<a href="#" onclick="getactiveext('LocalDialBox');return false;"><?php echo _QXZ("Refresh"); ?></a> <BR><BR><BR>
|
||||
<a href="#" onclick="hideLocalDial('LocalDialBox');"><?php echo _QXZ("Back to Main Window"); ?></a> <BR><BR>
|
||||
</TD>
|
||||
<TD></td></TR></TABLE>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:40px;top:12px;z-index:41;" id="ParkDisplayBox">
|
||||
<table border=0 bgcolor="#FFFFCC" width=640 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> PARKED CALLS:</b> <div class="scroll_park" id="ParkDisplayContents"></div>
|
||||
<a href="#" onclick="hideParkDisplay('ParkDisplayBox');">Back to Main Window</a> <BR><BR>
|
||||
<table border=0 bgcolor="#FFFFCC" width=640 height=500 cellpadding=3><TR><TD COLSPAN=3 ALIGN=CENTER><b> <?php echo _QXZ("PARKED CALLS:"); ?></b> <div class="scroll_park" id="ParkDisplayContents"></div>
|
||||
<a href="#" onclick="hideParkDisplay('ParkDisplayBox');"><?php echo _QXZ("Back to Main Window"); ?></a> <BR><BR>
|
||||
</td></TR></TABLE>
|
||||
</span>
|
||||
|
||||
@@ -2796,26 +2797,26 @@ 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> NEW: <span id="new_vmail_span"></span> OLD: <span id="old_vmail_span"></span> <font face="Arial,Helvetica"><B>MANUAL DIAL </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><font face="Arial,Helvetica"><B><?php echo _QXZ("VOICEMAIL"); ?> </B></font> <?php echo _QXZ("NEW:"); ?> <span id="new_vmail_span"></span> <?php echo _QXZ("OLD:"); ?> <span id="old_vmail_span"></span> <font face="Arial,Helvetica"><B><?php echo _QXZ("MANUAL DIAL"); ?> </B></font><input TYPE=TEXT SIZE=20 NAME=manual_dial STYLE="font-family : sans-serif; font-size : 10px"> <A HREF="#" onclick="SendManualDial();"><?php echo _QXZ("DIAL"); ?></A></td></tr>
|
||||
|
||||
<tr><td align=center><a href="#" onclick="showParkDisplay('ParkDisplayBox');return false;"><font face="Arial,Helvetica"><B>PARKED CALLS</B></a>: <span id="parked_calls_count">0</span> <a href="#" onclick="showLocalDial('LocalDialBox');return false;"><font face="Arial,Helvetica"><B>LOCAL DIAL EXTENSIONS</a></td></tr>
|
||||
<tr><td align=center><a href="#" onclick="showParkDisplay('ParkDisplayBox');return false;"><font face="Arial,Helvetica"><B><?php echo _QXZ("PARKED CALLS"); ?></B></a>: <span id="parked_calls_count">0</span> <a href="#" onclick="showLocalDial('LocalDialBox');return false;"><font face="Arial,Helvetica"><B><?php echo _QXZ("LOCAL DIAL EXTENSIONS"); ?></a></td></tr>
|
||||
|
||||
<tr><td align=center><font face="Arial,Helvetica"><B>OUTBOUND CALLS:</B></font></td></tr>
|
||||
<tr><td align=center><font face="Arial,Helvetica"><B><?php echo _QXZ("OUTBOUND CALLS:"); ?></B></font></td></tr>
|
||||
<tr><td align=center><div class="scroll_log" id="outboundcallsspan"></div></td></tr>
|
||||
<tr><td align=center><font face="Arial,Helvetica"><B>INBOUND CALLS:</B></font></td></tr>
|
||||
<tr><td align=center><font face="Arial,Helvetica"><B><?php echo _QXZ("INBOUND CALLS:"); ?></B></font></td></tr>
|
||||
<tr><td align=center><div class="scroll_log" id="inboundcallsspan"></div></td></tr>
|
||||
<tr><td align=left><font face="Arial,Helvetica" size=1>astGUIclient web-client VERSION:<?php echo $version ?> BUILD:<?php echo $build ?></font></td></tr>
|
||||
<tr><td align=left><font face="Arial,Helvetica" size=1><?php echo _QXZ("astGUIclient web-client VERSION: $version BUILD: $build"); ?></font></td></tr>
|
||||
</TABLE>
|
||||
|
||||
<span style="position:absolute;left:640px;top:0px;z-index:33;" id="FavoriteSBox">
|
||||
<table border=0 bgcolor="#DDDDFF" width=200 height=400 cellpadding=2 ALIGN=TOP><TR><TD align=center><span id="FavoriteSContent"><font class="sh_text"> FAVORITES</font><font class="sb_text"> <a href="#" onclick="favorites_editor('BuilD');return false;"> edit</a></span></TD></TR>
|
||||
<table border=0 bgcolor="#DDDDFF" width=200 height=400 cellpadding=2 ALIGN=TOP><TR><TD align=center><span id="FavoriteSContent"><font class="sh_text"> <?php echo _QXZ("FAVORITES"); ?></font><font class="sb_text"> <a href="#" onclick="favorites_editor('BuilD');return false;"> <?php echo _QXZ("edit"); ?></a></span></TD></TR>
|
||||
<?php
|
||||
$h=0;
|
||||
while ($favorites_count > $h)
|
||||
{
|
||||
if (strlen($favorites[$h])>1)
|
||||
{
|
||||
echo "<TR id=\"$favorites[$h]\" bgcolor=\"#90EE90\"><TD> <A HREF=\"#\" onclick=\"mainxfer_send_originate('DiaL','','$favorites[$h]');return false;\"><font class=\"sb_text\">$favorites[$h] - $favorites_names[$h]</font></A> </TD></TR>\n";
|
||||
echo "<TR id=\"$favorites[$h]\" bgcolor=\"#90EE90\"><TD> <A HREF=\"#\" onclick=\"mainxfer_send_originate('DiaL','','$favorites[$h]');return false;\"><font class=\"sb_text\">"._QXZ("$favorites[$h] - $favorites_names[$h]")."</font></A> </TD></TR>\n";
|
||||
}
|
||||
$h++;
|
||||
}
|
||||
@@ -2826,10 +2827,10 @@ echo "</head>\n";
|
||||
|
||||
|
||||
<span style="position:absolute;left:5px;top:5px;z-index:34;" id="FavoriteSEdiT">
|
||||
<table border=0 bgcolor="#DDDDFF" width=800 height=450 cellpadding=2 ALIGN=TOP><TR HEIGHT=95%><TD align=center HEIGHT=95%><span id="FavoriteSEditContent"> FAVORITES</span></TD></TR>
|
||||
<table border=0 bgcolor="#DDDDFF" width=800 height=450 cellpadding=2 ALIGN=TOP><TR HEIGHT=95%><TD align=center HEIGHT=95%><span id="FavoriteSEditContent"> <?php echo _QXZ("FAVORITES"); ?></span></TD></TR>
|
||||
<TR><TD ALIGN=CENTER><BR> </TD></TR>
|
||||
<TR VALIGN=BOTTOM><TD VALIGN=BOTTOM ALIGN=CENTER BGCOLOR="#FFFFCC"><a href="#" onclick="SubmiT_FavoritE_ChangEs();return false;">SUBMIT FAVORITES CHANGES - requires logout</a></TD></TR>
|
||||
<TR VALIGN=BOTTOM><TD VALIGN=BOTTOM ALIGN=CENTER BGCOLOR="#FFFFCC"><a href="#" onclick="hideDiv('FavoriteSEdiT');return false;">BACK TO MAIN WINDOW - ignore changes made</a></TD></TR>
|
||||
<TR VALIGN=BOTTOM><TD VALIGN=BOTTOM ALIGN=CENTER BGCOLOR="#FFFFCC"><a href="#" onclick="SubmiT_FavoritE_ChangEs();return false;"><?php echo _QXZ("SUBMIT FAVORITES CHANGES - requires logout"); ?></a></TD></TR>
|
||||
<TR VALIGN=BOTTOM><TD VALIGN=BOTTOM ALIGN=CENTER BGCOLOR="#FFFFCC"><a href="#" onclick="hideDiv('FavoriteSEdiT');return false;"><?php echo _QXZ("BACK TO MAIN WINDOW - ignore changes made"); ?></a></TD></TR>
|
||||
</TABLE>
|
||||
</span>
|
||||
|
||||
@@ -2839,30 +2840,30 @@ echo "</head>\n";
|
||||
<span style="position:absolute;left:0px;top:46px;z-index:20;" id="ActiveLinesPanel">
|
||||
<table border=0 BGCOLOR="#CDE0C2" width=640>
|
||||
<tr><td colspan=3>
|
||||
<a href="#" onclick="pause();return false;">STOP</a> | <a href="#" onclick="start();return false;">START</a> Refresh rate: <span id="refresh_rate">1000 ms</span> <a href="#" onclick="faster();return false;">Faster</a> | <a href="#" onclick="slower();return false;">Slower</a></p>
|
||||
<div id="status"><em>Initializing..</em></div>
|
||||
<a href="#" onclick="pause();return false;"><?php echo _QXZ("STOP"); ?></a> | <a href="#" onclick="start();return false;"><?php echo _QXZ("START"); ?></a> <?php echo _QXZ("Refresh rate:"); ?> <span id="refresh_rate">1000 ms</span> <a href="#" onclick="faster();return false;"><?php echo _QXZ("Faster"); ?></a> | <a href="#" onclick="slower();return false;"><?php echo _QXZ("Slower"); ?></a></p>
|
||||
<div id="status"><em><?php echo _QXZ("Initializing.."); ?></em></div>
|
||||
</td></tr>
|
||||
<tr><td>Active Extensions <BR>
|
||||
<a href="#" onclick="activeext_force_refresh();return false;">REFRESH</a> |
|
||||
<span id="activeext_order"><a href="#" onclick="activeext_order_desc();return false;">ORDER</a> | </span>
|
||||
<tr><td><?php echo _QXZ("Active Extensions"); ?> <BR>
|
||||
<a href="#" onclick="activeext_force_refresh();return false;"><?php echo _QXZ("Refresh"); ?></a> |
|
||||
<span id="activeext_order"><a href="#" onclick="activeext_order_desc();return false;"><?php echo _QXZ("ORDER"); ?></a> | </span>
|
||||
</td>
|
||||
|
||||
<td>Outside Lines <BR>
|
||||
<a href="#" onclick="busytrunk_force_refresh();return false;">REFRESH</a> |
|
||||
<span id="busytrunk_order"><a href="#" onclick="busytrunk_order_desc();return false;">ORDER</a> | </span>
|
||||
<td><?php echo _QXZ("Outside Lines"); ?> <BR>
|
||||
<a href="#" onclick="busytrunk_force_refresh();return false;"><?php echo _QXZ("Refresh"); ?></a> |
|
||||
<span id="busytrunk_order"><a href="#" onclick="busytrunk_order_desc();return false;"><?php echo _QXZ("ORDER"); ?></a> | </span>
|
||||
</td>
|
||||
|
||||
<td>Local Extensions <BR>
|
||||
<a href="#" onclick="busyext_force_refresh();return false;">REFRESH</a> |
|
||||
<span id="busyext_order"><a href="#" onclick="busyext_order_desc();return false;">ORDER</a> | </span>
|
||||
<td><?php echo _QXZ("Local Extensions"); ?> <BR>
|
||||
<a href="#" onclick="busyext_force_refresh();return false;"><?php echo _QXZ("Refresh"); ?></a> |
|
||||
<span id="busyext_order"><a href="#" onclick="busyext_order_desc();return false;"><?php echo _QXZ("ORDER"); ?></a> | </span>
|
||||
</td></tr>
|
||||
|
||||
<tr><td VALIGN=TOP>
|
||||
<span id="activeext"><em>Data Goes Here</em></span><BR><BR>
|
||||
<span id="activeext"><em><?php echo _QXZ("Data Goes Here"); ?></em></span><BR><BR>
|
||||
</td><td VALIGN=TOP>
|
||||
<span id="busytrunk"><em>Data Goes Here</em></span><BR><BR><span id="TrunkHangupLink"><a href="#" onclick="showTrunkHangup('TrunkHangupBox');return false;">Trunk Action</a></span>
|
||||
<span id="busytrunk"><em><?php echo _QXZ("Data Goes Here"); ?></em></span><BR><BR><span id="TrunkHangupLink"><a href="#" onclick="showTrunkHangup('TrunkHangupBox');return false;"><?php echo _QXZ("Trunk Action"); ?></a></span>
|
||||
</td><td VALIGN=TOP>
|
||||
<span id="busyext"><em>Data Goes Here</em></span><BR><BR><span id="LocalHangupLink"><a href="#" onclick="showLocalHangup('LocalHangupBox');return false;">Local Action</a></span>
|
||||
<span id="busyext"><em><?php echo _QXZ("Data Goes Here"); ?></em></span><BR><BR><span id="LocalHangupLink"><a href="#" onclick="showLocalHangup('LocalHangupBox');return false;"><?php echo _QXZ("Local Action"); ?></a></span>
|
||||
</td></tr>
|
||||
|
||||
</table>
|
||||
@@ -2874,12 +2875,12 @@ echo "</head>\n";
|
||||
<TR><TD></TD></TR></TABLE>
|
||||
|
||||
<span style="position:absolute;left:0px;top:0px;z-index:31;color:black;" id="ConfereNcesListSpan">
|
||||
<span id="ConfereNcesListContent">Conferences List </span>
|
||||
<span id="ConfereNcesListContent"><?php echo _QXZ("Conferences List"); ?> </span>
|
||||
</span>
|
||||
|
||||
<span style="position:absolute;left:140px;top:0px;z-index:32;color:black;width:500;" id="ConfereNceHeaderSpan">
|
||||
<span id="ConfereNceHeaderContent"> </span><BR>
|
||||
<span style="width:540;height:400;" id="ConfereNceDetailContent">Click on a conference room number on the left for info on that conference </span>
|
||||
<span style="width:540;height:400;" id="ConfereNceDetailContent"><?php echo _QXZ("Click on a conference room number on the left for info on that conference"); ?> </span>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# call_log_display.php version 2.8
|
||||
# call_log_display.php version 2.10
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# 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
|
||||
@@ -33,6 +33,7 @@
|
||||
# 130603-2219 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130705-1524 - Added optional encrypted passwords compatibility
|
||||
# 130802-1005 - Changed to PHP mysqli functions
|
||||
# 140811-0847 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
@@ -80,14 +81,14 @@ if ($auth_message == 'GOOD')
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -99,7 +100,7 @@ else
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Invalid session_name: |$session_name|$server_ip|\n";
|
||||
echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -114,7 +115,7 @@ if ($format=='debug')
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Call Log Display";
|
||||
echo "<title>".QXZ("Call Log Display");
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
@@ -126,7 +127,7 @@ if ($format=='debug')
|
||||
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Exten $exten is not valid or protocol $protocol is not valid\n";
|
||||
echo _QXZ("Exten $exten is not valid or protocol $protocol is not valid\n");
|
||||
exit;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
# conf_exten_check.php version 2.8
|
||||
# conf_exten_check.php version 2.10
|
||||
#
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
@@ -62,10 +62,11 @@
|
||||
# 130705-1524 - Added optional encrypted passwords compatibility
|
||||
# 130802-1015 - Changed to use PHP mysqli functions
|
||||
# 140126-0659 - Added external_pause_code function
|
||||
# 140810-2136 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
$version = '2.8-37';
|
||||
$build = '140126-0659';
|
||||
$version = '2.10-38';
|
||||
$build = '140810-2136';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=39;
|
||||
$one_mysql_log=0;
|
||||
@@ -165,14 +166,14 @@ if ($auth_message == 'GOOD')
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -185,7 +186,7 @@ else
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Invalid session_name: |$session_name|$server_ip|\n";
|
||||
echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -200,7 +201,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>Conf Extension Check";
|
||||
echo "<title>"._QXZ("Conf Extension Check");
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
@@ -214,7 +215,7 @@ if ($ACTION == 'refresh')
|
||||
if (strlen($conf_exten)<1)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Conf Exten $conf_exten is not valid\n";
|
||||
echo _QXZ("Conf Exten $conf_exten is not valid\n");
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -754,7 +755,7 @@ if ($ACTION == 'register')
|
||||
if ( (strlen($conf_exten)<1) || (strlen($exten)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Conf Exten $conf_exten is not valid or Exten $exten is not valid\n";
|
||||
echo _QXZ("Conf Exten $conf_exten is not valid or Exten $exten is not valid\n");
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -764,7 +765,7 @@ if ($ACTION == 'register')
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'03013',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
}
|
||||
echo "Conference $conf_exten has been registered to $exten\n";
|
||||
echo _QXZ("Conference $conf_exten has been registered to $exten\n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# deactivate_lead.php
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed to be used in the "Dispo URL" field of a campaign
|
||||
# or in-group. It should take in the campaign_id to check for the same source_id
|
||||
@@ -27,6 +27,7 @@
|
||||
# 130328-0016 - Converted ereg to preg functions
|
||||
# 130603-2217 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130802-1006 - Changed to PHP mysqli functions
|
||||
# 140811-0845 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
$api_script = 'deactivate';
|
||||
@@ -110,7 +111,7 @@ if (preg_match("/$TD$dispo$TD/",$sale_status))
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -168,30 +169,30 @@ if (preg_match("/$TD$dispo$TD/",$sale_status))
|
||||
$stmt="INSERT INTO vicidial_api_log set user='$user',agent_user='$user',function='deactivate_lead',value='$lead_id',result='$affected_rows',result_reason='$search_field',source='vdc',data='$SQL_log',api_date='$NOW_TIME',api_script='$api_script';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
|
||||
$MESSAGE = "DONE: $search_count duplicates found, $affected_rows updated to $new_status from $dispo";
|
||||
$MESSAGE = _QXZ("DONE: $search_count duplicates found,")." $affected_rows updated to $new_status from $dispo";
|
||||
echo "$MESSAGE\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$MESSAGE = "DONE: no duplicates found within $campaign_check |$duplicate_lists|";
|
||||
$MESSAGE = _QXZ("DONE: no duplicates found within")." $campaign_check |$duplicate_lists|";
|
||||
echo "$MESSAGE\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$MESSAGE = "DONE: no lists in campaign_check $campaign_check";
|
||||
$MESSAGE = _QXZ("DONE: no lists in campaign_check")." $campaign_check";
|
||||
echo "$MESSAGE\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$MESSAGE = "DONE: $search_field is empty for lead $lead_id";
|
||||
$MESSAGE = _QXZ("DONE: $search_field is empty for lead")." $lead_id");
|
||||
echo "$MESSAGE\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$MESSAGE = "DONE: dispo is not a sale status: $dispo";
|
||||
$MESSAGE = _QXZ("DONE: dispo is not a sale status:")." $dispo");
|
||||
echo "$MESSAGE\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# dispo_move_list.php
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed to be used in the "Dispo URL" field of a campaign
|
||||
# or in-group. It should take in the lead_id to check for the same lead_id
|
||||
@@ -34,6 +34,7 @@
|
||||
# 130328-0015 - Converted ereg to preg functions
|
||||
# 130603-2216 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130802-1007 - Changed to PHP mysqli functions
|
||||
# 140811-0844 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
$api_script = 'deactivate';
|
||||
@@ -99,7 +100,7 @@ else
|
||||
elseif (isset($_POST["$statusfield"])) {$sale_status=$_POST["$statusfield"];}
|
||||
$sale_status = "$TD$sale_status$TD";
|
||||
|
||||
if ($DB) {echo "MULTI_MATCH CHECK: $k|$sale_status|$statusfield|\n";}
|
||||
if ($DB) {echo _QXZ("MULTI_MATCH CHECK:")." $k|$sale_status|$statusfield|\n";}
|
||||
|
||||
if (strlen($sale_status)>0)
|
||||
{
|
||||
@@ -112,7 +113,7 @@ else
|
||||
elseif (isset($_POST["$newlistfield"])) {$new_list_id=$_POST["$newlistfield"];}
|
||||
if (isset($_GET["$resetfield"])) {$reset_dialed=$_GET["$resetfield"];}
|
||||
elseif (isset($_POST["$resetfield"])) {$reset_dialed=$_POST["$resetfield"];}
|
||||
if ($DB) {echo "MULTI_MATCH: $k|$sale_status|$new_list_id|$reset_dialed\n";}
|
||||
if ($DB) {echo _QXZ("MULTI_MATCH:")." $k|$sale_status|$new_list_id|$reset_dialed\n";}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -160,7 +161,7 @@ if ($match_found > 0)
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0) or ($authlive==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth|$authlive|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth|$authlive|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -208,24 +209,24 @@ if ($match_found > 0)
|
||||
$stmt="INSERT INTO vicidial_api_log set user='$user',agent_user='$user',function='deactivate_lead',value='$lead_id',result='$affected_rows',result_reason='$lead_id',source='vdc',data='$SQL_log',api_date='$NOW_TIME',api_script='$api_script';";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
|
||||
$MESSAGE = "DONE: $search_count match found, $affected_rows updated to $new_list_id with $dispo status";
|
||||
$MESSAGE = _QXZ("DONE: $search_count match found, $affected_rows updated to $new_list_id with $dispo status");
|
||||
echo "$MESSAGE\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$MESSAGE = "DONE: no match found within $lead_id |$new_list_id|";
|
||||
$MESSAGE = _QXZ("DONE: no match found within $lead_id |$new_list_id|");
|
||||
echo "$MESSAGE\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$MESSAGE = "DONE: $search_field is empty for lead $lead_id";
|
||||
$MESSAGE = _QXZ("DONE: $search_field is empty for lead $lead_id");
|
||||
echo "$MESSAGE\n";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$MESSAGE = "DONE: dispo is not a sale status: $dispo";
|
||||
$MESSAGE = _QXZ("DONE: dispo is not a sale status: $dispo");
|
||||
echo "$MESSAGE\n";
|
||||
}
|
||||
|
||||
|
||||
+48
-36
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
#
|
||||
# functions.php version 2.8
|
||||
# functions.php version 2.10
|
||||
#
|
||||
# functions for agent scripts
|
||||
#
|
||||
@@ -20,6 +20,7 @@
|
||||
# 130802-1004 - Changed to PHP mysqli functions
|
||||
# 140429-2035 - Added TABLEper_call_notes display script variable for form display
|
||||
# 140521-1314 - Added more agent login error messages
|
||||
# 140811-2024 - Changed to use QXZ function for echoing text, for use in future translations
|
||||
#
|
||||
|
||||
# $mysql_queries = 19
|
||||
@@ -325,7 +326,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($DB) {echo "ERROR: no custom data for this lead: $lead_id\n";}
|
||||
if ($DB) {echo _QXZ("ERROR: no custom data for this lead: $lead_id\n");}
|
||||
}
|
||||
##### END grab the data from custom table for the lead_id
|
||||
|
||||
@@ -333,7 +334,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
$CFoutput .= "<input type=hidden name=stage id=stage value=\"SUBMIT\">\n";
|
||||
$CFoutput .= "<center><TABLE cellspacing=2 cellpadding=2>\n";
|
||||
if ($fields_to_print < 1)
|
||||
{$CFoutput .= "<tr bgcolor=white align=center><td colspan=4><font size=1>There are no custom fields for this list</td></tr>";}
|
||||
{$CFoutput .= "<tr bgcolor=white align=center><td colspan=4><font size=1>"._QXZ("There are no custom fields for this list")."</td></tr>";}
|
||||
|
||||
$o=0;
|
||||
$last_field_rank=0;
|
||||
@@ -341,7 +342,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
{
|
||||
$helpHTML='';
|
||||
if (strlen($A_field_help[$o])>0)
|
||||
{$helpHTML=" <a href=\"javascript:open_help('HELP_$A_field_label[$o]','$A_field_help[$o]');\">help+</a>";}
|
||||
{$helpHTML=" <a href=\"javascript:open_help('HELP_$A_field_label[$o]','$A_field_help[$o]');\">"._QXZ("help")."+</a>";}
|
||||
if ($last_field_rank=="$A_field_rank[$o]")
|
||||
{$CFoutput .= " ";}
|
||||
else
|
||||
@@ -397,7 +398,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
{
|
||||
if ($A_field_default[$o] == "$field_options_value_array[0]") {$field_selected = 'SELECTED';}
|
||||
}
|
||||
$field_HTML .= "<option value=\"$field_options_value_array[0]\" $field_selected>$field_options_value_array[1]</option>\n";
|
||||
$field_HTML .= "<option value=\"$field_options_value_array[0]\" $field_selected>"._QXZ("$field_options_value_array[1]")."</option>\n";
|
||||
}
|
||||
if ( ($A_field_type[$o]=='RADIO') or ($A_field_type[$o]=='CHECKBOX') )
|
||||
{
|
||||
@@ -412,7 +413,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
{
|
||||
if ($A_field_default[$o] == "$field_options_value_array[0]") {$field_selected = 'CHECKED';}
|
||||
}
|
||||
$field_HTML .= "<input type=$A_field_type[$o] name=$A_field_label[$o][] id=$A_field_label[$o][] value=\"$field_options_value_array[0]\" $field_selected> $field_options_value_array[1]\n";
|
||||
$field_HTML .= "<input type=$A_field_type[$o] name=$A_field_label[$o][] id=$A_field_label[$o][] value=\"$field_options_value_array[0]\" $field_selected> "._QXZ("$field_options_value_array[1]")."\n";
|
||||
if ($A_multi_position[$o]=='VERTICAL')
|
||||
{$field_HTML .= "<BR>\n";}
|
||||
}
|
||||
@@ -428,7 +429,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
{
|
||||
if ($A_field_default[$o]=='NULL') {$A_field_default[$o]='';}
|
||||
if (strlen($A_field_value[$o]) < 1) {$A_field_value[$o] = $A_field_default[$o];}
|
||||
$field_HTML .= "<input type=text size=$A_field_size[$o] maxlength=$A_field_max[$o] name=$A_field_label[$o] id=$A_field_label[$o] value=\"$A_field_value[$o]\">\n";
|
||||
$field_HTML .= "<input type=text size=$A_field_size[$o] maxlength=$A_field_max[$o] name=$A_field_label[$o] id=$A_field_label[$o] value=\""._QXZ("$A_field_value[$o]")."\">\n";
|
||||
}
|
||||
if ($A_field_type[$o]=='AREA')
|
||||
{
|
||||
@@ -439,13 +440,13 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
if ($A_field_type[$o]=='DISPLAY')
|
||||
{
|
||||
if ($A_field_default[$o]=='NULL') {$A_field_default[$o]='';}
|
||||
$field_HTML .= "$A_field_default[$o]\n";
|
||||
$field_HTML .= _QXZ("$A_field_default[$o]\n");
|
||||
}
|
||||
if ($A_field_type[$o]=='READONLY')
|
||||
{
|
||||
if ($A_field_default[$o]=='NULL') {$A_field_default[$o]='';}
|
||||
# if (strlen($A_field_value[$o]) < 1) {$A_field_value[$o] = $A_field_default[$o];}
|
||||
$field_HTML .= "<input type=hidden name=$A_field_label[$o] id=$A_field_label[$o] value=\"$A_field_value[$o]\"> $A_field_value[$o]\n";
|
||||
$field_HTML .= "<input type=hidden name=$A_field_label[$o] id=$A_field_label[$o] value=\"$A_field_value[$o]\"> "._QXZ("$A_field_value[$o]")."\n";
|
||||
}
|
||||
if ( ($A_field_type[$o]=='HIDDEN') or ($A_field_type[$o]=='HIDEBLOB') )
|
||||
{
|
||||
@@ -546,10 +547,10 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
$CFoutput .= "</td></tr></table>\n";
|
||||
}
|
||||
else
|
||||
{$CFoutput .= "ERROR: no custom list fields\n";}
|
||||
{$CFoutput .= _QXZ("ERROR: no custom list fields\n");}
|
||||
}
|
||||
else
|
||||
{$CFoutput .= "ERROR: no custom list fields table\n";}
|
||||
{$CFoutput .= _QXZ("ERROR: no custom list fields table\n");}
|
||||
|
||||
|
||||
##### BEGIN parsing for vicidial variables #####
|
||||
@@ -578,7 +579,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
if (preg_match('/--A--dialed_/i',$CFoutput))
|
||||
{
|
||||
$dialed_number = $phone_number;
|
||||
$dialed_label = 'NONE';
|
||||
$dialed_label = _QXZ("NONE");
|
||||
|
||||
### find the dialed number and label for this call
|
||||
$stmt = "SELECT phone_number,alt_dial from vicidial_log where uniqueid='$uniqueid';";
|
||||
@@ -600,19 +601,19 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
if ($hide_call_log_info!='Y')
|
||||
{
|
||||
if ($search != 'logfirst')
|
||||
{$NOTESout .= "CALL LOG FOR THIS LEAD:<br>\n";}
|
||||
{$NOTESout .= _QXZ("CALL LOG FOR THIS LEAD:")."<br>\n";}
|
||||
$NOTESout .= "<TABLE CELLPADDING=0 CELLSPACING=1 BORDER=0 WIDTH=$stage>";
|
||||
$NOTESout .= "<TR>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:10px;font-family:sans-serif;\"><B> # </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> DATE/TIME </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> AGENT </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> LENGTH </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> STATUS </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> PHONE </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> CAMPAIGN </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> IN/OUT </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> ALT </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> HANGUP </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("DATE/TIME")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("AGENT")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("LENGTH")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("STATUS")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("PHONE")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("CAMPAIGN")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("IN/OUT")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("ALT")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("HANGUP")." </font></TD>";
|
||||
# $NOTESout .= "</TR><TR>";
|
||||
# $NOTESout .= "<TD BGCOLOR=\"#CCCCCC\" COLSPAN=9><font style=\"font-size:11px;font-family:sans-serif;\"><B> FULL NAME </font></TD>";
|
||||
$NOTESout .= "</TR>";
|
||||
@@ -654,7 +655,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
$rowA=mysqli_fetch_row($rsltA);
|
||||
$Allcall_notes[$g] = $rowA[0];
|
||||
if (strlen($Allcall_notes[$g]) > 0)
|
||||
{$Allcall_notes[$g] = "<b>NOTES: </b> $Allcall_notes[$g]";}
|
||||
{$Allcall_notes[$g] = "<b>"._QXZ("NOTES:")." </b> "._QXZ("$Allcall_notes[$g]");}
|
||||
}
|
||||
$stmtA="SELECT full_name FROM vicidial_users WHERE user='$ALLuser[$g]';";
|
||||
$rsltA=mysql_to_mysqli($stmtA, $link);
|
||||
@@ -707,7 +708,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
$rowA=mysqli_fetch_row($rsltA);
|
||||
$Allcall_notes[$g] = $rowA[0];
|
||||
if (strlen($Allcall_notes[$g]) > 0)
|
||||
{$Allcall_notes[$g] = "<b>NOTES: </b> $Allcall_notes[$g]";}
|
||||
{$Allcall_notes[$g] = "<b>"._QXZ("NOTES").": </b> "._QXZ("$Allcall_notes[$g]");}
|
||||
}
|
||||
$stmtA="SELECT full_name FROM vicidial_users WHERE user='$ALLuser[$g]';";
|
||||
$rsltA=mysql_to_mysqli($stmtA, $link);
|
||||
@@ -728,7 +729,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
if ($g > 0)
|
||||
{sort($ALLsort, SORT_NUMERIC);}
|
||||
else
|
||||
{$NOTESout .= "<tr bgcolor=white><td colspan=11 align=center>No calls found</td></tr>";}
|
||||
{$NOTESout .= "<tr bgcolor=white><td colspan=11 align=center>"._QXZ("No calls found")."</td></tr>";}
|
||||
|
||||
$u=0;
|
||||
while ($g > $u)
|
||||
@@ -759,7 +760,7 @@ function custom_list_fields_values($lead_id,$list_id,$uniqueid,$user)
|
||||
$NOTESout .= "<td align=right><font size=2> $ALLhangup_reason[$i] </td>\n";
|
||||
$NOTESout .= "</TR><TR>";
|
||||
$NOTESout .= "<td></td>";
|
||||
$NOTESout .= "<TD $bgcolor COLSPAN=9 align=left><font style=\"font-size:11px;font-family:sans-serif;\"> $Allcall_notes[$i] </font></TD>";
|
||||
$NOTESout .= "<TD $bgcolor COLSPAN=9 align=left><font style=\"font-size:11px;font-family:sans-serif;\"> "._QXZ("$Allcall_notes[$i]")." </font></TD>";
|
||||
$NOTESout .= "</tr>\n";
|
||||
}
|
||||
|
||||
@@ -997,7 +998,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$
|
||||
$AC_processed=0;
|
||||
if ( (!$AC_processed) and ($dst_range == 'SSM-FSN') )
|
||||
{
|
||||
if ($DBX) {print " Second Sunday March to First Sunday November\n";}
|
||||
if ($DBX) {print " "._QXZ("Second Sunday March to First Sunday November")."\n";}
|
||||
#**********************************************************************
|
||||
# SSM-FSN
|
||||
# This is returns 1 if Daylight Savings Time is in effect and 0 if
|
||||
@@ -1093,7 +1094,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$
|
||||
|
||||
if ( (!$AC_processed) and ($dst_range == 'FSA-LSO') )
|
||||
{
|
||||
if ($DBX) {print " First Sunday April to Last Sunday October\n";}
|
||||
if ($DBX) {print " "._QXZ("First Sunday April to Last Sunday October")."\n";}
|
||||
#**********************************************************************
|
||||
# FSA-LSO
|
||||
# This is returns 1 if Daylight Savings Time is in effect and 0 if
|
||||
@@ -1162,7 +1163,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$
|
||||
|
||||
if ( (!$AC_processed) and ($dst_range == 'LSM-LSO') )
|
||||
{
|
||||
if ($DBX) {print " Last Sunday March to Last Sunday October\n";}
|
||||
if ($DBX) {print " "._QXZ("Last Sunday March to Last Sunday October")."\n";}
|
||||
#**********************************************************************
|
||||
# This is s 1 if Daylight Savings Time is in effect and 0 if
|
||||
# Standard time is in effect.
|
||||
@@ -1230,7 +1231,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$
|
||||
}
|
||||
if ( (!$AC_processed) and ($dst_range == 'LSO-LSM') )
|
||||
{
|
||||
if ($DBX) {print " Last Sunday October to Last Sunday March\n";}
|
||||
if ($DBX) {print " "._QXZ("Last Sunday October to Last Sunday March")."\n";}
|
||||
#**********************************************************************
|
||||
# This is s 1 if Daylight Savings Time is in effect and 0 if
|
||||
# Standard time is in effect.
|
||||
@@ -1299,7 +1300,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$
|
||||
|
||||
if ( (!$AC_processed) and ($dst_range == 'FSO-LSM') )
|
||||
{
|
||||
if ($DBX) {print " First Sunday October to Last Sunday March\n";}
|
||||
if ($DBX) {print " "._QXZ("First Sunday October to Last Sunday March")."\n";}
|
||||
#**********************************************************************
|
||||
# TASMANIA ONLY
|
||||
# This is s 1 if Daylight Savings Time is in effect and 0 if
|
||||
@@ -1367,7 +1368,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$
|
||||
|
||||
if ( (!$AC_processed) and ($dst_range == 'FSO-FSA') )
|
||||
{
|
||||
if ($DBX) {print " Sunday in October to First Sunday in April\n";}
|
||||
if ($DBX) {print " "._QXZ("Sunday in October to First Sunday in April")."\n";}
|
||||
#**********************************************************************
|
||||
# FSO-FSA
|
||||
# 2008+ AUSTRALIA ONLY (country code 61)
|
||||
@@ -1434,7 +1435,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$
|
||||
|
||||
if ( (!$AC_processed) and ($dst_range == 'FSO-TSM') )
|
||||
{
|
||||
if ($DBX) {print " First Sunday October to Third Sunday March\n";}
|
||||
if ($DBX) {print " "._QXZ("First Sunday October to Third Sunday March")."\n";}
|
||||
#**********************************************************************
|
||||
# This is s 1 if Daylight Savings Time is in effect and 0 if
|
||||
# Standard time is in effect.
|
||||
@@ -1501,7 +1502,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$
|
||||
|
||||
if ( (!$AC_processed) and ($dst_range == 'LSS-FSA') )
|
||||
{
|
||||
if ($DBX) {print " Last Sunday in September to First Sunday in April\n";}
|
||||
if ($DBX) {print " "._QXZ("Last Sunday in September to First Sunday in April")."\n";}
|
||||
#**********************************************************************
|
||||
# LSS-FSA
|
||||
# 2007+ NEW ZEALAND (country code 64)
|
||||
@@ -1570,7 +1571,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$
|
||||
|
||||
if ( (!$AC_processed) and ($dst_range == 'TSO-LSF') )
|
||||
{
|
||||
if ($DBX) {print " Third Sunday October to Last Sunday February\n";}
|
||||
if ($DBX) {print " "._QXZ("Third Sunday October to Last Sunday February")."\n";}
|
||||
#**********************************************************************
|
||||
# TSO-LSF
|
||||
# This is returns 1 if Daylight Savings Time is in effect and 0 if
|
||||
@@ -1640,7 +1641,7 @@ function lookup_gmt($phone_code,$USarea,$state,$LOCAL_GMT_OFF_STD,$Shour,$Smin,$
|
||||
|
||||
if (!$AC_processed)
|
||||
{
|
||||
if ($DBX) {print " No DST Method Found\n";}
|
||||
if ($DBX) {print " "._QXZ("No DST Method Found")."\n";}
|
||||
if ($DBX) {print " DST: 0\n";}
|
||||
$AC_processed++;
|
||||
}
|
||||
@@ -1813,4 +1814,15 @@ function mysql_to_mysqli($stmt, $link) {
|
||||
return $rslt;
|
||||
}
|
||||
|
||||
|
||||
function _QXZ($English_text)
|
||||
{
|
||||
# $English_text = str_repeat('*', strlen($English_text));
|
||||
# $fp = fopen ("./QXZdebug.txt", "a");
|
||||
# fwrite ($fp, "|$English_text\n");
|
||||
# fclose($fp);
|
||||
|
||||
return $English_text;
|
||||
}
|
||||
|
||||
?>
|
||||
+15
-14
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# inbound_popup.php version 2.8
|
||||
# inbound_popup.php version 2.10
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# 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
|
||||
@@ -34,6 +34,7 @@
|
||||
# 130328-0025 - Converted ereg to preg functions
|
||||
# 130603-2215 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130802-1008 - Changed to PHP mysqli functions
|
||||
# 140811-0843 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
@@ -91,14 +92,14 @@ if ($auth_message == 'GOOD')
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -110,7 +111,7 @@ else
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Invalid session_name: |$session_name|$server_ip|\n";
|
||||
echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -255,11 +256,11 @@ echo "<!-- VERSION: $version BUILD: $build UNIQUEID: $uniqueid server_i
|
||||
</script>
|
||||
|
||||
<?php
|
||||
echo "<title>LIVE INBOUND CALL";
|
||||
echo "<title>"._QXZ("LIVE INBOUND CALL");
|
||||
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>LIVE INBOUND CALL</H2>\n";
|
||||
echo "<CENTER><H2>"._QXZ("LIVE INBOUND CALL")."</H2>\n";
|
||||
echo "<B>$NOW_TIME</B><BR><BR>\n";
|
||||
}
|
||||
|
||||
@@ -270,7 +271,7 @@ $channel_live=1;
|
||||
if (strlen($uniqueid)<9)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Uniqueid $uniqueid is not valid\n";
|
||||
echo QXZ("Uniqueid $uniqueid is not valid\n");
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -286,8 +287,8 @@ else
|
||||
# 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>Channel: </td><td align=left>$row[1]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>CallerID: </td><td align=left>$row[3]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>"._QXZ("Channel").": </td><td align=left>$row[1]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>"._QXZ("CallerID").": </td><td align=left>$row[3]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td colspan=2 align=center>\n";
|
||||
|
||||
$phone = preg_replace("/.*\</i","",$row[3]);
|
||||
@@ -323,11 +324,11 @@ else
|
||||
echo "<a href=\"$local_web_callerID_URL$local_web_callerID_QUERY_STRING\" target=\"_blank\">CUSTOM</a> - \n";
|
||||
|
||||
echo "</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>Number Dialed: </td><td align=left>$row[8]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>Notes: </td><td align=left>$row[9]|$row[10]|$row[11]|$row[12]|$row[13]|</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>"._QXZ("Number Dialed:")." </td><td align=left>$row[8]</td></tr>\n";
|
||||
echo "<tr bgcolor=\"#DDDDFF\"><td>"._QXZ("Notes:")." </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;\">HANGUP</a> - \n";
|
||||
echo "<a href=\"#\" onclick=\"liveredirect_send_vmail('$row[1]','$vmail_box');return false;\">SEND TO MY VOICEMAIL</a>\n";
|
||||
echo "<a href=\"#\" onclick=\"livehangup_send_hangup('$row[1]');return false;\">"._QXZ("HANGUP")."</a> - \n";
|
||||
echo "<a href=\"#\" onclick=\"liveredirect_send_vmail('$row[1]','$vmail_box');return false;\">"._QXZ("SEND TO MY VOICEMAIL")."</a>\n";
|
||||
echo "</span></td></tr>\n";
|
||||
echo "</table>\n";
|
||||
|
||||
|
||||
+5
-4
@@ -1,18 +1,19 @@
|
||||
<?php
|
||||
# launch.php - launches vicidial.php in restricted window
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# For launch validation to work, the options.php file must have
|
||||
# window_validation = 1 and win_valid_name set to window_name below
|
||||
#
|
||||
# CHANGELOG
|
||||
# 130903-2055 - First Build
|
||||
# 140811-0800 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
$window_name = 'subwindow_launch';
|
||||
|
||||
|
||||
require_once("functions.php");
|
||||
|
||||
### do not edit below this line ###
|
||||
|
||||
@@ -104,7 +105,7 @@ if (strlen($static_agent_url) > 5)
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Agent Screen Opener</title>
|
||||
<title><?php echo _QXZ("Agent Screen Opener"); ?></title>
|
||||
<script type="text/javascript">
|
||||
|
||||
<!--
|
||||
@@ -141,7 +142,7 @@ function browser_dimensions()
|
||||
</script>
|
||||
</head>
|
||||
<body bgcolor=white onload="browser_dimensions();">
|
||||
Agent Screen Opener
|
||||
<?php echo _QXZ("Agent Screen Opener"); ?>
|
||||
<span id=dimensions></span>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# live_exten_check.php version 2.8
|
||||
# live_exten_check.php version 2.10
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# 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
|
||||
@@ -34,6 +34,7 @@
|
||||
# 130603-2214 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130705-1522 - Added optional encrypted passwords compatibility
|
||||
# 130802-1009 - Changed to PHP mysqli functions
|
||||
# 140811-0841 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
@@ -81,14 +82,14 @@ if ($auth_message == 'GOOD')
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -100,7 +101,7 @@ else
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Invalid session_name: |$session_name|$server_ip|\n";
|
||||
echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -115,7 +116,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 Extension Check";
|
||||
echo "<title>"._QXZ("Live Extension Check");
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
@@ -137,7 +138,7 @@ $channel_live=1;
|
||||
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Exten $exten is not valid or protocol $protocol is not valid\n";
|
||||
echo _QXZ("Exten $exten is not valid or protocol $protocol is not valid\n");
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -169,10 +170,10 @@ while($loop_count > $counter)
|
||||
if ($trunk_count>0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
echo "Conversation: $counter ~";
|
||||
echo "ChannelA: $ChanneLA[$counter] ~";
|
||||
echo "ChannelB: $ChanneLB[$counter] ~";
|
||||
echo "ChannelBtrunk: $row[0]|";
|
||||
echo _QXZ("Conversation: $counter ~");
|
||||
echo _QXZ("ChannelA: $ChanneLA[$counter] ~");
|
||||
echo _QXZ("ChannelB: $ChanneLB[$counter] ~");
|
||||
echo _QXZ("ChannelBtrunk: $row[0]|");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -183,10 +184,10 @@ while($loop_count > $counter)
|
||||
if ($trunk_count>0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
echo "Conversation: $counter ~";
|
||||
echo "ChannelA: $ChanneLA[$counter] ~";
|
||||
echo "ChannelB: $ChanneLB[$counter] ~";
|
||||
echo "ChannelBtrunk: $row[0]|";
|
||||
echo _QXZ("Conversation: $counter ~");
|
||||
echo _QXZ("ChannelA: $ChanneLA[$counter] ~");
|
||||
echo _QXZ("ChannelB: $ChanneLB[$counter] ~");
|
||||
echo _QXZ("ChannelBtrunk: $row[0]|");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -197,10 +198,10 @@ while($loop_count > $counter)
|
||||
if ($trunk_count>0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
echo "Conversation: $counter ~";
|
||||
echo "ChannelA: $ChanneLA[$counter] ~";
|
||||
echo "ChannelB: $ChanneLB[$counter] ~";
|
||||
echo "ChannelBtrunk: $row[0]|";
|
||||
echo _QXZ("Conversation: $counter ~");
|
||||
echo _QXZ("ChannelA: $ChanneLA[$counter] ~");
|
||||
echo _QXZ("ChannelB: $ChanneLB[$counter] ~");
|
||||
echo _QXZ("ChannelBtrunk: $row[0]|");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -211,17 +212,17 @@ while($loop_count > $counter)
|
||||
if ($trunk_count>0)
|
||||
{
|
||||
$row=mysqli_fetch_row($rslt);
|
||||
echo "Conversation: $counter ~";
|
||||
echo "ChannelA: $ChanneLA[$counter] ~";
|
||||
echo "ChannelB: $ChanneLB[$counter] ~";
|
||||
echo "ChannelBtrunk: $row[0]|";
|
||||
echo _QXZ("Conversation: $counter ~");
|
||||
echo _QXZ("ChannelA: $ChanneLA[$counter] ~");
|
||||
echo _QXZ("ChannelB: $ChanneLB[$counter] ~");
|
||||
echo _QXZ("ChannelBtrunk: $row[0]|");
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "Conversation: $counter ~";
|
||||
echo "ChannelA: $ChanneLA[$counter] ~";
|
||||
echo "ChannelB: $ChanneLB[$counter] ~";
|
||||
echo "ChannelBtrunk: $ChanneLA[$counter]|";
|
||||
echo _QXZ("Conversation: $counter ~");
|
||||
echo _QXZ("ChannelA: $ChanneLA[$counter] ~");
|
||||
echo _QXZ("ChannelB: $ChanneLB[$counter] ~");
|
||||
echo _QXZ("ChannelBtrunk: $ChanneLA[$counter]|");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+140
-139
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
# manager_send.php version 2.8
|
||||
# manager_send.php version 2.10
|
||||
#
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
@@ -119,10 +119,11 @@
|
||||
# 130802-1021 - Changed to PHP mysqli functions
|
||||
# 130926-1755 - Added queuemetrics_record_hold option
|
||||
# 140215-2057 - Added several variable options for QM socket URL
|
||||
# 140810-2125 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
$version = '2.8-66';
|
||||
$build = '140215-2057';
|
||||
$version = '2.10-67';
|
||||
$build = '140810-2125';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=128;
|
||||
$one_mysql_log=0;
|
||||
@@ -276,14 +277,14 @@ if ($auth_message == 'GOOD')
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -296,7 +297,7 @@ else
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Invalid session_name: |$session_name|$server_ip|\n";
|
||||
echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -311,13 +312,13 @@ if ($format=='debug')
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build ACTION: $ACTION server_ip: $server_ip-->\n";
|
||||
echo "<title>Manager Send: ";
|
||||
if ($ACTION=="Originate") {echo "Originate";}
|
||||
if ($ACTION=="Redirect") {echo "Redirect";}
|
||||
if ($ACTION=="RedirectName") {echo "RedirectName";}
|
||||
if ($ACTION=="Hangup") {echo "Hangup";}
|
||||
if ($ACTION=="Command") {echo "Command";}
|
||||
if ($ACTION==99999) {echo "HELP";}
|
||||
echo "<title>"._QXZ("Manager Send: ");
|
||||
if ($ACTION=="Originate") {echo _QXZ("Originate");}
|
||||
if ($ACTION=="Redirect") {echo _QXZ("Redirect");}
|
||||
if ($ACTION=="RedirectName") {echo _QXZ("RedirectName");}
|
||||
if ($ACTION=="Hangup") {echo _QXZ("Hangup");}
|
||||
if ($ACTION=="Command") {echo _QXZ("Command");}
|
||||
if ($ACTION==99999) {echo _QXZ("HELP");}
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
@@ -348,7 +349,7 @@ if ($ACTION=="SysCIDOriginate")
|
||||
{
|
||||
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($ext_context)<1) or (strlen($queryCID)<1) )
|
||||
{
|
||||
echo "Exten $exten is not valid or queryCID $queryCID is not valid, Originate command not inserted\n";
|
||||
echo _QXZ("Exten $exten is not valid or queryCID $queryCID is not valid, Originate command not inserted\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -356,7 +357,7 @@ if ($ACTION=="SysCIDOriginate")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02004',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
echo "Originate command sent for Exten $exten Channel $channel on $server_ip\n";
|
||||
echo _QXZ("Originate command sent for Exten $exten Channel $channel on $server_ip\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -370,13 +371,13 @@ if ($ACTION=="OriginateName")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "extenName $extenName must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "\nOriginateName Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("extenName $extenName must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("\nOriginateName Action not sent\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -399,14 +400,14 @@ if ($ACTION=="OriginateNameVmail")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "extenName $extenName must be set\n";
|
||||
echo "exten $exten must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "\nOriginateNameVmail Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("extenName $extenName must be set\n");
|
||||
echo _QXZ("exten $exten must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("\nOriginateNameVmail Action not sent\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -446,13 +447,13 @@ if ($ACTION=="Originate")
|
||||
{
|
||||
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($ext_context)<1) or ( (strlen($queryCID)<10) and ($alertCID < 1) ) )
|
||||
{
|
||||
echo "ERROR Exten $exten is not valid or queryCID $queryCID is not valid, Originate command not inserted\n";
|
||||
echo _QXZ("ERROR Exten $exten is not valid or queryCID $queryCID is not valid, Originate command not inserted\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( (preg_match('/MANUAL/i',$agent_dialed_type)) and ( (preg_match("/^\d860\d\d\d\d$/i",$exten)) or (preg_match("/^860\d\d\d\d$/i",$exten)) ) )
|
||||
{
|
||||
echo "ERROR You are not allowed to dial into other agent sessions $exten\n";
|
||||
echo _QXZ("ERROR You are not allowed to dial into other agent sessions $exten\n");
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -474,7 +475,7 @@ if ($ACTION=="Originate")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02007',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
echo "Originate command sent for Exten $exten Channel $channel on $server_ip |$account|$variable|\n";
|
||||
echo _QXZ("Originate command sent for Exten $exten Channel $channel on $server_ip |$account|$variable|\n");
|
||||
|
||||
### log outbound call in the dial log
|
||||
$stmt = "INSERT INTO vicidial_dial_log SET caller_code='$queryCID',lead_id='$lead_id',server_ip='$server_ip',call_date='$NOW_TIME',extension='$exten',channel='$channel',timeout='0',outbound_cid='$outCID',context='$ext_context';";
|
||||
@@ -528,7 +529,7 @@ if ($ACTION=="HangupConfDial")
|
||||
if ( (strlen($exten)<3) or (strlen($queryCID)<15) or (strlen($ext_context)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "conference $exten is not valid or ext_context $ext_context or queryCID $queryCID is not valid, Hangup command not inserted\n";
|
||||
echo _QXZ("conference $exten is not valid or ext_context $ext_context or queryCID $queryCID is not valid, Hangup command not inserted\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -572,7 +573,7 @@ if ($ACTION=="Hangup")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Channel $channel is not valid or queryCID $queryCID is not valid, Hangup command not inserted\n";
|
||||
echo _QXZ("Channel $channel is not valid or queryCID $queryCID is not valid, Hangup command not inserted\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -603,7 +604,7 @@ if ($ACTION=="Hangup")
|
||||
$rowx=mysqli_fetch_row($rslt);
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
echo "Call $CalLCID $channel is not live on $call_server_ip, Checking Live Channel...\n";
|
||||
echo _QXZ("Call $CalLCID $channel is not live on $call_server_ip, Checking Live Channel...\n");
|
||||
|
||||
$stmt="SELECT count(*) FROM live_channels where server_ip = '$call_server_ip' and channel='$channel' and extension LIKE \"%$exten\";";
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
@@ -613,7 +614,7 @@ if ($ACTION=="Hangup")
|
||||
if ($row[0]==0)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Channel $channel is not live on $call_server_ip, Hangup command not inserted $rowx[0]\n$stmt\n";
|
||||
echo _QXZ("Channel $channel is not live on $call_server_ip, Hangup command not inserted $rowx[0]\n$stmt\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -631,7 +632,7 @@ if ($ACTION=="Hangup")
|
||||
if ($row[0] > 0)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Channel $channel in use by another agent on $call_server_ip, Hangup command not inserted $rowx[0]\n$stmt\n";
|
||||
echo _QXZ("Channel $channel in use by another agent on $call_server_ip, Hangup command not inserted $rowx[0]\n$stmt\n");
|
||||
if ($WeBRooTWritablE > 0)
|
||||
{
|
||||
$fp = fopen ("./vicidial_debug.txt", "a");
|
||||
@@ -828,7 +829,7 @@ if ($ACTION=="Hangup")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02020',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
echo "Hangup command sent for Channel $channel on $call_server_ip\n";
|
||||
echo _QXZ("Hangup command sent for Channel $channel on $call_server_ip\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -844,17 +845,17 @@ if ($ACTION=="RedirectVD")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($campaign)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) or (strlen($uniqueid)<2) or (strlen($lead_id)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "exten $exten must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "auto_dial_level $auto_dial_level must be set\n";
|
||||
echo "campaign $campaign must be set\n";
|
||||
echo "uniqueid $uniqueid must be set\n";
|
||||
echo "lead_id $lead_id must be set\n";
|
||||
echo "\nRedirectVD Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("exten $exten must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("auto_dial_level $auto_dial_level must be set\n");
|
||||
echo _QXZ("campaign $campaign must be set\n");
|
||||
echo _QXZ("uniqueid $uniqueid must be set\n");
|
||||
echo _QXZ("lead_id $lead_id must be set\n");
|
||||
echo _QXZ("\nRedirectVD Action not sent\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -920,15 +921,15 @@ if ($ACTION=="RedirectToPark")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($extenName)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) or (strlen($parkedby)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "exten $exten must be set\n";
|
||||
echo "extenName $extenName must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "parkedby $parkedby must be set\n";
|
||||
echo "\nRedirectToPark Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("exten $exten must be set\n");
|
||||
echo _QXZ("extenName $extenName must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("parkedby $parkedby must be set\n");
|
||||
echo _QXZ("\nRedirectToPark Action not sent\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1026,13 +1027,13 @@ if ($ACTION=="RedirectFromPark")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "exten $exten must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "\nRedirectFromPark Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("exten $exten must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("\nRedirectFromPark Action not sent\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1155,15 +1156,15 @@ if ($ACTION=="RedirectToParkIVR")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($extenName)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) or (strlen($parkedby)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "exten $exten must be set\n";
|
||||
echo "extenName $extenName must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "parkedby $parkedby must be set\n";
|
||||
echo "\nRedirectToPark Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("exten $exten must be set\n");
|
||||
echo _QXZ("extenName $extenName must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("parkedby $parkedby must be set\n");
|
||||
echo _QXZ("\nRedirectToPark Action not sent\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1265,13 +1266,13 @@ if ($ACTION=="RedirectFromParkIVR")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "exten $exten must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "\nRedirectFromPark Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("exten $exten must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("\nRedirectFromPark Action not sent\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1400,13 +1401,13 @@ if ($ACTION=="RedirectName")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "extenName $extenName must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "\nRedirectName Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("extenName $extenName must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("\nRedirectName Action not sent\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1429,14 +1430,14 @@ if ($ACTION=="RedirectNameVmail")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($extenName)<1) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "extenName $extenName must be set\n";
|
||||
echo "exten $exten must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "\nRedirectNameVmail Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("extenName $extenName must be set\n");
|
||||
echo _QXZ("exten $exten must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("\nRedirectNameVmail Action not sent\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1469,14 +1470,14 @@ if ($ACTION=="RedirectXtraCXNeW")
|
||||
{
|
||||
$channel_liveX=0;
|
||||
$channel_liveY=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "ExtraChannel $extrachannel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "exten $exten must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "\nRedirect Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("ExtraChannel $extrachannel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("exten $exten must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("\nRedirect Action not sent\n");
|
||||
if (preg_match("/SECOND|FIRST|DEBUG/",$filename))
|
||||
{
|
||||
if ($WeBRooTWritablE > 0)
|
||||
@@ -1556,7 +1557,7 @@ if ($ACTION=="RedirectXtraCXNeW")
|
||||
else
|
||||
{
|
||||
$channel_liveX=0;
|
||||
echo "Cannot find empty vicidial_conference on $server_ip, Redirect command not inserted\n|$stmt|";
|
||||
echo _QXZ("Cannot find empty vicidial_conference on $server_ip, Redirect command not inserted\n|$stmt|");
|
||||
if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "Cannot find empty conference on $server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -1578,7 +1579,7 @@ if ($ACTION=="RedirectXtraCXNeW")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveX=0;
|
||||
echo "Channel $channel is not live on $call_server_ip, Redirect command not inserted\n";
|
||||
echo _QXZ("Channel $channel is not live on $call_server_ip, Redirect command not inserted\n");
|
||||
if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel is not live on $call_server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -1597,7 +1598,7 @@ if ($ACTION=="RedirectXtraCXNeW")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveY=0;
|
||||
echo "Channel $channel is not live on $server_ip, Redirect command not inserted\n";
|
||||
echo _QXZ("Channel $channel is not live on $server_ip, Redirect command not inserted\n");
|
||||
if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel is not live on $server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -1611,7 +1612,7 @@ if ($ACTION=="RedirectXtraCXNeW")
|
||||
if ($rowx[0] < 1)
|
||||
{
|
||||
$channel_liveY=0;
|
||||
echo "No Local agent to send call to, Redirect command not inserted\n";
|
||||
echo _QXZ("No Local agent to send call to, Redirect command not inserted\n");
|
||||
if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "No Local agent to send call to";}
|
||||
}
|
||||
else
|
||||
@@ -1647,7 +1648,7 @@ if ($ACTION=="RedirectXtraCXNeW")
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02044',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
|
||||
echo "RedirectXtraCX command sent for Channel $channel on $call_server_ip and \nHungup $extrachannel on $server_ip\n";
|
||||
echo _QXZ("RedirectXtraCX command sent for Channel $channel on $call_server_ip and \nHungup $extrachannel on $server_ip\n");
|
||||
if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel on $call_server_ip, Hungup $extrachannel on $server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -1694,15 +1695,15 @@ if ($ACTION=="RedirectXtraNeW")
|
||||
{
|
||||
$channel_liveX=0;
|
||||
$channel_liveY=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "ExtraChannel $extrachannel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "exten $exten must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "session_id $session_id must be set\n";
|
||||
echo "\nRedirect Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("ExtraChannel $extrachannel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("exten $exten must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("session_id $session_id must be set\n");
|
||||
echo _QXZ("\nRedirect Action not sent\n");
|
||||
if (preg_match("/SECOND|FIRST|DEBUG/",$filename))
|
||||
{
|
||||
if ($WeBRooTWritablE > 0)
|
||||
@@ -1795,7 +1796,7 @@ if ($ACTION=="RedirectXtraNeW")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveX=0;
|
||||
echo "Channel $channel is not live on $call_server_ip, Redirect command not inserted\n";
|
||||
echo _QXZ("Channel $channel is not live on $call_server_ip, Redirect command not inserted\n");
|
||||
if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel is not live on $call_server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -1814,7 +1815,7 @@ if ($ACTION=="RedirectXtraNeW")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_liveY=0;
|
||||
echo "Channel $channel is not live on $server_ip, Redirect command not inserted\n";
|
||||
echo _QXZ("Channel $channel is not live on $server_ip, Redirect command not inserted\n");
|
||||
if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel is not live on $server_ip";}
|
||||
}
|
||||
}
|
||||
@@ -1827,7 +1828,7 @@ if ($ACTION=="RedirectXtraNeW")
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02057',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
|
||||
echo "RedirectXtra command sent for Channel $channel and \nExtraChannel $extrachannel\n to $exten on $server_ip\n";
|
||||
echo _QXZ("RedirectXtra command sent for Channel $channel and \nExtraChannel $extrachannel\n to $exten on $server_ip\n");
|
||||
if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel and $extrachannel to $exten on $server_ip";}
|
||||
}
|
||||
else
|
||||
@@ -1854,7 +1855,7 @@ if ($ACTION=="RedirectXtraNeW")
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02059',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
|
||||
echo "RedirectXtra command sent for Channel $channel on $call_server_ip and \nExtraChannel $extrachannel\n to $exten on $server_ip\n";
|
||||
echo _QXZ("RedirectXtra command sent for Channel $channel on $call_server_ip and \nExtraChannel $extrachannel\n to $exten on $server_ip\n");
|
||||
if (preg_match("/SECOND|FIRST|DEBUG/",$filename)) {$DBout .= "$channel/$call_server_ip and $extrachannel/$server_ip to $exten";}
|
||||
}
|
||||
}
|
||||
@@ -1915,13 +1916,13 @@ if ($ACTION=="Redirect")
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($exten)<1) or (strlen($ext_context)<1) or (strlen($ext_priority)<1) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "One of these variables is not valid:\n";
|
||||
echo "Channel $channel must be greater than 2 characters\n";
|
||||
echo "queryCID $queryCID must be greater than 14 characters\n";
|
||||
echo "exten $exten must be set\n";
|
||||
echo "ext_context $ext_context must be set\n";
|
||||
echo "ext_priority $ext_priority must be set\n";
|
||||
echo "\nRedirect Action not sent\n";
|
||||
echo _QXZ("One of these variables is not valid:\n");
|
||||
echo _QXZ("Channel $channel must be greater than 2 characters\n");
|
||||
echo _QXZ("queryCID $queryCID must be greater than 14 characters\n");
|
||||
echo _QXZ("exten $exten must be set\n");
|
||||
echo _QXZ("ext_context $ext_context must be set\n");
|
||||
echo _QXZ("ext_priority $ext_priority must be set\n");
|
||||
echo _QXZ("\nRedirect Action not sent\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1941,7 +1942,7 @@ if ($ACTION=="Redirect")
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Channel $channel is not live on $server_ip, Redirect command not inserted\n";
|
||||
echo _QXZ("Channel $channel is not live on $server_ip, Redirect command not inserted\n");
|
||||
}
|
||||
}
|
||||
if ($channel_live==1)
|
||||
@@ -1951,7 +1952,7 @@ if ($ACTION=="Redirect")
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02064',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
|
||||
echo "Redirect command sent for Channel $channel on $server_ip\n";
|
||||
echo _QXZ("Redirect command sent for Channel $channel on $server_ip\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1973,7 +1974,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
|
||||
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($filename)<8) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Channel $channel is not valid or queryCID $queryCID is not valid or filename: $filename is not valid, $ACTION command not inserted\n";
|
||||
echo _QXZ("Channel $channel is not valid or queryCID $queryCID is not valid or filename: $filename is not valid, $ACTION command not inserted\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1992,7 +1993,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
|
||||
if ($rowx[0]==0)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Channel $channel is not live on $server_ip, $ACTION command not inserted\n";
|
||||
echo _QXZ("Channel $channel is not live on $server_ip, $ACTION command not inserted\n");
|
||||
}
|
||||
}
|
||||
if ($channel_live==1)
|
||||
@@ -2038,7 +2039,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02071',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
}
|
||||
}
|
||||
echo "$ACTION command sent for Channel $channel on $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n";
|
||||
echo _QXZ("$ACTION command sent for Channel $channel on $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2060,7 +2061,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
|
||||
if ( (strlen($exten)<3) or (strlen($channel)<4) or (strlen($filename)<8) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Channel $channel is not valid or exten $exten is not valid or filename: $filename is not valid, $ACTION command not inserted\n";
|
||||
echo _QXZ("Channel $channel is not valid or exten $exten is not valid or filename: $filename is not valid, $ACTION command not inserted\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2209,7 +2210,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
echo "$ACTION command sent for Channel $channel on $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n RECORDING WILL LAST UP TO 60 MINUTES\n";
|
||||
echo _QXZ("$ACTION command sent for Channel $channel on $server_ip\nFilename: $filename\nRecorDing_ID: $recording_id\n RECORDING WILL LAST UP TO 60 MINUTES\n");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2224,7 +2225,7 @@ if ($ACTION=="VolumeControl")
|
||||
{
|
||||
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($stage)<1) or (strlen($queryCID)<1) )
|
||||
{
|
||||
echo "Conference $exten, Stage $stage is not valid or queryCID $queryCID is not valid, Originate command not inserted\n";
|
||||
echo _QXZ("Conference $exten, Stage $stage is not valid or queryCID $queryCID is not valid, Originate command not inserted\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2241,7 +2242,7 @@ if ($ACTION=="VolumeControl")
|
||||
if ($format=='debug') {echo "\n<!-- $stmt -->";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'02082',$user,$server_ip,$session_name,$one_mysql_log);}
|
||||
echo "Volume command sent for Conference $exten, Stage $stage Channel $channel on $server_ip\n";
|
||||
echo _QXZ("Volume command sent for Conference $exten, Stage $stage Channel $channel on $server_ip\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# park_calls_display.php version 2.8
|
||||
# park_calls_display.php version 2.10
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# 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
|
||||
@@ -26,6 +26,7 @@
|
||||
# 130328-0024 - Converted ereg to preg functions
|
||||
# 130603-2213 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130802-1024 - Changed to PHP mysqli functions
|
||||
# 140811-0839 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
@@ -70,14 +71,14 @@ if ($auth_message == 'GOOD')
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -89,7 +90,7 @@ else
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Invalid session_name: |$session_name|$server_ip|\n";
|
||||
echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -104,7 +105,7 @@ if ($format=='debug')
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build EXTEN: $exten server_ip: $server_ip-->\n";
|
||||
echo "<title>Parked Calls Display";
|
||||
echo "<title>"._QXZ("Parked Calls Display");
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
@@ -116,7 +117,7 @@ $channel_live=1;
|
||||
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "Exten $exten is not valid or protocol $protocol is not valid\n";
|
||||
echo _QXZ("Exten $exten is not valid or protocol $protocol is not valid\n");
|
||||
exit;
|
||||
}
|
||||
else
|
||||
|
||||
+44
-43
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# phone_only.php - the web-based web-phone-only client application
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGELOG
|
||||
# 110511-1336 - First Build
|
||||
@@ -12,10 +12,11 @@
|
||||
# 130603-2212 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130718-0946 - Fixed login bug
|
||||
# 130802-1139 - Changed to PHP mysqli functions
|
||||
# 140810-2113 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
$version = '2.8-8p';
|
||||
$build = '130802-1139';
|
||||
$version = '2.10-9p';
|
||||
$build = '140810-2113';
|
||||
$mel=1; # Mysql Error Log enabled = 1
|
||||
$mysql_log_count=73;
|
||||
$one_mysql_log=0;
|
||||
@@ -63,7 +64,7 @@ $forever_stop=0;
|
||||
|
||||
if ($force_logout)
|
||||
{
|
||||
echo "You have now logged out. Thank you\n";
|
||||
echo _QXZ("You have now logged out. Thank you\n");
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -185,31 +186,31 @@ $VU_user_group=$row[0];
|
||||
|
||||
if ($relogin == 'YES')
|
||||
{
|
||||
echo "<title>Phone web client: Login</title>\n";
|
||||
echo "<title>"._QXZ("Phone web client: Login")."</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<body bgcolor=\"white\">\n";
|
||||
if ($hide_timeclock_link < 1)
|
||||
{echo "<a href=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> Timeclock</a><br />\n";}
|
||||
{echo "<a href=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> "._QXZ("Timeclock")."</a><br />\n";}
|
||||
echo "<table width=\"100%\"><tr><td></td>\n";
|
||||
echo "<!-- INTERNATIONALIZATION-LINKS-PLACEHOLDER-VICIDIAL -->\n";
|
||||
echo "</tr></table>\n";
|
||||
echo "<form name=\"vicidial_form\" id=\"vicidial_form\" action=\"$agcPAGE\" method=\"post\">\n";
|
||||
echo "<input type=\"hidden\" name=\"DB\" id=\"DB\" value=\"$DB\" />\n";
|
||||
echo "<br /><br /><br /><center><table width=\"460px\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"$MAIN_COLOR\"><tr bgcolor=\"white\">";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/vdc_tab_vicidial.gif\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"center\" valign=\"middle\"> Phone-Only Login </td>";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/"._QXZ("vdc_tab_vicidial.gif")."\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"center\" valign=\"middle\"> "._QXZ("Phone-Only Login")." </td>";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"> </font></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">Phone Login: </td>";
|
||||
echo "<tr><td align=\"right\">"._QXZ("Phone Login:")." </td>";
|
||||
echo "<td align=\"left\"><input type=\"text\" name=\"phone_login\" size=\"10\" maxlength=\"20\" value=\"$phone_login\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">Phone Password: </td>";
|
||||
echo "<tr><td align=\"right\">"._QXZ("Phone Password:")." </td>";
|
||||
echo "<td align=\"left\"><input type=\"password\" name=\"phone_pass\" size=\"10\" maxlength=\"20\" value=\"$phone_pass\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">User Login: </td>";
|
||||
echo "<tr><td align=\"right\">"._QXZ("User Login:")." </td>";
|
||||
echo "<td align=\"left\"><input type=\"text\" name=\"VD_login\" size=\"10\" maxlength=\"20\" value=\"$VD_login\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">User Password: </td>";
|
||||
echo "<tr><td align=\"right\">"._QXZ("User Password:")." </td>";
|
||||
echo "<td align=\"left\"><input type=\"password\" name=\"VD_pass\" size=\"10\" maxlength=\"20\" value=\"$VD_pass\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\"Submit\" /> \n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />VERSION: $version BUILD: $build</font></td></tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\""._QXZ("Submit")."\" /> \n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</font></td></tr>\n";
|
||||
echo "</table></center>\n";
|
||||
echo "</form>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -222,27 +223,27 @@ if ($user_login_first == 1)
|
||||
{
|
||||
if ( (strlen($VD_login)<1) or (strlen($VD_pass)<1) )
|
||||
{
|
||||
echo "<title>Phone web client: Login</title>\n";
|
||||
echo "<title>"._QXZ("Phone web client: Login")."</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<body bgcolor=\"white\">\n";
|
||||
if ($hide_timeclock_link < 1)
|
||||
{echo "<a href=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> Timeclock</a><br />\n";}
|
||||
{echo "<a href=\"./timeclock.php?referrer=agent&pl=$phone_login&pp=$phone_pass&VD_login=$VD_login&VD_pass=$VD_pass\"> "._QXZ("Timeclock")."</a><br />\n";}
|
||||
echo "<table width=\"100%\"><tr><td></td>\n";
|
||||
echo "<!-- INTERNATIONALIZATION-LINKS-PLACEHOLDER-VICIDIAL -->\n";
|
||||
echo "</tr></table>\n";
|
||||
echo "<form name=\"vicidial_form\" id=\"vicidial_form\" action=\"$agcPAGE\" method=\"post\">\n";
|
||||
echo "<input type=\"hidden\" name=\"DB\" id=\"DB\" value=\"$DB\" />\n";
|
||||
echo "<br /><br /><br /><center><table width=\"460px\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"$MAIN_COLOR\"><tr bgcolor=\"white\">";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/vdc_tab_vicidial.gif\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"center\" valign=\"middle\"> Phone-Only Login </td>";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/"._QXZ("vdc_tab_vicidial.gif")."\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"center\" valign=\"middle\"> "._QXZ("Phone-Only Login")." </td>";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"> </font></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">User Login: </td>";
|
||||
echo "<tr><td align=\"right\">"._QXZ("User Login:")." </td>";
|
||||
echo "<td align=\"left\"><input type=\"text\" name=\"VD_login\" size=\"10\" maxlength=\"20\" value=\"$VD_login\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">User Password: </td>";
|
||||
echo "<tr><td align=\"right\">"._QXZ("User Password:")." </td>";
|
||||
echo "<td align=\"left\"><input type=\"password\" name=\"VD_pass\" size=\"10\" maxlength=\"20\" value=\"$VD_pass\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\"Submit\" /> \n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />VERSION: $version BUILD: $build</font></td></tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\""._QXZ("Submit")."\" /> \n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</font></td></tr>\n";
|
||||
echo "</table></center>\n";
|
||||
echo "</form>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -263,7 +264,7 @@ if ($user_login_first == 1)
|
||||
|
||||
if ( (strlen($phone_login) < 1) or (strlen($phone_pass) < 1) )
|
||||
{
|
||||
echo "<title>Phone web client: Phone Login</title>\n";
|
||||
echo "<title>"._QXZ("Phone web client: Phone Login")."</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<body bgcolor=\"white\">\n";
|
||||
if ($hide_timeclock_link < 1)
|
||||
@@ -274,17 +275,17 @@ if ($user_login_first == 1)
|
||||
echo "<form name=\"vicidial_form\" id=\"vicidial_form\" action=\"$agcPAGE\" method=\"post\">\n";
|
||||
echo "<input type=\"hidden\" name=\"DB\" value=\"$DB\" />\n";
|
||||
echo "<br /><br /><br /><center><table width=\"460px\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"$MAIN_COLOR\"><tr bgcolor=\"white\">";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/vdc_tab_vicidial.gif\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/"._QXZ("vdc_tab_vicidial.gif")."\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"center\" valign=\"middle\"> Phone-Only Login </td>";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"> </font></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">Phone Login: </td>";
|
||||
echo "<tr><td align=\"right\">"._QXZ("Phone Login:")." </td>";
|
||||
echo "<td align=\"left\"><input type=\"text\" name=\"phone_login\" size=\"10\" maxlength=\"20\" value=\"\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">Phone Password: </td>";
|
||||
echo "<tr><td align=\"right\">"._QXZ("Phone Password:")." </td>";
|
||||
echo "<td align=\"left\"><input type=\"password\" name=\"phone_pass\" size=\"10\" maxlength=\"20\" value=\"\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\"Submit\" /> \n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\""._QXZ("Submit")."\" /> \n";
|
||||
echo "<span id=\"LogiNReseT\"></span></td></tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />VERSION: $version BUILD: $build</font></td></tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</font></td></tr>\n";
|
||||
echo "</table></center>\n";
|
||||
echo "</form>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -296,7 +297,7 @@ if ($user_login_first == 1)
|
||||
}
|
||||
if ( (strlen($phone_login) < 1) or (strlen($phone_pass) < 1) )
|
||||
{
|
||||
echo "<title>Phone web client: Phone Login</title>\n";
|
||||
echo "<title>"._QXZ("Phone web client: Phone Login")."</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<body bgcolor=\"white\">\n";
|
||||
if ($hide_timeclock_link < 1)
|
||||
@@ -307,17 +308,17 @@ if ( (strlen($phone_login) < 1) or (strlen($phone_pass) < 1) )
|
||||
echo "<form name=\"vicidial_form\" id=\"vicidial_form\" action=\"$agcPAGE\" method=\"post\">\n";
|
||||
echo "<input type=\"hidden\" name=\"DB\" value=\"$DB\" />\n";
|
||||
echo "<br /><br /><br /><center><table width=\"460px\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"$MAIN_COLOR\"><tr bgcolor=\"white\">";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/vdc_tab_vicidial.gif\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/"._QXZ("vdc_tab_vicidial.gif")."\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"center\" valign=\"middle\"> Phone-Only Login </td>";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"> </font></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">Phone Login: </td>";
|
||||
echo "<tr><td align=\"right\">"._QXZ("Phone Login:")." </td>";
|
||||
echo "<td align=\"left\"><input type=\"text\" name=\"phone_login\" size=\"10\" maxlength=\"20\" value=\"\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">Phone Password: </td>";
|
||||
echo "<td align=\"left\"><input type=\"password\" name=\"phone_pass\" size=\"10\" maxlength=\"20\" value=\"\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\"Submit\" /> \n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\""._QXZ("Submit")."\" /> \n";
|
||||
echo "<span id=\"LogiNReseT\"></span></td></tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />VERSION: $version BUILD: $build</font></td></tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</font></td></tr>\n";
|
||||
echo "</table></center>\n";
|
||||
echo "</form>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -403,7 +404,7 @@ else
|
||||
echo "<input type=\"hidden\" name=\"phone_pass\" value=\"$phone_pass\" />\n";
|
||||
echo "<center><br /><b>$VDdisplayMESSAGE</b><br /><br />";
|
||||
echo "<table width=\"460px\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"$MAIN_COLOR\"><tr bgcolor=\"white\">";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/vdc_tab_vicidial.gif\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/"._QXZ("vdc_tab_vicidial.gif")."\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"center\" valign=\"middle\"> Phone-Only Login </td>";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"> </font></td></tr>\n";
|
||||
@@ -411,9 +412,9 @@ else
|
||||
echo "<td align=\"left\"><input type=\"text\" name=\"VD_login\" size=\"10\" maxlength=\"20\" value=\"$VD_login\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">User Password: </td>";
|
||||
echo "<td align=\"left\"><input type=\"password\" name=\"VD_pass\" size=\"10\" maxlength=\"20\" value=\"$VD_pass\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\"Submit\" /> \n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\""._QXZ("Submit")."\" /> \n";
|
||||
echo "<span id=\"LogiNReseT\"></span></td></tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />VERSION: $version BUILD: $build</font></td></tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</font></td></tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</form>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -492,16 +493,16 @@ else
|
||||
echo "<input type=\"hidden\" name=\"VD_login\" value=\"$VD_login\" />\n";
|
||||
echo "<input type=\"hidden\" name=\"VD_pass\" value=\"$VD_pass\" />\n";
|
||||
echo "<br /><br /><br /><center><table width=\"460px\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"$MAIN_COLOR\"><tr bgcolor=\"white\">";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/vdc_tab_vicidial.gif\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"left\" valign=\"bottom\"><img src=\"./images/"._QXZ("vdc_tab_vicidial.gif")."\" border=\"0\" alt=\"VICIdial\" /></td>";
|
||||
echo "<td align=\"center\" valign=\"middle\"> Phone-Only Login Error</td>";
|
||||
echo "</tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><font size=\"1\"> <br /><font size=\"3\">Sorry, your phone login and password are not active in this system, please try again: <br /> </font></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">Phone Login: </td>";
|
||||
echo "<tr><td align=\"right\">"._QXZ("Phone Login:")." </td>";
|
||||
echo "<td align=\"left\"><input type=\"text\" name=\"phone_login\" size=\"10\" maxlength=\"20\" value=\"$phone_login\"></td></tr>\n";
|
||||
echo "<tr><td align=\"right\">Phone Password: </td>";
|
||||
echo "<tr><td align=\"right\">"._QXZ("Phone Password:")." </td>";
|
||||
echo "<td align=\"left\"><input type=\"password\" name=\"phone_pass\" size=10 maxlength=20 value=\"$phone_pass\"></td></tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\"Submit\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />VERSION: $version BUILD: $build</font></td></tr>\n";
|
||||
echo "<tr><td align=\"center\" colspan=\"2\"><input type=\"submit\" name=\"SUBMIT\" value=\""._QXZ("Submit")."\" /></td></tr>\n";
|
||||
echo "<tr><td align=\"left\" colspan=\"2\"><font size=\"1\"><br />"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</font></td></tr>\n";
|
||||
echo "</table></center>\n";
|
||||
echo "</form>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -583,7 +584,7 @@ else
|
||||
}
|
||||
echo "<!-- Phones balance selection: $phone_login|$pb_server_ip|$past_minutes_date| |$pb_log -->\n";
|
||||
}
|
||||
echo "<title>Phone web client</title>\n";
|
||||
echo "<title>"._QXZ("Phone web client")."</title>\n";
|
||||
$stmt="SELECT extension,dialplan_number,voicemail_id,phone_ip,computer_ip,server_ip,login,pass,status,active,phone_type,fullname,company,picture,messages,old_messages,protocol,local_gmt,ASTmgrUSERNAME,ASTmgrSECRET,login_user,login_pass,login_campaign,park_on_extension,conf_on_extension,VICIDIAL_park_on_extension,VICIDIAL_park_on_filename,monitor_prefix,recording_exten,voicemail_exten,voicemail_dump_exten,ext_context,dtmf_send_extension,call_out_number_group,client_browser,install_directory,local_web_callerID_URL,VICIDIAL_web_URL,AGI_call_logging_enabled,user_switching_enabled,conferencing_enabled,admin_hangup_enabled,admin_hijack_enabled,admin_monitor_enabled,call_parking_enabled,updater_check_enabled,AFLogging_enabled,QUEUE_ACTION_enabled,CallerID_popup_enabled,voicemail_button_enabled,enable_fast_refresh,fast_refresh_rate,enable_persistant_mysql,auto_dial_next_number,VDstop_rec_after_each_call,DBX_server,DBX_database,DBX_user,DBX_pass,DBX_port,DBY_server,DBY_database,DBY_user,DBY_pass,DBY_port,outbound_cid,enable_sipsak_messages,email,template_id,conf_override,phone_context,phone_ring_timeout,conf_secret,is_webphone,use_external_server_ip,codecs_list,webphone_dialpad,phone_ring_timeout,on_hook_agent,webphone_auto_answer from phones where login='$phone_login' and pass='$phone_pass' and active = 'Y';";
|
||||
if ($DB) {echo "|$stmt|\n";}
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
@@ -895,7 +896,7 @@ $zi=2;
|
||||
|
||||
echo "<body bgcolor=\"white\">\n";
|
||||
|
||||
echo " Phone: $original_phone_login - $server_ip <a href=\"$PHP_SELF?relogin=YES&session_epoch=1234567890&session_id=&session_name=$session_name&VD_login=$VD_login&phone_login=$original_phone_login&phone_pass=$phone_pass&VD_pass=$VD_pass\">Logout</a><BR>\n";
|
||||
echo _QXZ(" Phone: $original_phone_login - $server_ip")." <a href=\"$PHP_SELF?relogin=YES&session_epoch=1234567890&session_id=&session_name=$session_name&VD_login=$VD_login&phone_login=$original_phone_login&phone_pass=$phone_pass&VD_pass=$VD_pass\">"._QXZ("Logout")."</a><BR>\n";
|
||||
|
||||
if ($webphone_location == 'bar')
|
||||
{
|
||||
|
||||
+45
-44
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# timeclock.php - VICIDIAL system user timeclock
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGELOG
|
||||
# 80523-0134 - First Build
|
||||
@@ -15,10 +15,11 @@
|
||||
# 130705-2010 - Added optional encrypted passwords compatibility
|
||||
# 130802-1031 - Changed to PHP mysqli functions
|
||||
# 131208-2155 - Added user log TIMEOUTLOGOUT event status
|
||||
# 140810-2138 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
$version = '2.8-10';
|
||||
$build = '131208-2155';
|
||||
$version = '2.10-11';
|
||||
$build = '140810-2138';
|
||||
|
||||
$StarTtimE = date("U");
|
||||
$NOW_TIME = date("Y-m-d H:i:s");
|
||||
@@ -128,10 +129,10 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
if ($valid_user < 1)
|
||||
{
|
||||
### NOT A VALID USER/PASS
|
||||
$VDdisplayMESSAGE = "The user and password you entered are not active in the system<BR>Please try again:";
|
||||
$VDdisplayMESSAGE = _QXZ("The user and password you entered are not active in the system<BR>Please try again:");
|
||||
|
||||
echo"<HTML><HEAD>\n";
|
||||
echo"<TITLE>Agent Timeclock</TITLE>\n";
|
||||
echo"<TITLE>"._QXZ("Agent Timeclock")."</TITLE>\n";
|
||||
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"</HEAD>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
@@ -145,16 +146,16 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
echo "<INPUT TYPE=HIDDEN NAME=VD_pass VALUE=\"$VD_pass\">\n";
|
||||
echo "<CENTER><BR><B>$VDdisplayMESSAGE</B><BR><BR>";
|
||||
echo "<TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCFFCC\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vtc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE><B> Timeclock </B></TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/"._QXZ("vtc_tab_vicidial.gif")."\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE><B> "._QXZ("Timeclock")." </B></TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>User Login: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("User Login:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME=user SIZE=10 MAXLENGTH=20 VALUE=\"$VD_login\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>User Password: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("User Password:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=PASSWORD NAME=pass SIZE=10 MAXLENGTH=20 VALUE=''></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSION: $version BUILD: $build</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE="._QXZ("SUBMIT")."> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -233,7 +234,7 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
if ( ($last_action_sec < 30) and ($status != 'START') )
|
||||
{
|
||||
### You cannot log in or out within 30 seconds of your last login/logout
|
||||
$VDdisplayMESSAGE = "You cannot log in or out within 30 seconds of your last login or logout";
|
||||
$VDdisplayMESSAGE = _QXZ("You cannot log in or out within 30 seconds of your last login or logout");
|
||||
|
||||
echo"<HTML><HEAD>\n";
|
||||
echo"<TITLE>Agent Timeclock</TITLE>\n";
|
||||
@@ -250,16 +251,16 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
echo "<INPUT TYPE=HIDDEN NAME=VD_pass VALUE=\"$VD_pass\">\n";
|
||||
echo "<CENTER><BR><B>$VDdisplayMESSAGE</B><BR><BR>";
|
||||
echo "<TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCFFCC\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vtc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE><B> Timeclock </B></TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/"._QXZ("vtc_tab_vicidial.gif")."\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE><B> "._QXZ("Timeclock")." </B></TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>User Login: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("User Login:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME=user SIZE=10 MAXLENGTH=20 VALUE=\"$VD_login\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>User Password: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("User Password:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=PASSWORD NAME=pass SIZE=10 MAXLENGTH=20 VALUE=''></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSION: $version BUILD: $build</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE="._QXZ("SUBMIT")."> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -272,8 +273,8 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
{
|
||||
if ( ( ($status=='AUTOLOGOUT') or ($status=='START') or ($status=='LOGOUT') or ($status=='TIMEOUTLOGOUT') ) and ($stage=='login') )
|
||||
{
|
||||
$VDdisplayMESSAGE = "You have now logged-in";
|
||||
$LOGtimeMESSAGE = "You logged in at $NOW_TIME";
|
||||
$VDdisplayMESSAGE = _QXZ("You have now logged-in");
|
||||
$LOGtimeMESSAGE = _QXZ("You logged in at $NOW_TIME");
|
||||
|
||||
### Add a record to the timeclock log
|
||||
$stmt="INSERT INTO vicidial_timeclock_log set event='LOGIN', user='$user', user_group='$user_group', event_epoch='$StarTtimE', ip_address='$ip', event_date='$NOW_TIME';";
|
||||
@@ -300,8 +301,8 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
|
||||
if ( ($status=='LOGIN') and ($stage=='logout') )
|
||||
{
|
||||
$VDdisplayMESSAGE = "You have now logged-out";
|
||||
$LOGtimeMESSAGE = "You logged out at $NOW_TIME<BR>Amount of time you were logged-in: $totTIME_HMS";
|
||||
$VDdisplayMESSAGE = _QXZ("You have now logged-out");
|
||||
$LOGtimeMESSAGE = _QXZ("You logged out at $NOW_TIME")."<BR>"._QXZ("Amount of time you were logged-in: $totTIME_HMS");
|
||||
|
||||
### Add a record to the timeclock log
|
||||
$stmt="INSERT INTO vicidial_timeclock_log set event='LOGOUT', user='$user', user_group='$user_group', event_epoch='$StarTtimE', ip_address='$ip', login_sec='$last_action_sec', event_date='$NOW_TIME';";
|
||||
@@ -341,14 +342,14 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
}
|
||||
|
||||
if ( ( ( ($status=='AUTOLOGOUT') or ($status=='START') or ($status=='LOGOUT') or ($status=='TIMEOUTLOGOUT') ) and ($stage=='logout') ) or ( ($status=='LOGIN') and ($stage=='login') ) )
|
||||
{echo "ERROR: timeclock log entry already made: $status|$stage"; exit;}
|
||||
{echo _QXZ("ERROR: timeclock log entry already made:")." $status|$stage"; exit;}
|
||||
|
||||
if ($referrer=='agent')
|
||||
{$BACKlink = "<A HREF=\"./vicidial.php?pl=$phone_login&pp=$phone_pass&VD_login=$user\"><font color=\"#003333\">BACK to Agent Login Screen</font></A>";}
|
||||
{$BACKlink = "<A HREF=\"./vicidial.php?pl=$phone_login&pp=$phone_pass&VD_login=$user\"><font color=\"#003333\">"._QXZ("BACK to Agent Login Screen")."</font></A>";}
|
||||
if ($referrer=='admin')
|
||||
{$BACKlink = "<A HREF=\"/$admin_web_directory/admin.php\"><font color=\"#003333\">BACK to Administration</font></A>";}
|
||||
{$BACKlink = "<A HREF=\"/$admin_web_directory/admin.php\"><font color=\"#003333\">"._QXZ("BACK to Administration")."</font></A>";}
|
||||
if ($referrer=='welcome')
|
||||
{$BACKlink = "<A HREF=\"$welcomeURL\"><font color=\"#003333\">BACK to Welcome Screen</font></A>";}
|
||||
{$BACKlink = "<A HREF=\"$welcomeURL\"><font color=\"#003333\">"._QXZ("BACK to Welcome Screen")."</font></A>";}
|
||||
|
||||
echo"<HTML><HEAD>\n";
|
||||
echo"<TITLE>Agent Timeclock</TITLE>\n";
|
||||
@@ -357,13 +358,13 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
echo "<CENTER><BR><B>$VDdisplayMESSAGE</B><BR><BR>";
|
||||
echo "<TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCFFCC\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vtc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE><B> Timeclock </B></TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/"._QXZ("vtc_tab_vicidial.gif")."\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE><B> "._QXZ("Timeclock")." </B></TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><font size=3><B> $LOGtimeMESSAGE<BR> </B></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><B> $BACKlink <BR> </B></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSION: $version BUILD: $build</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</body>\n\n";
|
||||
echo "</html>\n\n";
|
||||
@@ -376,21 +377,21 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
|
||||
if ( ($status=='AUTOLOGOUT') or ($status=='START') or ($status=='LOGOUT') or ($status=='TIMEOUTLOGOUT') )
|
||||
{
|
||||
$VDdisplayMESSAGE = "Time since you were last logged-in: $totTIME_HMS";
|
||||
$VDdisplayMESSAGE = _QXZ("Time since you were last logged-in: $totTIME_HMS");
|
||||
$log_action = 'login';
|
||||
$button_name = 'LOGIN';
|
||||
$LOGtimeMESSAGE = "You last logged-out at: $last_action_date<BR><BR>Click LOGIN below to log-in";
|
||||
$LOGtimeMESSAGE = _QXZ("You last logged-out at: $last_action_date")."<BR><BR>"._QXZ("Click LOGIN below to log-in");
|
||||
}
|
||||
if ($status=='LOGIN')
|
||||
{
|
||||
$VDdisplayMESSAGE = "Amount of time you have been logged-in: $totTIME_HMS";
|
||||
$VDdisplayMESSAGE = _QXZ("Amount of time you have been logged-in: $totTIME_HMS");
|
||||
$log_action = 'logout';
|
||||
$button_name = 'LOGOUT';
|
||||
$LOGtimeMESSAGE = "You logged-in at: $last_action_date<BR>Amount of time you have been logged-in: $totTIME_HMS<BR><BR>Click LOGOUT below to log-out";
|
||||
$LOGtimeMESSAGE = _QXZ("You logged-in at: $last_action_date")."<BR>"._QXZ("Amount of time you have been logged-in: $totTIME_HMS")."<BR><BR>"._QXZ("Click LOGOUT below to log-out");
|
||||
}
|
||||
|
||||
echo"<HTML><HEAD>\n";
|
||||
echo"<TITLE>Agent Timeclock</TITLE>\n";
|
||||
echo"<TITLE>"._QXZ("Agent Timeclock")."</TITLE>\n";
|
||||
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"</HEAD>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
@@ -407,13 +408,13 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
echo "<INPUT TYPE=HIDDEN NAME=pass VALUE=\"$pass\">\n";
|
||||
echo "<CENTER><BR><B>$VDdisplayMESSAGE</B><BR><BR>";
|
||||
echo "<TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCFFCC\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vtc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE><B> Timeclock </B></TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/"._QXZ("vtc_tab_vicidial.gif")."\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE><B> "._QXZ("Timeclock")." </B></TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><font size=3><B> $LOGtimeMESSAGE<BR> </B></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=$button_name VALUE=$button_name> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSION: $version BUILD: $build</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
@@ -429,7 +430,7 @@ if ( ($stage == 'login') or ($stage == 'logout') )
|
||||
else
|
||||
{
|
||||
echo"<HTML><HEAD>\n";
|
||||
echo"<TITLE>Agent Timeclock</TITLE>\n";
|
||||
echo"<TITLE>"._QXZ("Agent Timeclock")."</TITLE>\n";
|
||||
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=utf-8\">\n";
|
||||
echo"</HEAD>\n";
|
||||
echo "<BODY BGCOLOR=WHITE MARGINHEIGHT=0 MARGINWIDTH=0>\n";
|
||||
@@ -443,16 +444,16 @@ else
|
||||
echo "<INPUT TYPE=HIDDEN NAME=VD_pass VALUE=\"$VD_pass\">\n";
|
||||
echo "<CENTER><BR><B>$VDdisplayMESSAGE</B><BR><BR>";
|
||||
echo "<TABLE WIDTH=460 CELLPADDING=0 CELLSPACING=0 BGCOLOR=\"#CCFFCC\"><TR BGCOLOR=WHITE>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/vtc_tab_vicidial.gif\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE><B> Timeclock </B></TD>";
|
||||
echo "<TD ALIGN=LEFT VALIGN=BOTTOM><IMG SRC=\"./images/"._QXZ("vtc_tab_vicidial.gif")."\" BORDER=0></TD>";
|
||||
echo "<TD ALIGN=CENTER VALIGN=MIDDLE><B> "._QXZ("Timeclock")." </B></TD>";
|
||||
echo "</TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>User Login: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("User Login:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=TEXT NAME=user SIZE=10 MAXLENGTH=20 VALUE=\"$VD_login\"></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=RIGHT>User Password: </TD>";
|
||||
echo "<TR><TD ALIGN=RIGHT>"._QXZ("User Password:")." </TD>";
|
||||
echo "<TD ALIGN=LEFT><INPUT TYPE=PASSWORD NAME=pass SIZE=10 MAXLENGTH=20 VALUE=''></TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE=SUBMIT> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>VERSION: $version BUILD: $build</TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=CENTER COLSPAN=2><INPUT TYPE=SUBMIT NAME=SUBMIT VALUE="._QXZ("SUBMIT")."> </TD></TR>\n";
|
||||
echo "<TR><TD ALIGN=LEFT COLSPAN=2><font size=1><BR>"._QXZ("VERSION:")." $version "._QXZ("BUILD:")." $build</TD></TR>\n";
|
||||
echo "</TABLE>\n";
|
||||
echo "</FORM>\n\n";
|
||||
echo "</body>\n\n";
|
||||
|
||||
+213
-212
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# vdc_email_display.php - VICIDIAL administration page
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell, Joe Johnson <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell, Joe Johnson <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This page displays any incoming emails in the Vicidial user interface. It
|
||||
# also allows the user to download and view any attachments sent in the email,
|
||||
@@ -16,6 +16,7 @@
|
||||
# 130603-2210 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130705-1515 - Added optional encrypted passwords compatibility
|
||||
# 130802-1032 - Changed to PHP mysqli functions
|
||||
# 140811-0834 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
@@ -111,7 +112,7 @@ if ($qm_conf_ct > 0)
|
||||
|
||||
if ($allow_emails<1)
|
||||
{
|
||||
echo "Your system does not have the email setting enabled\n";
|
||||
echo _QXZ("Your system does not have the email setting enabled\n");
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -152,7 +153,7 @@ $LVAactive=$row[0];
|
||||
$LVAactive=9;
|
||||
if ( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0) or ( ($LVAactive < 1) ) )
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
echo "<form action=./vdc_email_display.php method=POST name=email_display_form id=email_display_form>\n";
|
||||
echo "<input type=hidden name=user id=user value=\"$user\">\n";
|
||||
echo "</form>\n";
|
||||
@@ -189,7 +190,7 @@ if ($REPLY)
|
||||
{
|
||||
if (preg_match("/;|:|\/|\^|\[|\]|\"|\'|\*/",$LF_orig))
|
||||
{
|
||||
echo "ERROR: Invalid File Name: $LF_orig\n";
|
||||
echo _QXZ("ERROR: Invalid File Name:")." $LF_orig\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -224,7 +225,7 @@ if ($REPLY)
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<p>mail could not be sent!</p>";
|
||||
echo "<p>"._QXZ("mail could not be sent!")."</p>";
|
||||
}
|
||||
exit;
|
||||
}
|
||||
@@ -252,23 +253,23 @@ if ($lead_id) {
|
||||
$email_to = $row["email_to"];
|
||||
}
|
||||
$EMAIL_form="<center><TABLE cellspacing=2 cellpadding=2 bgcolor='#CCCCCC' width='500'>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>Date received:</td><td align='left' valign='top' width='*'>$row[email_date]</td></tr>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>From:</td><td align='left' valign='top' width='*'>$row[email_from]</td></tr>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>Subject:</td><td align='left' valign='top' width='*'>$row[subject]</td></tr>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>Message:</td><td align='left' valign='top' width='*'><pre>$row[message]</pre></td></tr>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>"._QXZ("Date received:")."</td><td align='left' valign='top' width='*'>$row[email_date]</td></tr>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>"._QXZ("From:")."</td><td align='left' valign='top' width='*'>$row[email_from]</td></tr>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>"._QXZ("Subject:")."</td><td align='left' valign='top' width='*'>$row[subject]</td></tr>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>"._QXZ("Message:")."</td><td align='left' valign='top' width='*'><pre>$row[message]</pre></td></tr>\n";
|
||||
|
||||
$att_stmt="select * from inbound_email_attachments where email_row_id='$email_row_id'";
|
||||
$att_rslt=mysql_to_mysqli($att_stmt, $link);
|
||||
if (mysqli_num_rows($att_rslt)>0) {
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>Attachments:</td><td align='left' valign='top' width='*'><pre>";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>"._QXZ("Attachments:")."</td><td align='left' valign='top' width='*'><pre>";
|
||||
while($att_row=mysqli_fetch_array($att_rslt)) {
|
||||
$EMAIL_form.="<LI><a href='$_SERVER[PHP_SELF]?attachment_id=$att_row[attachment_id]&lead_id=$lead_id'>$att_row[filename]</a>\n";
|
||||
}
|
||||
$EMAIL_form.="</pre></td></tr>";
|
||||
}
|
||||
$EMAIL_form.="<tr><td colspan='2'><HR></td></tr>";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>Response:</td><td align='left' valign='top' width='*'>RE: $row[subject]<input type='hidden' name='reply_subject' value='RE: $row[subject]'></td></tr>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>Reply:<BR><BR><input type='button' name='copy' value='COPY MESSAGE >>>' onClick='CopyMessage($row[email_row_id])'></td><td align='left' valign='top' width='*'><textarea rows='8' cols='50' name='reply_message' id='reply_message'>$reply_message</textarea></td></tr>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>"._QXZ("Response:")."</td><td align='left' valign='top' width='*'>RE: $row[subject]<input type='hidden' name='reply_subject' value='RE: $row[subject]'></td></tr>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>"._QXZ("Reply:")."<BR><BR><input type='button' name='copy' value='"._QXZ("COPY MESSAGE")." >>>' onClick='CopyMessage($row[email_row_id])'></td><td align='left' valign='top' width='*'><textarea rows='8' cols='50' name='reply_message' id='reply_message'>$reply_message</textarea></td></tr>\n";
|
||||
$EMAIL_form.="<tr bgcolor=white><td align='right' valign='top' width='150'>Attachments:</td><td align='left' valign='top' width='*'>";
|
||||
$EMAIL_form.="<span id='attachment_span1'><input type=file name='attachment1' value='$attachment1'></span><BR/>";
|
||||
$EMAIL_form.="<span id='attachment_span2'><input type=file name='attachment2'></span><BR/>";
|
||||
@@ -276,7 +277,7 @@ if ($lead_id) {
|
||||
$EMAIL_form.="<span id='attachment_span4'><input type=file name='attachment4'></span><BR/>";
|
||||
$EMAIL_form.="<span id='attachment_span5'><input type=file name='attachment5'></span>";
|
||||
$EMAIL_form.="</td></tr>\n";
|
||||
$EMAIL_form.="<tr><td colspan='2' align='center'><input type='submit' name='REPLY' value='REPLY'></td></tr>";
|
||||
$EMAIL_form.="<tr><td colspan='2' align='center'><input type='submit' name='REPLY' value='"._QXZ("REPLY")."'></td></tr>";
|
||||
$EMAIL_form.="</table></center>\n";
|
||||
$EMAIL_form.="<input type='hidden' name='reply_to_address' value='$email_from'>\n";
|
||||
$EMAIL_form.="<input type='hidden' name='reply_from_address' value='$email_to'>\n";
|
||||
@@ -310,7 +311,7 @@ if ($lead_id) {
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>AGENT email frame</title>
|
||||
<title><?php echo _QXZ("AGENT email frame"); ?></title>
|
||||
</head>
|
||||
<script language="Javascript">
|
||||
function ParseFileName()
|
||||
@@ -370,6 +371,6 @@ if ($lead_id) {
|
||||
<?php
|
||||
}
|
||||
} else {
|
||||
echo "ERROR - ID variable missing";
|
||||
echo _QXZ("ERROR - ID variable missing");
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -24,10 +24,11 @@
|
||||
# 130802-1033 - Changed to PHP mysqli functions
|
||||
# 140101-2139 - Small fix for admin modify lead page on encrypted password systems
|
||||
# 140429-2042 - Added TABLEper_call_notes display script variable for form display
|
||||
# 140810-2119 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
$version = '2.8-15';
|
||||
$build = '140429-2042';
|
||||
$version = '2.10-16';
|
||||
$build = '140810-2119';
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
require_once("functions.php");
|
||||
@@ -244,7 +245,7 @@ $LVAactive=$row[0];
|
||||
|
||||
if ($custom_fields_enabled < 1)
|
||||
{
|
||||
echo "Custom Fields Disabled: |$custom_fields_enabled|\n";
|
||||
echo _QXZ("Custom Fields Disabled:")." |$custom_fields_enabled|\n";
|
||||
echo "<form action=./vdc_form_display.php method=POST name=form_custom_fields id=form_custom_fields>\n";
|
||||
echo "<input type=hidden name=user id=user value=\"$user\">\n";
|
||||
echo "</form>\n";
|
||||
@@ -253,7 +254,7 @@ if ($custom_fields_enabled < 1)
|
||||
|
||||
if ( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0) or ( ($LVAactive < 1) and ($VUmodify < 1) ) )
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
echo "<form action=./vdc_form_display.php method=POST name=form_custom_fields id=form_custom_fields>\n";
|
||||
echo "<input type=hidden name=user id=user value=\"$user\">\n";
|
||||
echo "</form>\n";
|
||||
@@ -416,9 +417,9 @@ if ($stage=='SUBMIT')
|
||||
}
|
||||
}
|
||||
else
|
||||
{$CFoutput .= "ERROR: no custom list fields table\n";}
|
||||
{$CFoutput .= _QXZ("ERROR: no custom list fields table\n");}
|
||||
|
||||
echo "Custom Form Output:\n<BR>\n";
|
||||
echo _QXZ("Custom Form Output:")."\n<BR>\n";
|
||||
|
||||
echo "$SUBMIT_output";
|
||||
|
||||
@@ -432,7 +433,7 @@ else
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build USER: $user server_ip: $server_ip-->\n";
|
||||
echo "<title>Agent Form Display Script";
|
||||
echo "<title>". _QXZ("Agent Form Display Script");
|
||||
echo "</title>\n";
|
||||
|
||||
echo "<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
@@ -472,8 +473,8 @@ else
|
||||
if ($submit_button=='YES')
|
||||
{
|
||||
if ($bcrypt=='0')
|
||||
{echo "<input type=hidden name=bcrypt id=bcrypt value=\"OFF\">\n";}
|
||||
echo "<input type=hidden name=admin_submit id=admin_submit value=\"YES\">\n";
|
||||
{echo "<input type=hidden name=bcrypt id=bcrypt value=\"". _QXZ("OFF")."\">\n";}
|
||||
echo "<input type=hidden name=admin_submit id=admin_submit value=\"". _QXZ("YES")."\">\n";
|
||||
echo "<BR><BR><input type=submit name=VCformSubmit id=VCformSubmit value=submit>\n";
|
||||
}
|
||||
echo "</form></center><BR><BR>\n";
|
||||
|
||||
@@ -26,10 +26,11 @@
|
||||
# 140623-2114 - Added script_override variable
|
||||
# 140630-1023 - Added full_script_height script variable
|
||||
# 140710-2143 - Added session_name variable
|
||||
# 140810-1857 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
$version = '2.10-20';
|
||||
$build = '140710-2143';
|
||||
$version = '2.10-21';
|
||||
$build = '140810-1857';
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
require_once("functions.php");
|
||||
@@ -277,7 +278,7 @@ if ($auth_message == 'GOOD')
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -286,7 +287,7 @@ if ($format=='debug')
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build USER: $user server_ip: $server_ip-->\n";
|
||||
echo "<title>VICIDiaL Script Display Script";
|
||||
echo "<title>"._QXZ("VICIDiaL Script Display Script");
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
@@ -536,21 +537,21 @@ if (preg_match('/--A--TABLEper_call_notes--B--/i',$script_text))
|
||||
if ($hide_call_log_info!='Y')
|
||||
{
|
||||
if ($search != 'logfirst')
|
||||
{$NOTESout .= "CALL LOG FOR THIS LEAD:<br>\n";}
|
||||
{$NOTESout .= _QXZ("CALL LOG FOR THIS LEAD:")."<br>\n";}
|
||||
$NOTESout .= "<TABLE CELLPADDING=0 CELLSPACING=1 BORDER=0>";
|
||||
$NOTESout .= "<TR>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:10px;font-family:sans-serif;\"><B> # </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> DATE/TIME </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> AGENT </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> LENGTH </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> STATUS </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> PHONE </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> CAMPAIGN </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> IN/OUT </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> ALT </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> HANGUP </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("DATE/TIME")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("AGENT")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("LENGTH")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("STATUS")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("PHONE")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("CAMPAIGN")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("IN/OUT")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("ALT")." </font></TD>";
|
||||
$NOTESout .= "<TD BGCOLOR=\"#CCCCCC\"><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("HANGUP")." </font></TD>";
|
||||
# $NOTESout .= "</TR><TR>";
|
||||
# $NOTESout .= "<TD BGCOLOR=\"#CCCCCC\" COLSPAN=9><font style=\"font-size:11px;font-family:sans-serif;\"><B> FULL NAME </font></TD>";
|
||||
# $NOTESout .= "<TD BGCOLOR=\"#CCCCCC\" COLSPAN=9><font style=\"font-size:11px;font-family:sans-serif;\"><B> "._QXZ("FULL NAME")." </font></TD>";
|
||||
$NOTESout .= "</TR>";
|
||||
|
||||
|
||||
@@ -638,7 +639,7 @@ if (preg_match('/--A--TABLEper_call_notes--B--/i',$script_text))
|
||||
$rowA=mysqli_fetch_row($rsltA);
|
||||
$Allcall_notes[$g] = $rowA[0];
|
||||
if (strlen($Allcall_notes[$g]) > 0)
|
||||
{$Allcall_notes[$g] = "<b>NOTES: </b> $Allcall_notes[$g]";}
|
||||
{$Allcall_notes[$g] = "<b>"._QXZ("NOTES:")." </b> $Allcall_notes[$g]";}
|
||||
}
|
||||
$stmtA="SELECT full_name FROM vicidial_users WHERE user='$ALLuser[$g]';";
|
||||
$rsltA=mysql_to_mysqli($stmtA, $link);
|
||||
@@ -658,7 +659,7 @@ if (preg_match('/--A--TABLEper_call_notes--B--/i',$script_text))
|
||||
if ($g > 0)
|
||||
{sort($ALLsort, SORT_NUMERIC);}
|
||||
else
|
||||
{$NOTESout .= "<tr bgcolor=white><td colspan=11 align=center>No calls found</td></tr>";}
|
||||
{$NOTESout .= "<tr bgcolor=white><td colspan=11 align=center>"._QXZ("No calls found")."</td></tr>";}
|
||||
|
||||
$u=0;
|
||||
while ($g > $u)
|
||||
|
||||
@@ -17,10 +17,11 @@
|
||||
# 130328-0019 - Converted ereg to preg functions
|
||||
# 130603-2201 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130802-1036 - Changed to PHP mysqli functions
|
||||
# 140811-0832 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
$version = '2.8-5';
|
||||
$build = '130802-1036';
|
||||
$version = '2.10-6';
|
||||
$build = '140811-0832';
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
require_once("functions.php");
|
||||
@@ -283,25 +284,25 @@ if ($DB > 0)
|
||||
}
|
||||
|
||||
### BEGIN find any custom field labels ###
|
||||
$label_title = 'Title';
|
||||
$label_first_name = 'First';
|
||||
$label_middle_initial = 'MI';
|
||||
$label_last_name = 'Last';
|
||||
$label_address1 = 'Address1';
|
||||
$label_address2 = 'Address2';
|
||||
$label_address3 = 'Address3';
|
||||
$label_city = 'City';
|
||||
$label_state = 'State';
|
||||
$label_province = 'Province';
|
||||
$label_postal_code = 'PostCode';
|
||||
$label_vendor_lead_code = 'Vendor ID';
|
||||
$label_gender = 'Gender';
|
||||
$label_phone_number = 'Phone';
|
||||
$label_phone_code = 'DialCode';
|
||||
$label_alt_phone = 'Alt. Phone';
|
||||
$label_security_phrase = 'Show';
|
||||
$label_email = 'Email';
|
||||
$label_comments = 'Comments';
|
||||
$label_title = _QXZ('Title');
|
||||
$label_first_name = _QXZ('First');
|
||||
$label_middle_initial = _QXZ('MI');
|
||||
$label_last_name = _QXZ('Last');
|
||||
$label_address1 = _QXZ('Address1');
|
||||
$label_address2 = _QXZ('Address2');
|
||||
$label_address3 = _QXZ('Address3');
|
||||
$label_city = _QXZ('City');
|
||||
$label_state = _QXZ('State');
|
||||
$label_province = _QXZ('Province');
|
||||
$label_postal_code = _QXZ('PostCode');
|
||||
$label_vendor_lead_code = _QXZ('Vendor ID');
|
||||
$label_gender = _QXZ('Gender');
|
||||
$label_phone_number = _QXZ('Phone');
|
||||
$label_phone_code = _QXZ('DialCode');
|
||||
$label_alt_phone = _QXZ('Alt. Phone');
|
||||
$label_security_phrase = _QXZ('Show');
|
||||
$label_email = _QXZ('Email');
|
||||
$label_comments = _QXZ('Comments');
|
||||
|
||||
$stmt="SELECT label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments from system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
@@ -340,7 +341,7 @@ if ($auth_message == 'GOOD')
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -352,7 +353,7 @@ echo "var required_statuses='$required_statuses';\n";
|
||||
echo "var extra_statuses=\"$extra_statuses\";\n";
|
||||
echo "</script>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build USER: $user server_ip: $server_ip-->\n";
|
||||
echo "<title>ViciDial Script";
|
||||
echo "<title>"._QXZ("ViciDial Script");
|
||||
echo "</title>\n";
|
||||
?>
|
||||
|
||||
@@ -414,7 +415,7 @@ if ($process > 0)
|
||||
$affected_rows = mysqli_affected_rows($link);
|
||||
}
|
||||
|
||||
echo "<BR><b>Data Updated, Hanging up call, please wait</b><BR><BR>\n";
|
||||
echo "<BR><b>"._QXZ("Data Updated, Hanging up call, please wait")."</b><BR><BR>\n";
|
||||
|
||||
sleep(3);
|
||||
|
||||
@@ -457,19 +458,19 @@ $URLsubmit = $URLarray[0];
|
||||
</TD></TR>
|
||||
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Vendor ID: </TD><TD ALIGN=LEFT><input type=text name=vendor_id id=vendor_id size=20 maxlength=20 value="<?php echo $vendor_id ?>"></TD>
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo _QXZ("Vendor ID:"); ?> </TD><TD ALIGN=LEFT><input type=text name=vendor_id id=vendor_id size=20 maxlength=20 value="<?php echo $vendor_id ?>"></TD>
|
||||
</TR>
|
||||
<!-- <TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Source ID: </TD><TD ALIGN=LEFT>$source_id<input type=hidden name=source_id id=source_id value="<?php echo $source_id ?>"></TD>
|
||||
</TR> -->
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Title: </TD><TD ALIGN=LEFT><input type=text name=title id=title size=5 maxlength=4 value="<?php echo $title ?>"></TD>
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo _QXZ("Title:"); ?> </TD><TD ALIGN=LEFT><input type=text name=title id=title size=5 maxlength=4 value="<?php echo $title ?>"></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo $label_first_name ?>: </TD><TD ALIGN=LEFT><input type=text name=first_name id=first_name size=30 maxlength=30 value="<?php echo $first_name ?>"> *</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Middle Initial: </TD><TD ALIGN=LEFT><input type=text name=middle_initial id=middle_initial size=2 maxlength=1 value="<?php echo $middle_initial ?>"></TD>
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo _QXZ("Middle Initial:"); ?> </TD><TD ALIGN=LEFT><input type=text name=middle_initial id=middle_initial size=2 maxlength=1 value="<?php echo $middle_initial ?>"></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo $label_last_name ?>: </TD><TD ALIGN=LEFT><input type=text name=last_name id=last_name size=30 maxlength=30 value="<?php echo $last_name ?>"> *</TD>
|
||||
@@ -563,7 +564,7 @@ $URLsubmit = $URLarray[0];
|
||||
</SELECT> *</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Province: </TD><TD ALIGN=LEFT><input type=text name=province id=province size=20 maxlength=50 value="<?php echo $province ?>"></TD>
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo _QXZ("Province:"); ?> </TD><TD ALIGN=LEFT><input type=text name=province id=province size=20 maxlength=50 value="<?php echo $province ?>"></TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo $label_postal_code ?>: </TD><TD ALIGN=LEFT><input type=text name=postal_code id=postal_code size=6 maxlength=5 value="<?php echo $postal_code ?>"> *</TD>
|
||||
@@ -581,13 +582,13 @@ $URLsubmit = $URLarray[0];
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Date of Birth: </TD><TD ALIGN=LEFT><input type=text name=date_if_birth id=date_if_birth size=12 maxlength=12 value="<?php echo $date_of_birth ?>"></TD>
|
||||
</TR> -->
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Alt. Phone: </TD><TD ALIGN=LEFT><input type=text name=alt_phone id=alt_phone size=12 maxlength=12 value="<?php echo $alt_phone ?>"> *</TD>
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo _QXZ("Alt. Phone:"); ?> </TD><TD ALIGN=LEFT><input type=text name=alt_phone id=alt_phone size=12 maxlength=12 value="<?php echo $alt_phone ?>"> *</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Email: </TD><TD ALIGN=LEFT><input type=text name=email id=email size=30 maxlength=70 value="<?php echo $email ?>"> *</TD>
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo _QXZ("Email:"); ?> </TD><TD ALIGN=LEFT><input type=text name=email id=email size=30 maxlength=70 value="<?php echo $email ?>"> *</TD>
|
||||
</TR>
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Show: </TD><TD ALIGN=LEFT><input type=text name=security_phrase id=security_phrase size=30 maxlength=100 value="<?php echo $security_phrase ?>"> *</TD>
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo _QXZ("Show:"); ?> </TD><TD ALIGN=LEFT><input type=text name=security_phrase id=security_phrase size=30 maxlength=100 value="<?php echo $security_phrase ?>"> *</TD>
|
||||
</TR>
|
||||
<!-- <TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Comments: </TD><TD ALIGN=LEFT><input type=text name=comments id=comments size=40 maxlength=255 value="<?php echo $comments ?>"> *</TD>
|
||||
@@ -663,7 +664,7 @@ o_cal.a_tpl.yearscroll = false;
|
||||
-->
|
||||
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=CENTER COLSPAN=2><FONT FACE="ARIAL,HELVETICA" size=2>Comments:<BR><TEXTAREA NAME=comments ID=comments ROWS=5 COLS=50><?php echo $comments ?></TEXTAREA></font><br>
|
||||
<TD ALIGN=CENTER COLSPAN=2><FONT FACE="ARIAL,HELVETICA" size=2><?php echo _QXZ("Comments:"); ?><BR><TEXTAREA NAME=comments ID=comments ROWS=5 COLS=50><?php echo $comments ?></TEXTAREA></font><br>
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
@@ -680,16 +681,16 @@ o_cal.a_tpl.yearscroll = false;
|
||||
commented END put custom fields here -->
|
||||
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Question: </TD><TD ALIGN=LEFT><input type=text name=question id=question size=30 maxlength=50 value="<?php echo $question ?>"></TD>
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo _QXZ("Question:"); ?> </TD><TD ALIGN=LEFT><input type=text name=question id=question size=30 maxlength=50 value="<?php echo $question ?>"></TD>
|
||||
</TR>
|
||||
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Answer: </TD><TD ALIGN=LEFT><input type=text name=answer id=answer size=30 maxlength=50 value="<?php echo $answer ?>"></TD>
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo _QXZ("Answer:"); ?> </TD><TD ALIGN=LEFT><input type=text name=answer id=answer size=30 maxlength=50 value="<?php echo $answer ?>"></TD>
|
||||
</TR>
|
||||
|
||||
|
||||
<?php
|
||||
echo "<tr bgcolor=#E6E6E6><td align=right>Disposition: </td><td align=left><select size=1 name=status id=status>\n";
|
||||
echo "<tr bgcolor=#E6E6E6><td align=right>"._QXZ("Disposition:")." </td><td align=left><select size=1 name=status id=status>\n";
|
||||
|
||||
|
||||
$stmt="SELECT status,status_name,selectable,human_answered,category,sale,dnc,customer_contact,not_interested,unworkable from vicidial_statuses where selectable='Y' or status IN($extra_statuses) order by status";
|
||||
@@ -777,19 +778,19 @@ function submit_form()
|
||||
{
|
||||
document.vsn.submit();
|
||||
document.vsn.smt.disabled = true;
|
||||
document.vsn.smt.value = "Processing...";
|
||||
document.vsn.smt.value = <?php echo _QXZ("Processing..."); ?>;
|
||||
}
|
||||
}
|
||||
|
||||
</SCRIPT>
|
||||
|
||||
<input type=button value="SUBMIT and HANGUP CALL" name=smt id=smt onClick="submit_form()">
|
||||
<input type=checkbox name=pause id=pause size="1" value="1" /> PAUSE AGENT DIALING
|
||||
<input type=checkbox name=pause id=pause size="1" value="1" /> <?php echo _QXZ("PAUSE AGENT DIALING"); ?>
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=CENTER COLSPAN=2><FONT FACE="ARIAL,HELVETICA" size=1>Please click SUBMIT to hangup and disposition the call, * denotes required fields</font><br>
|
||||
<TD ALIGN=CENTER COLSPAN=2><FONT FACE="ARIAL,HELVETICA" size=1><?php echo _QXZ("Please click SUBMIT to hangup and disposition the call"); ?>, * <?php echo _QXZ("denotes required fields"); ?></font><br>
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# vdc_script_notes.php
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# This script is designed open in the SCRIPT tab in the agent interface through
|
||||
# an IFRAME. It will create a new record for every SUBMIT
|
||||
@@ -15,10 +15,11 @@
|
||||
# 130328-0020 - Converted ereg to preg functions
|
||||
# 130603-2203 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130802-1037 - Changed to PHP mysqli functions
|
||||
# 140810-2113 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
$version = '2.8-5';
|
||||
$build = '130802-1037';
|
||||
$version = '2.10-6';
|
||||
$build = '140810-2113';
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
require_once("functions.php");
|
||||
@@ -251,25 +252,25 @@ if ($DB > 0)
|
||||
}
|
||||
|
||||
### BEGIN find any custom field labels ###
|
||||
$label_title = 'Title';
|
||||
$label_first_name = 'First';
|
||||
$label_middle_initial = 'MI';
|
||||
$label_last_name = 'Last';
|
||||
$label_address1 = 'Address1';
|
||||
$label_address2 = 'Address2';
|
||||
$label_address3 = 'Address3';
|
||||
$label_city = 'City';
|
||||
$label_state = 'State';
|
||||
$label_province = 'Province';
|
||||
$label_postal_code = 'PostCode';
|
||||
$label_vendor_lead_code = 'Vendor ID';
|
||||
$label_gender = 'Gender';
|
||||
$label_phone_number = 'Phone';
|
||||
$label_phone_code = 'DialCode';
|
||||
$label_alt_phone = 'Alt. Phone';
|
||||
$label_security_phrase = 'Show';
|
||||
$label_email = 'Email';
|
||||
$label_comments = 'Comments';
|
||||
$label_title = _QXZ('Title');
|
||||
$label_first_name = _QXZ('First');
|
||||
$label_middle_initial = _QXZ('MI');
|
||||
$label_last_name = _QXZ('Last');
|
||||
$label_address1 = _QXZ('Address1');
|
||||
$label_address2 = _QXZ('Address2');
|
||||
$label_address3 = _QXZ('Address3');
|
||||
$label_city = _QXZ('City');
|
||||
$label_state = _QXZ('State');
|
||||
$label_province = _QXZ('Province');
|
||||
$label_postal_code = _QXZ('PostCode');
|
||||
$label_vendor_lead_code = _QXZ('Vendor ID');
|
||||
$label_gender = _QXZ('Gender');
|
||||
$label_phone_number = _QXZ('Phone');
|
||||
$label_phone_code = _QXZ('DialCode');
|
||||
$label_alt_phone = _QXZ('Alt. Phone');
|
||||
$label_security_phrase = _QXZ('Show');
|
||||
$label_email = _QXZ('Email');
|
||||
$label_comments = _QXZ('Comments');
|
||||
|
||||
$stmt="SELECT label_title,label_first_name,label_middle_initial,label_last_name,label_address1,label_address2,label_address3,label_city,label_state,label_province,label_postal_code,label_vendor_lead_code,label_gender,label_phone_number,label_phone_code,label_alt_phone,label_security_phrase,label_email,label_comments from system_settings;";
|
||||
$rslt=mysql_to_mysqli($stmt, $link);
|
||||
@@ -308,14 +309,14 @@ if ($auth_message == 'GOOD')
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
echo "<HTML>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build USER: $user server_ip: $server_ip-->\n";
|
||||
echo "<title>Agent Notes";
|
||||
echo "<title>"._QXZ("ViciDial Notes");
|
||||
echo "</title>\n";
|
||||
echo "<script language=\"JavaScript\" src=\"calendar_db.js\"></script>\n";
|
||||
echo "<link rel=\"stylesheet\" href=\"calendar.css\">\n";
|
||||
@@ -532,11 +533,11 @@ $URLsubmit = $URLarray[0];
|
||||
</TR> -->
|
||||
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Order ID: </TD><TD ALIGN=LEFT><input type=text name=order_id id=order_id size=20 maxlength=20 value="<?php echo $order_id ?>"></TD>
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo _QXZ("Order ID:"); ?> </TD><TD ALIGN=LEFT><input type=text name=order_id id=order_id size=20 maxlength=20 value="<?php echo $order_id ?>"></TD>
|
||||
</TR>
|
||||
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA">Appointment Date/Time: </TD><TD ALIGN=LEFT><input type=text name=appointment_date id=appointment_date size=10 maxlength=10 value="<?php echo $appointment_date ?>">
|
||||
<TD ALIGN=RIGHT><FONT FACE="ARIAL,HELVETICA"><?php echo _QXZ("Appointment Date/Time:"); ?> </TD><TD ALIGN=LEFT><input type=text name=appointment_date id=appointment_date size=10 maxlength=10 value="<?php echo $appointment_date ?>">
|
||||
|
||||
<script language="JavaScript">
|
||||
var o_cal = new tcal ({
|
||||
@@ -598,12 +599,12 @@ o_cal.a_tpl.yearscroll = false;
|
||||
|
||||
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=CENTER COLSPAN=2><FONT FACE="ARIAL,HELVETICA" size=2>Appointment Notes:<BR><TEXTAREA NAME=call_notes ID=call_notes ROWS=5 COLS=50><?php echo $call_notes ?></TEXTAREA></font><br>
|
||||
<TD ALIGN=CENTER COLSPAN=2><FONT FACE="ARIAL,HELVETICA" size=2><?php echo _QXZ("Appointment Notes:"); ?><BR><TEXTAREA NAME=call_notes ID=call_notes ROWS=5 COLS=50><?php echo $call_notes ?></TEXTAREA></font><br>
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
<TR BGCOLOR="#E6E6E6">
|
||||
<TD ALIGN=CENTER COLSPAN=2><FONT FACE="ARIAL,HELVETICA" size=1>Please click SUBMIT to commit the changes, * denotes required fields</font><br>
|
||||
<TD ALIGN=CENTER COLSPAN=2><FONT FACE="ARIAL,HELVETICA" size=1><?php echo _QXZ("Please click SUBMIT to commit the changes"); ?>, * <?php echo _QXZ("denotes required fields"); ?></font><br>
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
@@ -626,7 +627,7 @@ function submit_form()
|
||||
|
||||
</SCRIPT>
|
||||
|
||||
<input type=button value="SUBMIT" name=smt id=smt onClick="submit_form()">
|
||||
<input type=button value="<?php echo _QXZ("SUBMIT"); ?>" name=smt id=smt onClick="submit_form()">
|
||||
</TD>
|
||||
</TR>
|
||||
|
||||
|
||||
+764
-763
File diff suppressed because it is too large
Load Diff
@@ -1,12 +1,14 @@
|
||||
<?php
|
||||
# vicidial_redirect.php - forwards agents to another URL for vicidial.php login
|
||||
#
|
||||
# Copyright (C) 2009 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# CHANGELOG
|
||||
# 71202-1546 - First Build
|
||||
# 90508-0727 - Changed to PHP long tags
|
||||
# 140811-0852 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
require_once("functions.php");
|
||||
|
||||
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
|
||||
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
|
||||
@@ -36,12 +38,12 @@ if (!isset($phone_pass))
|
||||
|
||||
$URL = "http://192.168.1.60/agc/vicidial.php?phone_login=$phone_login&phone_pass=$phone_pass&DB=$DB&VD_login=$VD_login&VD_pass=$VD_pass&VD_campaign=$VD_campaign&relogin=$relogin";
|
||||
|
||||
echo"<TITLE>Agent Redirect</TITLE>\n";
|
||||
echo"<TITLE>"._QXZ("Agent Redirect")."</TITLE>\n";
|
||||
echo"<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=iso-8859-1\">\n";
|
||||
echo"<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=$URL\">\n";
|
||||
echo"</HEAD>\n";
|
||||
echo"<BODY BGCOLOR=#FFFFFF marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
echo"<a href=\"$URL\">click here to continue. . .</a>\n";
|
||||
echo"<a href=\"$URL\">"._QXZ("click here to continue").". . .</a>\n";
|
||||
exit;
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# voicemail_check.php version 2.8
|
||||
# voicemail_check.php version 2.10
|
||||
#
|
||||
# Copyright (C) 2013 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2014 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# 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
|
||||
@@ -26,6 +26,7 @@
|
||||
# 130328-0025 - Converted ereg to preg functions
|
||||
# 130603-2202 - Added login lockout for 15 minutes after 10 failed logins, and other security fixes
|
||||
# 130802-1038 - Changed to PHP mysqli functions
|
||||
# 140811-0801 - Changed to use QXZ function for echoing text
|
||||
#
|
||||
|
||||
require_once("dbconnect_mysqli.php");
|
||||
@@ -67,14 +68,14 @@ if ($auth_message == 'GOOD')
|
||||
|
||||
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
|
||||
{
|
||||
echo "Invalid Username/Password: |$user|$pass|$auth_message|\n";
|
||||
echo _QXZ("Invalid Username/Password:")." |$user|$pass|$auth_message|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
{
|
||||
if( (strlen($server_ip)<6) or (!isset($server_ip)) or ( (strlen($session_name)<12) or (!isset($session_name)) ) )
|
||||
{
|
||||
echo "Invalid server_ip: |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
echo _QXZ("Invalid server_ip:")." |$server_ip| or Invalid session_name: |$session_name|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -86,7 +87,7 @@ else
|
||||
$SNauth=$row[0];
|
||||
if($SNauth==0)
|
||||
{
|
||||
echo "Invalid session_name: |$session_name|$server_ip|\n";
|
||||
echo _QXZ("Invalid session_name:")." |$session_name|$server_ip|\n";
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -101,7 +102,7 @@ if ($format=='debug')
|
||||
echo "<html>\n";
|
||||
echo "<head>\n";
|
||||
echo "<!-- VERSION: $version BUILD: $build VMBOX: $vmail_box server_ip: $server_ip-->\n";
|
||||
echo "<title>Voicemail Check";
|
||||
echo "<title>"._QXZ("Voicemail Check");
|
||||
echo "</title>\n";
|
||||
echo "</head>\n";
|
||||
echo "<BODY BGCOLOR=white marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n";
|
||||
@@ -112,7 +113,7 @@ $row=''; $rowx='';
|
||||
if (strlen($vmail_box)<1)
|
||||
{
|
||||
$channel_live=0;
|
||||
echo "voicemail box $vmail_box is not valid\n";
|
||||
echo _QXZ("voicemail box $vmail_box is not valid\n");
|
||||
exit;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user