Spiacente, il telefono inserito non e` attivo in questo sistema, riprova di nuovo:
\n";
+ echo "
Spiacente, il telefono inserito non è attivo in questo sistema, riprova di nuovo:
\n";
echo "
Login Telefono:
";
echo "
\n";
echo "
Password Telefono:
";
@@ -953,7 +953,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
}
// ################################################################################
-// Send Redirect command for live call to Managersends phone name where call is going to
+// Send Redirect command for live call to Manager sends phone name where call is going to
function mainxfer_send_redirect(taskvar,taskxferconf)
{
var xmlhttp=false;
@@ -1046,7 +1046,7 @@ if ($enable_fast_refresh < 1) {echo "var refresh_interval = 1000;\n";}
// ################################################################################
-// Send Originate command for local dial to Managersends phone name where call is going to
+// Send Originate command for local dial to Manager sends phone name where call is going to
function mainxfer_send_originate(taskvar,taskxferconf,taskentrypop)
{
var xmlhttp=false;
@@ -1825,7 +1825,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 = "CHIAMATE IN CORSO SU QUESTA CONFERENZA:
#
CANALE REMOTO
RIAGGANCIA
TRASF
";
+ var live_conf_HTML = "CHIAMATE IN CORSO IN QUESTA CONFERENZA:
Interni Attivi
diff --git a/LANG_www/agc_it/call_log_display.php b/LANG_www/agc_it/call_log_display.php
index 1e8d6e86..2d00000e 100644
--- a/LANG_www/agc_it/call_log_display.php
+++ b/LANG_www/agc_it/call_log_display.php
@@ -74,7 +74,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
{
- echo "Utentename/Password non validi: |$user|$pass|\n";
+ echo "Username/Password non validi: |$user|$pass|\n";
exit;
}
else
@@ -121,7 +121,7 @@ echo "
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
{
$channel_live=0;
- echo "Exten $exten non e` valido o protocollo $protocol non e` valido\n";
+ echo "Exten $exten non è valido o protocollo $protocol non è valido\n";
exit;
}
else
diff --git a/LANG_www/agc_it/conf_exten_check.php b/LANG_www/agc_it/conf_exten_check.php
index 2496b77e..dbc79787 100644
--- a/LANG_www/agc_it/conf_exten_check.php
+++ b/LANG_www/agc_it/conf_exten_check.php
@@ -137,7 +137,7 @@ $auth=$row[0];
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
{
- echo "Utentename/Password non validi: |$user|$pass|\n";
+ echo "Username/Password non validi: |$user|$pass|\n";
exit;
}
else
@@ -187,7 +187,7 @@ echo "
if (strlen($conf_exten)<1)
{
$channel_live=0;
- echo "Conf Exten $conf_exten non e` valido\n";
+ echo "Conf Exten $conf_exten non è valido\n";
exit;
}
else
@@ -634,7 +634,7 @@ echo "
if ( (strlen($conf_exten)<1) || (strlen($exten)<1) )
{
$channel_live=0;
- echo "Conf Exten $conf_exten non e` valido or Exten $exten non e` valido\n";
+ echo "Conf Exten $conf_exten non è valido or Exten $exten non è valido\n";
exit;
}
else
@@ -644,7 +644,7 @@ echo "
$rslt=mysql_query($stmt, $link);
if ($mel > 0) {mysql_error_logging($NOW_TIME,$link,$mel,$stmt,'03013',$user,$server_ip,$session_name,$one_mysql_log);}
}
- echo "Conferenza $conf_exten e` stato registrato su $exten\n";
+ echo "Conferenza $conf_exten è stato registrato su $exten\n";
}
diff --git a/LANG_www/agc_it/inbound_popup.php b/LANG_www/agc_it/inbound_popup.php
index 51416989..a3112792 100644
--- a/LANG_www/agc_it/inbound_popup.php
+++ b/LANG_www/agc_it/inbound_popup.php
@@ -86,7 +86,7 @@ if ( (eregi("^Zap",$channel)) and (!eregi("-",$channel)) ) {$channel = "$channel
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
{
- echo "Utentename/Password non validi: |$user|$pass|\n";
+ echo "Username/Password non validi: |$user|$pass|\n";
exit;
}
else
@@ -266,7 +266,7 @@ $channel_live=1;
if (strlen($uniqueid)<9)
{
$channel_live=0;
- echo "Uniqueid $uniqueid non e` valido\n";
+ echo "Uniqueid $uniqueid non è valido\n";
exit;
}
else
@@ -320,7 +320,7 @@ else
echo "
\n";
echo "
Numero chiamato:
$row[8]
\n";
- echo "
Note:
$row[9]|$row[10]|$row[11]|$row[12]|$row[13]|
\n";
+ echo "
Note:
$row[9]|$row[10]|$row[11]|$row[12]|$row[13]|
\n";
echo "
\n";
echo "RIAGGANCIA - \n";
echo "INVIA ALLA MIA VOICEMAIL\n";
diff --git a/LANG_www/agc_it/live_exten_check.php b/LANG_www/agc_it/live_exten_check.php
index 0262a41e..089710ca 100644
--- a/LANG_www/agc_it/live_exten_check.php
+++ b/LANG_www/agc_it/live_exten_check.php
@@ -75,7 +75,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
{
- echo "Utentename/Password non validi: |$user|$pass|\n";
+ echo "Username/Password non validi: |$user|$pass|\n";
exit;
}
else
@@ -132,7 +132,7 @@ echo "$row[0]|";
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
{
$channel_live=0;
- echo "Exten $exten non e` valido o protocollo $protocol non e` valido\n";
+ echo "Exten $exten non è valido o protocollo $protocol non è valido\n";
exit;
}
else
diff --git a/LANG_www/agc_it/manager_send.php b/LANG_www/agc_it/manager_send.php
index f4f118b6..fb1579e8 100644
--- a/LANG_www/agc_it/manager_send.php
+++ b/LANG_www/agc_it/manager_send.php
@@ -239,7 +239,7 @@ $auth=$row[0];
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0))
{
- echo "Utentename/Password non validi: |$user|$pass|\n";
+ echo "Username/Password non validi: |$user|$pass|\n";
exit;
}
else
@@ -297,7 +297,7 @@ if ($ACTION=="SysCIDOriginate")
{
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($ext_context)<1) or (strlen($queryCID)<1) )
{
- echo "Exten $exten non e` valido or queryCID $queryCID non e` valido, Originate comando non inserito\n";
+ echo "Exten $exten non è valido or queryCID $queryCID non è valido, Originate comando non inserito\n";
}
else
{
@@ -319,9 +319,9 @@ 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 "Una di queste variabili non e` valido:\n";
- echo "Channel $channel deve avere piu' di 2 caratteri\n";
- echo "queryCID $queryCID deve avere piu' di 14 caratteri\n";
+ echo "Una di queste variabili non è valido:\n";
+ echo "Channel $channel deve avere più di 2 caratteri\n";
+ echo "queryCID $queryCID deve avere più di 14 caratteri\n";
echo "extenName $extenName deve essere impostato\n";
echo "ext_context $ext_context deve essere impostato\n";
echo "ext_priority $ext_priority deve essere impostato\n";
@@ -348,9 +348,9 @@ 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 "Una di queste variabili non e` valido:\n";
- echo "Channel $channel deve avere piu' di 2 caratteri\n";
- echo "queryCID $queryCID deve avere piu' di 14 caratteri\n";
+ echo "Una di queste variabili non è valido:\n";
+ echo "Channel $channel deve avere più di 2 caratteri\n";
+ echo "queryCID $queryCID deve avere più di 14 caratteri\n";
echo "extenName $extenName deve essere impostato\n";
echo "exten $exten deve essere impostato\n";
echo "ext_context $ext_context deve essere impostato\n";
@@ -392,13 +392,13 @@ if ($ACTION=="Originate")
{
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($ext_context)<1) or (strlen($queryCID)<10) )
{
- echo "ERROR Exten $exten non e` valido or queryCID $queryCID non e` valido, Originate comando non inserito\n";
+ echo "ERROR Exten $exten non è valido or queryCID $queryCID non è valido, Originate comando non inserito\n";
}
else
{
if ( (eregi('MANUAL',$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 Non ti è permesso di comporre in sessioni altro agente $exten\n";
+ echo "ERROR Non ti è permesso lavorare nella sessione di un altro operatore $exten\n";
exit;
}
@@ -442,7 +442,7 @@ if ($ACTION=="HangupConfDial")
if ( (strlen($exten)<3) or (strlen($queryCID)<15) or (strlen($ext_context)<1) )
{
$channel_live=0;
- echo "conference $exten non e` valido or ext_context $ext_context or queryCID $queryCID non e` valido, Hangup comando non inserito\n";
+ echo "conference $exten non è valido or ext_context $ext_context or queryCID $queryCID non è valido, Hangup comando non inserito\n";
}
else
{
@@ -486,7 +486,7 @@ if ($ACTION=="Hangup")
if ( (strlen($channel)<3) or (strlen($queryCID)<15) )
{
$channel_live=0;
- echo "Channel $channel non e` valido or queryCID $queryCID non e` valido, Hangup comando non inserito\n";
+ echo "Channel $channel non è valido or queryCID $queryCID non è valido, Hangup comando non inserito\n";
}
else
{
@@ -517,7 +517,7 @@ if ($ACTION=="Hangup")
$rowx=mysql_fetch_row($rslt);
if ($rowx[0]==0)
{
- echo "Call $CalLCID $channel non e` attivo su $call_server_ip, Checking Live Canale...\n";
+ echo "Call $CalLCID $channel non è attivo su $call_server_ip, Checking Live Canale...\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";}
@@ -527,7 +527,7 @@ if ($ACTION=="Hangup")
if ($row[0]==0)
{
$channel_live=0;
- echo "Channel $channel non e` attivo su $call_server_ip, Hangup comando non inserito $rowx[0]\n$stmt\n";
+ echo "Channel $channel non è attivo su $call_server_ip, Hangup comando non inserito $rowx[0]\n$stmt\n";
}
else
{
@@ -693,9 +693,9 @@ 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 "Una di queste variabili non e` valido:\n";
- echo "Channel $channel deve avere piu' di 2 caratteri\n";
- echo "queryCID $queryCID deve avere piu' di 14 caratteri\n";
+ echo "Una di queste variabili non è valido:\n";
+ echo "Channel $channel deve avere più di 2 caratteri\n";
+ echo "queryCID $queryCID deve avere più di 14 caratteri\n";
echo "exten $exten deve essere impostato\n";
echo "ext_context $ext_context deve essere impostato\n";
echo "ext_priority $ext_priority deve essere impostato\n";
@@ -776,9 +776,9 @@ 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 "Una di queste variabili non e` valido:\n";
- echo "Channel $channel deve avere piu' di 2 caratteri\n";
- echo "queryCID $queryCID deve avere piu' di 14 caratteri\n";
+ echo "Una di queste variabili non è valido:\n";
+ echo "Channel $channel deve avere più di 2 caratteri\n";
+ echo "queryCID $queryCID deve avere più di 14 caratteri\n";
echo "exten $exten deve essere impostato\n";
echo "extenName $extenName deve essere impostato\n";
echo "ext_context $ext_context deve essere impostato\n";
@@ -806,9 +806,9 @@ 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 "Una di queste variabili non e` valido:\n";
- echo "Channel $channel deve avere piu' di 2 caratteri\n";
- echo "queryCID $queryCID deve avere piu' di 14 caratteri\n";
+ echo "Una di queste variabili non è valido:\n";
+ echo "Channel $channel deve avere più di 2 caratteri\n";
+ echo "queryCID $queryCID deve avere più di 14 caratteri\n";
echo "exten $exten deve essere impostato\n";
echo "ext_context $ext_context deve essere impostato\n";
echo "ext_priority $ext_priority deve essere impostato\n";
@@ -830,9 +830,9 @@ 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 "Una di queste variabili non e` valido:\n";
- echo "Channel $channel deve avere piu' di 2 caratteri\n";
- echo "queryCID $queryCID deve avere piu' di 14 caratteri\n";
+ echo "Una di queste variabili non è valido:\n";
+ echo "Channel $channel deve avere più di 2 caratteri\n";
+ echo "queryCID $queryCID deve avere più di 14 caratteri\n";
echo "extenName $extenName deve essere impostato\n";
echo "ext_context $ext_context deve essere impostato\n";
echo "ext_priority $ext_priority deve essere impostato\n";
@@ -859,9 +859,9 @@ 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 "Una di queste variabili non e` valido:\n";
- echo "Channel $channel deve avere piu' di 2 caratteri\n";
- echo "queryCID $queryCID deve avere piu' di 14 caratteri\n";
+ echo "Una di queste variabili non è valido:\n";
+ echo "Channel $channel deve avere più di 2 caratteri\n";
+ echo "queryCID $queryCID deve avere più di 14 caratteri\n";
echo "extenName $extenName deve essere impostato\n";
echo "exten $exten deve essere impostato\n";
echo "ext_context $ext_context deve essere impostato\n";
@@ -899,10 +899,10 @@ if ($ACTION=="RedirectXtraCXNeW")
{
$channel_liveX=0;
$channel_liveY=0;
- echo "Una di queste variabili non e` valido:\n";
- echo "Channel $channel deve avere piu' di 2 caratteri\n";
- echo "ExtraChannel $extrachannel deve avere piu' di 2 caratteri\n";
- echo "queryCID $queryCID deve avere piu' di 14 caratteri\n";
+ echo "Una di queste variabili non è valido:\n";
+ echo "Channel $channel deve avere più di 2 caratteri\n";
+ echo "ExtraChannel $extrachannel deve avere più di 2 caratteri\n";
+ echo "queryCID $queryCID deve avere più di 14 caratteri\n";
echo "exten $exten deve essere impostato\n";
echo "ext_context $ext_context deve essere impostato\n";
echo "ext_priority $ext_priority deve essere impostato\n";
@@ -1008,8 +1008,8 @@ if ($ACTION=="RedirectXtraCXNeW")
if ($rowx[0]==0)
{
$channel_liveX=0;
- echo "Channel $channel non e` attivo su $call_server_ip, Redirect comando non inserito\n";
- if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non e` attivo su $call_server_ip";}
+ echo "Channel $channel non è attivo su $call_server_ip, Redirect comando non inserito\n";
+ if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non è attivo su $call_server_ip";}
}
}
$stmt="SELECT count(*) FROM live_channels where server_ip = '$server_ip' and channel='$extrachannel';";
@@ -1027,8 +1027,8 @@ if ($ACTION=="RedirectXtraCXNeW")
if ($rowx[0]==0)
{
$channel_liveY=0;
- echo "Channel $channel non e` attivo su $server_ip, Redirect comando non inserito\n";
- if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non e` attivo su $server_ip";}
+ echo "Channel $channel non è attivo su $server_ip, Redirect comando non inserito\n";
+ if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non è attivo su $server_ip";}
}
}
if ( ($channel_liveX==1) && ($channel_liveY==1) )
@@ -1124,10 +1124,10 @@ if ($ACTION=="RedirectXtraNeW")
{
$channel_liveX=0;
$channel_liveY=0;
- echo "Una di queste variabili non e` valido:\n";
- echo "Channel $channel deve avere piu' di 2 caratteri\n";
- echo "ExtraChannel $extrachannel deve avere piu' di 2 caratteri\n";
- echo "queryCID $queryCID deve avere piu' di 14 caratteri\n";
+ echo "Una di queste variabili non è valido:\n";
+ echo "Channel $channel deve avere più di 2 caratteri\n";
+ echo "ExtraChannel $extrachannel deve avere più di 2 caratteri\n";
+ echo "queryCID $queryCID deve avere più di 14 caratteri\n";
echo "exten $exten deve essere impostato\n";
echo "ext_context $ext_context deve essere impostato\n";
echo "ext_priority $ext_priority deve essere impostato\n";
@@ -1225,8 +1225,8 @@ if ($ACTION=="RedirectXtraNeW")
if ($rowx[0]==0)
{
$channel_liveX=0;
- echo "Channel $channel non e` attivo su $call_server_ip, Redirect comando non inserito\n";
- if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non e` attivo su $call_server_ip";}
+ echo "Channel $channel non è attivo su $call_server_ip, Redirect comando non inserito\n";
+ if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non è attivo su $call_server_ip";}
}
}
$stmt="SELECT count(*) FROM live_channels where server_ip = '$server_ip' and channel='$extrachannel';";
@@ -1244,8 +1244,8 @@ if ($ACTION=="RedirectXtraNeW")
if ($rowx[0]==0)
{
$channel_liveY=0;
- echo "Channel $channel non e` attivo su $server_ip, Redirect comando non inserito\n";
- if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non e` attivo su $server_ip";}
+ echo "Channel $channel non è attivo su $server_ip, Redirect comando non inserito\n";
+ if (ereg("SECOND|FIRST|DEBUG",$filename)) {$DBout .= "$channel non è attivo su $server_ip";}
}
}
if ( ($channel_liveX==1) && ($channel_liveY==1) )
@@ -1345,9 +1345,9 @@ 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 "Una di queste variabili non e` valido:\n";
- echo "Channel $channel deve avere piu' di 2 caratteri\n";
- echo "queryCID $queryCID deve avere piu' di 14 caratteri\n";
+ echo "Una di queste variabili non è valido:\n";
+ echo "Channel $channel deve avere più di 2 caratteri\n";
+ echo "queryCID $queryCID deve avere più di 14 caratteri\n";
echo "exten $exten deve essere impostato\n";
echo "ext_context $ext_context deve essere impostato\n";
echo "ext_priority $ext_priority deve essere impostato\n";
@@ -1371,7 +1371,7 @@ if ($ACTION=="Redirect")
if ($rowx[0]==0)
{
$channel_live=0;
- echo "Channel $channel non e` attivo su $server_ip, Redirect comando non inserito\n";
+ echo "Channel $channel non è attivo su $server_ip, Redirect comando non inserito\n";
}
}
if ($channel_live==1)
@@ -1403,7 +1403,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
if ( (strlen($channel)<3) or (strlen($queryCID)<15) or (strlen($filename)<8) )
{
$channel_live=0;
- echo "Channel $channel non e` valido or queryCID $queryCID non e` valido or filename: $filename non e` valido, $ACTION comando non inserito\n";
+ echo "Channel $channel non è valido or queryCID $queryCID non è valido or filename: $filename non è valido, $ACTION comando non inserito\n";
}
else
{
@@ -1422,7 +1422,7 @@ if ( ($ACTION=="Monitor") || ($ACTION=="StopMonitor") )
if ($rowx[0]==0)
{
$channel_live=0;
- echo "Channel $channel non e` attivo su $server_ip, $ACTION comando non inserito\n";
+ echo "Channel $channel non è attivo su $server_ip, $ACTION comando non inserito\n";
}
}
if ($channel_live==1)
@@ -1490,7 +1490,7 @@ if ( ($ACTION=="MonitorConf") || ($ACTION=="StopMonitorConf") )
if ( (strlen($exten)<3) or (strlen($channel)<4) or (strlen($filename)<8) )
{
$channel_live=0;
- echo "Channel $channel non e` valido or exten $exten non e` valido or filename: $filename non e` valido, $ACTION comando non inserito\n";
+ echo "Channel $channel non è valido or exten $exten non è valido or filename: $filename non è valido, $ACTION comando non inserito\n";
}
else
{
@@ -1639,7 +1639,7 @@ if ($ACTION=="VolumeControl")
{
if ( (strlen($exten)<1) or (strlen($channel)<1) or (strlen($stage)<1) or (strlen($queryCID)<1) )
{
- echo "Conferenza $exten, Stage $stage non e` valido or queryCID $queryCID non e` valido, Originate comando non inserito\n";
+ echo "Conferenza $exten, Stage $stage non è valido or queryCID $queryCID non è valido, Originate comando non inserito\n";
}
else
{
diff --git a/LANG_www/agc_it/park_calls_display.php b/LANG_www/agc_it/park_calls_display.php
index c5d2e0b7..6beccec3 100644
--- a/LANG_www/agc_it/park_calls_display.php
+++ b/LANG_www/agc_it/park_calls_display.php
@@ -65,7 +65,7 @@ if (!isset($query_date)) {$query_date = $NOW_DATE;}
if( (strlen($user)<2) or (strlen($pass)<2) or ($auth==0) )
{
- echo "Utentename/Password non validi: |$user|$pass|\n";
+ echo "Username/Password non validi: |$user|$pass|\n";
exit;
}
else
@@ -111,7 +111,7 @@ echo "
if ( (strlen($exten)<1) or (strlen($protocol)<3) )
{
$channel_live=0;
- echo "Exten $exten non e` valido o protocollo $protocol non e` valido\n";
+ echo "Exten $exten non è valido o protocollo $protocol non è valido\n";
exit;
}
else
diff --git a/LANG_www/agc_it/timeclock.php b/LANG_www/agc_it/timeclock.php
index 8299312d..82c5f9c2 100644
--- a/LANG_www/agc_it/timeclock.php
+++ b/LANG_www/agc_it/timeclock.php
@@ -120,10 +120,10 @@ if ( ($stage == 'login') or ($stage == 'logout') )
if ($valid_user < 1)
{
### NOT A VALID USER/PASS
- $VDdisplayMESSAGE = "Lutente e la password che hai inserito non sono attivi nel sistema Si prega di riprovare:";
+ $VDdisplayMESSAGE = "L`utente e la password che hai inserito non sono attivi nel sistema Si prega di riprovare:";
echo"\n";
- echo"AgentOrologio\n";
+ echo"Agent Orologio\n";
echo"\n";
echo"\n";
echo "\n";
@@ -138,7 +138,7 @@ if ( ($stage == 'login') or ($stage == 'logout') )
echo "
$VDdisplayMESSAGE
";
echo "
";
echo "
";
- echo "
Orologio
";
+ echo "
Orologio
";
echo "
\n";
echo "
\n";
echo "
Login Utente:
";
@@ -225,10 +225,10 @@ if ( ($stage == 'login') or ($stage == 'logout') )
if ( ($last_action_sec < 30) and ($status != 'START') )
{
### You cannot log in or out within 30 secondi of your last login/logout
- $VDdisplayMESSAGE = "Non è possibile accedere o entro 30 secondi del tuo ultimo accesso o il logout";
+ $VDdisplayMESSAGE = "Non è possibile accedere o scollegarsi prima di 30 secondi dal tuo ultimo accesso o logout";
echo"\n";
- echo"AgentOrologio\n";
+ echo"Agent Orologio\n";
echo"\n";
echo"\n";
echo "\n";
@@ -243,7 +243,7 @@ if ( ($stage == 'login') or ($stage == 'logout') )
echo "
$VDdisplayMESSAGE
";
echo "
";
echo "
";
- echo "
Orologio
";
+ echo "
Orologio
";
echo "
\n";
echo "
\n";
echo "
Login Utente:
";
@@ -292,8 +292,8 @@ if ( ($stage == 'login') or ($stage == 'logout') )
if ( ($status=='LOGIN') and ($stage=='logout') )
{
- $VDdisplayMESSAGE = "Lei ha appena effettuato laccesso-out";
- $LOGtimeMESSAGE = "Hai effettuato laccesso a$NOW_TIME Importo di tempo sono state registrate in:$totTIME_HMS";
+ $VDdisplayMESSAGE = "Ti sei appena scollegato dal sistema";
+ $LOGtimeMESSAGE = "Ti sei scollegato alle $NOW_TIME Durata della tua connessione: $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';";
@@ -333,24 +333,24 @@ if ( ($stage == 'login') or ($stage == 'logout') )
}
if ( ( ( ($status=='AUTOLOGOUT') or ($status=='START') or ($status=='LOGOUT') ) and ($stage=='logout') ) or ( ($status=='LOGIN') and ($stage=='login') ) )
- {echo "ERRORE: orologio registro entrata già fatto:$status|$stage"; exit;}
+ {echo "ERRORE: Registrazione entrata già effettuata: $status|$stage"; exit;}
if ($referrer=='agent')
- {$BACKlink = "Torna alla schermata di login di agente";}
+ {$BACKlink = "Torna alla schermata di Login";}
if ($referrer=='admin')
- {$BACKlink = "BACK per Amministrazione";}
+ {$BACKlink = "Torna ad Amministrazione";}
if ($referrer=='welcome')
{$BACKlink = "Torna alla schermata iniziale";}
echo"\n";
- echo"AgentOrologio\n";
+ echo"Agent Orologio\n";
echo"\n";
echo"\n";
echo "\n";
echo "
$VDdisplayMESSAGE
";
echo "
";
echo "
";
- echo "
Orologio
";
+ echo "
Orologio
";
echo "
\n";
echo "
\n";
echo "
$LOGtimeMESSAGE
\n";
@@ -368,21 +368,21 @@ if ( ($stage == 'login') or ($stage == 'logout') )
if ( ($status=='AUTOLOGOUT') or ($status=='START') or ($status=='LOGOUT') )
{
- $VDdisplayMESSAGE = "Tempo dallultimo registrato in:$totTIME_HMS";
+ $VDdisplayMESSAGE = "Tempo dal tuo ultimo login: $totTIME_HMS";
$log_action = 'login';
$button_name = 'LOGIN';
- $LOGtimeMESSAGE = "È lultima connesso a:$last_action_date
Clicca qui sotto per LOGIN log-in";
+ $LOGtimeMESSAGE = "Ti sei scollegato l`ultima volta alle: $last_action_date
Clicca LOGIN qui sotto per collegarti";
}
if ($status=='LOGIN')
{
- $VDdisplayMESSAGE = "Quantità di tempo è stato registrato in:$totTIME_HMS";
+ $VDdisplayMESSAGE = "Durata connessione al sistema: $totTIME_HMS";
$log_action = 'logout';
$button_name = 'LOGOUT';
- $LOGtimeMESSAGE = "Hai effettuato laccesso al-in: $last_action_date Quantità di tempo è stato registrato in:$totTIME_HMS
Clicca qui sotto per LOGOUT log-out";
+ $LOGtimeMESSAGE = "Ti sei collegata l`ultima volta alle: $last_action_date Durata connessione al sistema: $totTIME_HMS
Clicca LOGOUT qui sotto per scollegarti";
}
echo"\n";
- echo"AgentOrologio\n";
+ echo"Agent Orologio\n";
echo"\n";
echo"\n";
echo "\n";
@@ -400,7 +400,7 @@ if ( ($stage == 'login') or ($stage == 'logout') )
echo "
\n";
@@ -920,7 +921,7 @@ $VDloginDISPLAY=0;
if ( (strlen($last_agent_event)<2) or (ereg('LOGOUT',$last_agent_event)) )
{
$VDloginDISPLAY=1;
- $VDdisplayMESSAGE = "È necessario accedere al orologio LA PRIMA ";
+ $VDdisplayMESSAGE = "è necessario accedere prima all`orologio ";
}
}
### END - CHECK TO SEE IF AGENT IS LOGGED IN TO TIMECLOCK, IF NOT, OUTPUT ERROR
@@ -932,7 +933,7 @@ $VDloginDISPLAY=0;
if ( (strlen($LOGgroup_shiftsSQL) < 3) and ($VU_shift_override_flag < 1) )
{
$VDloginDISPLAY=1;
- $VDdisplayMESSAGE = "ERRORE: Non ci sono cambiamenti abilitati per il tuo gruppo di utenti ";
+ $VDdisplayMESSAGE = "ERRORE: Non ci sono turni abilitati per il tuo gruppo di utenti ";
}
else
{
@@ -990,7 +991,7 @@ $VDloginDISPLAY=0;
}
if ( ($shift_ok < 1) and ($VU_shift_override_flag < 1) and ($VDloginDISPLAY > 0) )
{
- $VDdisplayMESSAGE.= "
RICHIAMI PER L`OPERATORE : Selezionare una callback per chiamare il cliente ora. Una volta fatto click, il record sara` rimosso dalla lista.
+
height=460>
RICHIAMI PER L`OPERATORE : Selezionare un richiamo per chiamare il cliente ora. Una volta fatto click, il record sarà rimosso dalla lista.
@@ -10626,7 +10631,7 @@ echo "\n";
\n";
+ echo "Nota: prefisso di chiamata $dial_prefix sarà aggiunto all`inizio di questo numero \n";
}
?>
Nota: tutti i nuovi contatti chiamati manualmente andranno nella lista
@@ -10640,7 +10645,7 @@ echo "\n";
Cerca Contatti esistenti:
-
(Questa opzione tentera` di trovare il numero di telefono nel sistema prima di inserire un nuovo contatto)
+
(Questa opzione tenterà di trovare il numero di telefono nel sistema prima di inserire un nuovo contatto)
@@ -10650,13 +10655,13 @@ echo "\n";
If you want to dial a number and have it NOT be added as a new lead, enter in the exact dialstring that you want to call in the Chiamata automatica field below. To hangup this call you will have to open the CHIAMATAS IN THIS SESSION link at the bottom of the screen and hang it up by clicking su its channel link there.
ESITO CHIAMATA : Aggancia di nuovo riduci Selezione Esito di fine chiamata
PAUSA OPERATORE
@@ -10934,7 +10939,7 @@ if ($agent_display_dialable_leads > 0)
height=460>
SCEGLI UN GRUPPO ALIAS :
- Gruppo Alias selezione
+ Selezione Gruppo Alias
\n";
+
+
+##### vicidial agent activity records for this time period #####
+echo "MITTELACTIVITY FOR THIS TIME PERIOD: (10000 record limit)\n";
+echo "
";
diff --git a/LANG_www/vicidial_el/call_report_export.php b/LANG_www/vicidial_el/call_report_export.php
index 77a49b05..3b032c1d 100644
--- a/LANG_www/vicidial_el/call_report_export.php
+++ b/LANG_www/vicidial_el/call_report_export.php
@@ -5,7 +5,7 @@
# and/or vicidial_closer_log information by status, list_id and date range.
# downloads to a flat text file that is tab delimited
#
-# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2
+# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2
#
# CHANGES
#
@@ -14,6 +14,7 @@
# 90508-0644 - Changed to PHP long tags
# 90721-1137 - Added rank and owner as vicidial_list fields
# 91121-0253 - Added list name, list description and status name
+# 100119-1039 - Filtered comments for \n newlines
#
require("dbconnect.php");
@@ -60,8 +61,8 @@ if ($qm_conf_ct > 0)
##### END SETTINGS LOOKUP #####
###########################################
-$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
-$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
+$PHP_AUTH_USER = ereg_replace("[^-_0-9a-zA-Z]","",$PHP_AUTH_USER);
+$PHP_AUTH_PW = ereg_replace("[^-_0-9a-zA-Z]","",$PHP_AUTH_PW);
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and export_reports='1';";
if ($DB) {echo "|$stmt|\n";}
@@ -70,7 +71,7 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$auth=$row[0];
- if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
+if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
{
# Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
# Header("HTTP/1.0 401 Unauthorized");
@@ -215,7 +216,7 @@ if ($run_export > 0)
$k=0;
if ($RUNcampaign > 0)
{
- $stmt = "SELECT vl.call_date,vl.phone_number,vl.status,vl.user,vu.full_name,vl.campaign_id,vi.vendor_lead_code,vi.source_id,vi.list_id,vi.gmt_offset_now,vi.phone_code,vi.phone_number,vi.title,vi.first_name,vi.middle_initial,vi.last_name,vi.address1,vi.address2,vi.address3,vi.city,vi.state,vi.province,vi.postal_code,vi.country_code,vi.gender,vi.date_of_birth,vi.alt_phone,vi.email,vi.security_phrase,vi.comments,vl.length_in_sec,vl.user_group,vl.alt_dial,vi.rank,vi.owner from vicidial_users vu,vicidial_log vl,vicidial_list vi where vl.call_date >= '$query_date 00:00:00' and vl.call_date <= '$end_date 23:59:59' and vu.user=vl.user and vi.lead_id=vl.lead_id $list_SQL $campaign_SQL $user_group_SQL $status_SQL order by vl.call_date limit 100000;";
+ $stmt = "SELECT vl.call_date,vl.phone_number,vl.status,vl.user,vu.full_name,vl.campaign_id,vi.vendor_lead_code,vi.source_id,vi.list_id,vi.gmt_offset_now,vi.phone_code,vi.phone_number,vi.title,vi.first_name,vi.middle_initial,vi.last_name,vi.address1,vi.address2,vi.address3,vi.city,vi.state,vi.province,vi.postal_code,vi.country_code,vi.gender,vi.date_of_birth,vi.alt_phone,vi.email,vi.security_phrase,vi.comments,vl.length_in_sec,vl.user_group,vl.alt_dial,vi.rank,vi.owner,vi.lead_id from vicidial_users vu,vicidial_log vl,vicidial_list vi where vl.call_date >= '$query_date 00:00:00' and vl.call_date <= '$end_date 23:59:59' and vu.user=vl.user and vi.lead_id=vl.lead_id $list_SQL $campaign_SQL $user_group_SQL $status_SQL order by vl.call_date limit 100000;";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$outbound_to_print = mysql_num_rows($rslt);
@@ -231,9 +232,11 @@ if ($run_export > 0)
{
$row=mysql_fetch_row($rslt);
+ $row[29] = preg_replace("/\n|\r/",'!N',$row[29]);
+
$export_status[$k] = $row[2];
$export_list_id[$k] = $row[8];
- $export_rows[$k] = "$row[0]\t$row[1]\t$row[2]\t$row[3]\t$row[4]\t$row[5]\t$row[6]\t$row[7]\t$row[8]\t$row[9]\t$row[10]\t$row[11]\t$row[12]\t$row[13]\t$row[14]\t$row[15]\t$row[16]\t$row[17]\t$row[18]\t$row[19]\t$row[20]\t$row[21]\t$row[22]\t$row[23]\t$row[24]\t$row[25]\t$row[26]\t$row[27]\t$row[28]\t$row[29]\t$row[30]\t$row[31]\t$row[32]\t$row[33]\t$row[34]\t";
+ $export_rows[$k] = "$row[0]\t$row[1]\t$row[2]\t$row[3]\t$row[4]\t$row[5]\t$row[6]\t$row[7]\t$row[8]\t$row[9]\t$row[10]\t$row[11]\t$row[12]\t$row[13]\t$row[14]\t$row[15]\t$row[16]\t$row[17]\t$row[18]\t$row[19]\t$row[20]\t$row[21]\t$row[22]\t$row[23]\t$row[24]\t$row[25]\t$row[26]\t$row[27]\t$row[28]\t$row[29]\t$row[30]\t$row[31]\t$row[32]\t$row[33]\t$row[34]\t$row[35]\t";
$i++;
$k++;
$outbound_calls++;
@@ -243,7 +246,7 @@ if ($run_export > 0)
if ($RUNgroup > 0)
{
- $stmtA = "SELECT vl.call_date,vl.phone_number,vl.status,vl.user,vu.full_name,vl.campaign_id,vi.vendor_lead_code,vi.source_id,vi.list_id,vi.gmt_offset_now,vi.phone_code,vi.phone_number,vi.title,vi.first_name,vi.middle_initial,vi.last_name,vi.address1,vi.address2,vi.address3,vi.city,vi.state,vi.province,vi.postal_code,vi.country_code,vi.gender,vi.date_of_birth,vi.alt_phone,vi.email,vi.security_phrase,vi.comments,vl.length_in_sec,vl.user_group,vl.queue_seconds,vi.rank,vi.owner from vicidial_users vu,vicidial_closer_log vl,vicidial_list vi where vl.call_date >= '$query_date 00:00:00' and vl.call_date <= '$end_date 23:59:59' and vu.user=vl.user and vi.lead_id=vl.lead_id $list_SQL $group_SQL $user_group_SQL $status_SQL order by vl.call_date limit 100000;";
+ $stmtA = "SELECT vl.call_date,vl.phone_number,vl.status,vl.user,vu.full_name,vl.campaign_id,vi.vendor_lead_code,vi.source_id,vi.list_id,vi.gmt_offset_now,vi.phone_code,vi.phone_number,vi.title,vi.first_name,vi.middle_initial,vi.last_name,vi.address1,vi.address2,vi.address3,vi.city,vi.state,vi.province,vi.postal_code,vi.country_code,vi.gender,vi.date_of_birth,vi.alt_phone,vi.email,vi.security_phrase,vi.comments,vl.length_in_sec,vl.user_group,vl.queue_seconds,vi.rank,vi.owner,vi.lead_id from vicidial_users vu,vicidial_closer_log vl,vicidial_list vi where vl.call_date >= '$query_date 00:00:00' and vl.call_date <= '$end_date 23:59:59' and vu.user=vl.user and vi.lead_id=vl.lead_id $list_SQL $group_SQL $user_group_SQL $status_SQL order by vl.call_date limit 100000;";
$rslt=mysql_query($stmtA, $link);
if ($DB) {echo "$stmt\n";}
$inbound_to_print = mysql_num_rows($rslt);
@@ -259,9 +262,11 @@ if ($run_export > 0)
{
$row=mysql_fetch_row($rslt);
+ $row[29] = preg_replace("/\n|\r/",'!N',$row[29]);
+
$export_status[$k] = $row[2];
$export_list_id[$k] = $row[8];
- $export_rows[$k] = "$row[0]\t$row[1]\t$row[2]\t$row[3]\t$row[4]\t$row[5]\t$row[6]\t$row[7]\t$row[8]\t$row[9]\t$row[10]\t$row[11]\t$row[12]\t$row[13]\t$row[14]\t$row[15]\t$row[16]\t$row[17]\t$row[18]\t$row[19]\t$row[20]\t$row[21]\t$row[22]\t$row[23]\t$row[24]\t$row[25]\t$row[26]\t$row[27]\t$row[28]\t$row[29]\t$row[30]\t$row[31]\t$row[32]\t$row[33]\t$row[34]\t";
+ $export_rows[$k] = "$row[0]\t$row[1]\t$row[2]\t$row[3]\t$row[4]\t$row[5]\t$row[6]\t$row[7]\t$row[8]\t$row[9]\t$row[10]\t$row[11]\t$row[12]\t$row[13]\t$row[14]\t$row[15]\t$row[16]\t$row[17]\t$row[18]\t$row[19]\t$row[20]\t$row[21]\t$row[22]\t$row[23]\t$row[24]\t$row[25]\t$row[26]\t$row[27]\t$row[28]\t$row[29]\t$row[30]\t$row[31]\t$row[32]\t$row[33]\t$row[34]\t$row[35]\t";
$i++;
$k++;
}
diff --git a/LANG_www/vicidial_el/dbconnect.php b/LANG_www/vicidial_el/dbconnect.php
index dae8cc7a..dca45485 100644
--- a/LANG_www/vicidial_el/dbconnect.php
+++ b/LANG_www/vicidial_el/dbconnect.php
@@ -1,10 +1,10 @@
-
+ LICENSE: AGPLv2
+# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2
#
if ( file_exists("/etc/astguiclient.conf") )
{
@@ -16,6 +16,8 @@ foreach ($DBCagc as $DBCline)
{$PATHlogs = $DBCline; $PATHlogs = preg_replace("/.*=/","",$PATHlogs);}
if (ereg("^PATHweb", $DBCline))
{$WeBServeRRooT = $DBCline; $WeBServeRRooT = preg_replace("/.*=/","",$WeBServeRRooT);}
+ if (ereg("^VARserver_ip", $DBCline))
+ {$WEBserver_ip = $DBCline; $WEBserver_ip = preg_replace("/.*=/","",$WEBserver_ip);}
if (ereg("^VARDB_server", $DBCline))
{$VARDB_server = $DBCline; $VARDB_server = preg_replace("/.*=/","",$VARDB_server);}
if (ereg("^VARDB_database", $DBCline))
diff --git a/LANG_www/vicidial_el/list_download.php b/LANG_www/vicidial_el/list_download.php
index 6e7bbc86..8604d872 100644
--- a/LANG_www/vicidial_el/list_download.php
+++ b/LANG_www/vicidial_el/list_download.php
@@ -4,13 +4,14 @@
# downloads the entire contents of a vicidial list ID to a flat text file
# that is tab delimited
#
-# Copyright (C) 2009 Matt Florell LICENSE: AGPLv2
+# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2
#
# CHANGES
#
# 90209-1310 - First build
# 90508-0644 - Changed to PHP long tags
# 90721-1238 - Added rank and owner as vicidial_list fields
+# 100119-1039 - Filtered comments for \n newlines
#
require("dbconnect.php");
@@ -35,18 +36,16 @@ $stmt = "SELECT use_non_latin FROM system_settings;";
$rslt=mysql_query($stmt, $link);
if ($DB) {echo "$stmt\n";}
$qm_conf_ct = mysql_num_rows($rslt);
-$i=0;
-while ($i < $qm_conf_ct)
+if ($qm_conf_ct > 0)
{
$row=mysql_fetch_row($rslt);
$non_latin = $row[0];
- $i++;
}
##### END SETTINGS LOOKUP #####
###########################################
-$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
-$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
+$PHP_AUTH_USER = ereg_replace("[^-_0-9a-zA-Z]","",$PHP_AUTH_USER);
+$PHP_AUTH_PW = ereg_replace("[^-_0-9a-zA-Z]","",$PHP_AUTH_PW);
$stmt="SELECT count(*) from vicidial_users where user='$PHP_AUTH_USER' and pass='$PHP_AUTH_PW' and user_level > 7 and download_lists='1';";
if ($DB) {echo "|$stmt|\n";}
@@ -55,7 +54,7 @@ $rslt=mysql_query($stmt, $link);
$row=mysql_fetch_row($rslt);
$auth=$row[0];
- if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
+if( (strlen($PHP_AUTH_USER)<2) or (strlen($PHP_AUTH_PW)<2) or (!$auth))
{
# Header("WWW-Authenticate: Basic realm=\"VICI-PROJECTS\"");
# Header("HTTP/1.0 401 Unauthorized");
@@ -122,6 +121,8 @@ while ($i < $leads_to_print)
{
$row=mysql_fetch_row($rslt);
+ $row[29] = preg_replace("/\n|\r/",'!N',$row[29]);
+
echo "$row[0]\t$row[1]\t$row[2]\t$row[3]\t$row[4]\t$row[5]\t$row[6]\t$row[7]\t$row[8]\t$row[9]\t$row[10]\t$row[11]\t$row[12]\t$row[13]\t$row[14]\t$row[15]\t$row[16]\t$row[17]\t$row[18]\t$row[19]\t$row[20]\t$row[21]\t$row[22]\t$row[23]\t$row[24]\t$row[25]\t$row[26]\t$row[27]\t$row[28]\t$row[29]\t$row[30]\t$row[31]\t$row[32]\t$row[33]\r\n";
$i++;
diff --git a/LANG_www/vicidial_el/listloader.pl b/LANG_www/vicidial_el/listloader.pl
index 052d93e0..72094d84 100644
--- a/LANG_www/vicidial_el/listloader.pl
+++ b/LANG_www/vicidial_el/listloader.pl
@@ -2,7 +2,7 @@
#
# listloader.pl version 2.2.0
#
-# Copyright (C) 2009 Matt Florell,Joe Johnson LICENSE: AGPLv2
+# Copyright (C) 2010 Matt Florell,Joe Johnson LICENSE: AGPLv2
#
#
# CHANGES
@@ -21,6 +21,7 @@
# 80713-0023 - added last_local_call_time field default of 2008-01-01
# 90721-1425 - Added rank and owner as vicidial_list fields
# 91112-0616 - Added title/alt-phone duplicate checking
+# 100118-0537 - Added new Australian and New Zealand DST schemes (FSO-FSA and LSS-FSA)
#
### begin parsing run-time options ###
@@ -598,6 +599,14 @@ foreach $oWkS (@{$oBook->{Worksheet}}) {
if ($AUST_DST) {$gmt_offset++;}
$AC_processed++;
}
+ if ( (!$AC_processed) && ($area_GMT_method =~ /FSO-FSA/) )
+ {
+ if ($DBX) {print " First Sunday October to First Sunday April\n";}
+ &AUSE_dstcalc;
+ if ($DBX) {print " DST: $AUSE_DST\n";}
+ if ($AUSE_DST) {$area_GMT++;}
+ $AC_processed++;
+ }
if ( (!$AC_processed) && ($dst_range =~ /FSO-TSM/) )
{
if ($DBX) {print " First Sunday October to Third Sunday March\n";}
@@ -606,6 +615,14 @@ foreach $oWkS (@{$oBook->{Worksheet}}) {
if ($NZL_DST) {$gmt_offset++;}
$AC_processed++;
}
+ if ( (!$AC_processed) && ($area_GMT_method =~ /LSS-FSA/) )
+ {
+ if ($DBX) {print " Last Sunday September to First Sunday April\n";}
+ &NZLN_dstcalc;
+ if ($DBX) {print " DST: $NZLN_DST\n";}
+ if ($NZLN_DST) {$area_GMT++;}
+ $AC_processed++;
+ }
if ( (!$AC_processed) && ($dst_range =~ /TSO-LSF/) )
{
if ($DBX) {print " Third Sunday October to Last Sunday February\n";}
@@ -1028,6 +1045,72 @@ sub AUST_dstcalc {
+sub AUSE_dstcalc {
+#**********************************************************************
+# FSO-FSA
+# 2008+ AUSTRALIA ONLY (country code 61)
+# This is returns 1 if Daylight Savings Time is in effect and 0 if
+# Standard time is in effect.
+# Based on first Sunday in October and first Sunday in April at 1 am.
+#**********************************************************************
+
+ $AUSE_DST=0;
+ $mm = $mon;
+ $dd = $mday;
+ $ns = $dsec;
+ $dow= $wday;
+
+ if ($mm < 4 || $mm > 10) {
+ $AUSE_DST=1; return 1;
+ } elsif ($mm >= 5 && $mm <= 9) {
+ $AUSE_DST=0; return 0;
+ } elsif ($mm == 4) {
+ if ($dd > 7) {
+ $AUSE_DST=0; return 1;
+ } elsif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 && $ns < (3600+$timezone*3600)) {
+ $AUSE_DST=1; return 0;
+ } else {
+ $AUSE_DST=0; return 1;
+ }
+ } else {
+ if ($dow == 0 && $ns < 7200) {
+ $AUSE_DST=1; return 0;
+ } else {
+ $AUSE_DST=0; return 1;
+ }
+ }
+ } else {
+ $AUSE_DST=1; return 0;
+ }
+ } elsif ($mm == 10) {
+ if ($dd >= 8) {
+ $AUSE_DST=1; return 1;
+ } elsif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 && $ns < (7200+$timezone*3600)) {
+ $AUSE_DST=0; return 0;
+ } else {
+ $AUSE_DST=1; return 1;
+ }
+ } else {
+ if ($dow == 0 && $ns < 3600) {
+ $AUSE_DST=0; return 0;
+ } else {
+ $AUSE_DST=1; return 1;
+ }
+ }
+ } else {
+ $AUSE_DST=0; return 0;
+ }
+ } # end of month checks
+} # end of subroutine dstcalc
+
+
+
+
+
sub NZL_dstcalc {
#**********************************************************************
# FSO-TSM
@@ -1094,6 +1177,74 @@ sub NZL_dstcalc {
+sub NZLN_dstcalc {
+#**********************************************************************
+# LSS-FSA
+# 2007+ NEW ZEALAND (country code 64)
+# This is returns 1 if Daylight Savings Time is in effect and 0 if
+# Standard time is in effect.
+# Based on last Sunday in September and first Sunday in April at 1 am.
+#**********************************************************************
+
+ $NZLN_DST=0;
+ $mm = $mon;
+ $dd = $mday;
+ $ns = $dsec;
+ $dow= $wday;
+
+ if ($mm < 4 || $mm > 9) {
+ $NZLN_DST=1; return 1;
+ } elsif ($mm >= 5 && $mm <= 9) {
+ $NZLN_DST=0; return 0;
+ } elsif ($mm == 4) {
+ if ($dd > 7) {
+ $NZLN_DST=0; return 1;
+ } elsif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 && $ns < (3600+$timezone*3600)) {
+ $NZLN_DST=1; return 0;
+ } else {
+ $NZLN_DST=0; return 1;
+ }
+ } else {
+ if ($dow == 0 && $ns < 7200) {
+ $NZLN_DST=1; return 0;
+ } else {
+ $NZLN_DST=0; return 1;
+ }
+ }
+ } else {
+ $NZLN_DST=1; return 0;
+ }
+ } elsif ($mm == 9) {
+ if ($dd < 25) {
+ $NZLN_DST=0; return 0;
+ } elsif ($dd < ($dow+25)) {
+ $NZLN_DST=0; return 0;
+ } elsif ($dow == 0) {
+ if ($timezone) { # UTC calculations
+ if ($ns < (3600+($timezone-1)*3600)) {
+ $NZLN_DST=0; return 0;
+ } else {
+ $NZLN_DST=1; return 1;
+ }
+ } else { # local time calculations
+ if ($ns < 3600) {
+ $NZLN_DST=0; return 0;
+ } else {
+ $NZLN_DST=1; return 1;
+ }
+ }
+ } else {
+ $NZLN_DST=1; return 1;
+ }
+ } # end of month checks
+} # end of subroutine dstcalc
+
+
+
+
+
sub BZL_dstcalc {
#**********************************************************************
# TSO-LSF
diff --git a/LANG_www/vicidial_el/listloader_super.pl b/LANG_www/vicidial_el/listloader_super.pl
index 9b09bba7..93bfa20e 100644
--- a/LANG_www/vicidial_el/listloader_super.pl
+++ b/LANG_www/vicidial_el/listloader_super.pl
@@ -2,7 +2,7 @@
#
# listloader_super.pl version 2.2.0
#
-# Copyright (C) 2009 Matt Florell,Joe Johnson LICENSE: AGPLv2
+# Copyright (C) 2010 Matt Florell,Joe Johnson LICENSE: AGPLv2
#
#
# CHANGES
@@ -20,6 +20,7 @@
# 80713-0023 - added last_local_call_time field default of 2008-01-01
# 90721-1341 - Added rank and owner as vicidial_list fields
# 91112-0616 - Added title/alt-phone duplicate checking
+# 100118-0539 - Added new Australian and New Zealand DST schemes (FSO-FSA and LSS-FSA)
#
### begin parsing run-time options ###
@@ -600,6 +601,14 @@ foreach $oWkS (@{$oBook->{Worksheet}}) {
if ($AUST_DST) {$gmt_offset++;}
$AC_processed++;
}
+ if ( (!$AC_processed) && ($area_GMT_method =~ /FSO-FSA/) )
+ {
+ if ($DBX) {print " First Sunday October to First Sunday April\n";}
+ &AUSE_dstcalc;
+ if ($DBX) {print " DST: $AUSE_DST\n";}
+ if ($AUSE_DST) {$area_GMT++;}
+ $AC_processed++;
+ }
if ( (!$AC_processed) && ($dst_range =~ /FSO-TSM/) )
{
if ($DBX) {print " First Sunday October to Third Sunday March\n";}
@@ -608,6 +617,14 @@ foreach $oWkS (@{$oBook->{Worksheet}}) {
if ($NZL_DST) {$gmt_offset++;}
$AC_processed++;
}
+ if ( (!$AC_processed) && ($area_GMT_method =~ /LSS-FSA/) )
+ {
+ if ($DBX) {print " Last Sunday September to First Sunday April\n";}
+ &NZLN_dstcalc;
+ if ($DBX) {print " DST: $NZLN_DST\n";}
+ if ($NZLN_DST) {$area_GMT++;}
+ $AC_processed++;
+ }
if ( (!$AC_processed) && ($dst_range =~ /TSO-LSF/) )
{
if ($DBX) {print " Third Sunday October to Last Sunday February\n";}
@@ -1030,6 +1047,72 @@ sub AUST_dstcalc {
+sub AUSE_dstcalc {
+#**********************************************************************
+# FSO-FSA
+# 2008+ AUSTRALIA ONLY (country code 61)
+# This is returns 1 if Daylight Savings Time is in effect and 0 if
+# Standard time is in effect.
+# Based on first Sunday in October and first Sunday in April at 1 am.
+#**********************************************************************
+
+ $AUSE_DST=0;
+ $mm = $mon;
+ $dd = $mday;
+ $ns = $dsec;
+ $dow= $wday;
+
+ if ($mm < 4 || $mm > 10) {
+ $AUSE_DST=1; return 1;
+ } elsif ($mm >= 5 && $mm <= 9) {
+ $AUSE_DST=0; return 0;
+ } elsif ($mm == 4) {
+ if ($dd > 7) {
+ $AUSE_DST=0; return 1;
+ } elsif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 && $ns < (3600+$timezone*3600)) {
+ $AUSE_DST=1; return 0;
+ } else {
+ $AUSE_DST=0; return 1;
+ }
+ } else {
+ if ($dow == 0 && $ns < 7200) {
+ $AUSE_DST=1; return 0;
+ } else {
+ $AUSE_DST=0; return 1;
+ }
+ }
+ } else {
+ $AUSE_DST=1; return 0;
+ }
+ } elsif ($mm == 10) {
+ if ($dd >= 8) {
+ $AUSE_DST=1; return 1;
+ } elsif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 && $ns < (7200+$timezone*3600)) {
+ $AUSE_DST=0; return 0;
+ } else {
+ $AUSE_DST=1; return 1;
+ }
+ } else {
+ if ($dow == 0 && $ns < 3600) {
+ $AUSE_DST=0; return 0;
+ } else {
+ $AUSE_DST=1; return 1;
+ }
+ }
+ } else {
+ $AUSE_DST=0; return 0;
+ }
+ } # end of month checks
+} # end of subroutine dstcalc
+
+
+
+
+
sub NZL_dstcalc {
#**********************************************************************
# FSO-TSM
@@ -1096,6 +1179,74 @@ sub NZL_dstcalc {
+sub NZLN_dstcalc {
+#**********************************************************************
+# LSS-FSA
+# 2007+ NEW ZEALAND (country code 64)
+# This is returns 1 if Daylight Savings Time is in effect and 0 if
+# Standard time is in effect.
+# Based on last Sunday in September and first Sunday in April at 1 am.
+#**********************************************************************
+
+ $NZLN_DST=0;
+ $mm = $mon;
+ $dd = $mday;
+ $ns = $dsec;
+ $dow= $wday;
+
+ if ($mm < 4 || $mm > 9) {
+ $NZLN_DST=1; return 1;
+ } elsif ($mm >= 5 && $mm <= 9) {
+ $NZLN_DST=0; return 0;
+ } elsif ($mm == 4) {
+ if ($dd > 7) {
+ $NZLN_DST=0; return 1;
+ } elsif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 && $ns < (3600+$timezone*3600)) {
+ $NZLN_DST=1; return 0;
+ } else {
+ $NZLN_DST=0; return 1;
+ }
+ } else {
+ if ($dow == 0 && $ns < 7200) {
+ $NZLN_DST=1; return 0;
+ } else {
+ $NZLN_DST=0; return 1;
+ }
+ }
+ } else {
+ $NZLN_DST=1; return 0;
+ }
+ } elsif ($mm == 9) {
+ if ($dd < 25) {
+ $NZLN_DST=0; return 0;
+ } elsif ($dd < ($dow+25)) {
+ $NZLN_DST=0; return 0;
+ } elsif ($dow == 0) {
+ if ($timezone) { # UTC calculations
+ if ($ns < (3600+($timezone-1)*3600)) {
+ $NZLN_DST=0; return 0;
+ } else {
+ $NZLN_DST=1; return 1;
+ }
+ } else { # local time calculations
+ if ($ns < 3600) {
+ $NZLN_DST=0; return 0;
+ } else {
+ $NZLN_DST=1; return 1;
+ }
+ }
+ } else {
+ $NZLN_DST=1; return 1;
+ }
+ } # end of month checks
+} # end of subroutine dstcalc
+
+
+
+
+
sub BZL_dstcalc {
#**********************************************************************
# TSO-LSF
diff --git a/LANG_www/vicidial_el/new_listloader_superL.php b/LANG_www/vicidial_el/new_listloader_superL.php
index 8f834971..019bddc3 100644
--- a/LANG_www/vicidial_el/new_listloader_superL.php
+++ b/LANG_www/vicidial_el/new_listloader_superL.php
@@ -1,7 +1,7 @@
LICENSE: AGPLv2
+# Copyright (C) 2010 Matt Florell,Joe Johnson LICENSE: AGPLv2
#
# AST GUI lead loader from formatted file
#
@@ -29,11 +29,12 @@
# 90522-0506 - Security fix
# 90721-1339 - Added rank and owner as vicidial_list fields
# 91112-0616 - Added title/alt-phone duplicate checking
+# 100118-0543 - Added new Australian and New Zealand DST schemes (FSO-FSA and LSS-FSA)
#
# make sure vicidial_list exists and that your file follows the formatting correctly. This page does not dedupe or do any other lead filtering actions yet at this time.
-$version = '2.2.0-33';
-$build = '91112-0616';
+$version = '2.2.0-34';
+$build = '100118-0543';
require("dbconnect.php");
@@ -2107,6 +2108,74 @@ if ( (!$AC_processed) and ($dst_range == 'FSO-LSM') )
if ($AUST_DST) {$gmt_offset++;}
$AC_processed++;
}
+
+if ( (!$AC_processed) and ($dst_range == 'FSO-FSA') )
+ {
+ if ($DBX) {print " Κυριακή in October to First Κυριακή in April\n";}
+ #**********************************************************************
+ # FSO-FSA
+ # 2008+ AUSTRALIA ONLY (country code 61)
+ # This is returns 1 if Daylight Savings Time is in effect and 0 if
+ # Standard time is in effect.
+ # Based on first Κυριακή in October and first Κυριακή in April at 1 am.
+ #**********************************************************************
+
+ $AUSE_DST=0;
+ $mm = $mon;
+ $dd = $mday;
+ $ns = $dsec;
+ $dow= $wday;
+
+ if ($mm < 4 or $mm > 10) {
+ $AUSE_DST=1;
+ } elseif ($mm >= 5 and $mm <= 9) {
+ $AUSE_DST=0;
+ } elseif ($mm == 4) {
+ if ($dd > 7) {
+ $AUSE_DST=0;
+ } elseif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 and $ns < (3600+$timezone*3600)) {
+ $AUSE_DST=1;
+ } else {
+ $AUSE_DST=0;
+ }
+ } else {
+ if ($dow == 0 and $ns < 7200) {
+ $AUSE_DST=1;
+ } else {
+ $AUSE_DST=0;
+ }
+ }
+ } else {
+ $AUSE_DST=1;
+ }
+ } elseif ($mm == 10) {
+ if ($dd >= 8) {
+ $AUSE_DST=1;
+ } elseif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 and $ns < (7200+$timezone*3600)) {
+ $AUSE_DST=0;
+ } else {
+ $AUSE_DST=1;
+ }
+ } else {
+ if ($dow == 0 and $ns < 3600) {
+ $AUSE_DST=0;
+ } else {
+ $AUSE_DST=1;
+ }
+ }
+ } else {
+ $AUSE_DST=0;
+ }
+ } # end of month checks
+ if ($DBX) {print " DST: $AUSE_DST\n";}
+ if ($AUSE_DST) {$gmt_offset++;}
+ $AC_processed++;
+ }
+
if ( (!$AC_processed) and ($dst_range == 'FSO-TSM') )
{
if ($DBX) {print " First Κυριακή October to Third Κυριακή March\n";}
@@ -2174,6 +2243,75 @@ if ( (!$AC_processed) and ($dst_range == 'FSO-TSM') )
$AC_processed++;
}
+if ( (!$AC_processed) and ($dst_range == 'LSS-FSA') )
+ {
+ if ($DBX) {print " Last Κυριακή in September to First Κυριακή in April\n";}
+ #**********************************************************************
+ # LSS-FSA
+ # 2007+ NEW ZEALAND (country code 64)
+ # This is returns 1 if Daylight Savings Time is in effect and 0 if
+ # Standard time is in effect.
+ # Based on last Κυριακή in September and first Κυριακή in April at 1 am.
+ #**********************************************************************
+
+ $NZLN_DST=0;
+ $mm = $mon;
+ $dd = $mday;
+ $ns = $dsec;
+ $dow= $wday;
+
+ if ($mm < 4 || $mm > 9) {
+ $NZLN_DST=1;
+ } elseif ($mm >= 5 && $mm <= 9) {
+ $NZLN_DST=0;
+ } elseif ($mm == 4) {
+ if ($dd > 7) {
+ $NZLN_DST=0;
+ } elseif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 && $ns < (3600+$timezone*3600)) {
+ $NZLN_DST=1;
+ } else {
+ $NZLN_DST=0;
+ }
+ } else {
+ if ($dow == 0 && $ns < 7200) {
+ $NZLN_DST=1;
+ } else {
+ $NZLN_DST=0;
+ }
+ }
+ } else {
+ $NZLN_DST=1;
+ }
+ } elseif ($mm == 9) {
+ if ($dd < 25) {
+ $NZLN_DST=0;
+ } elseif ($dd < ($dow+25)) {
+ $NZLN_DST=0;
+ } elseif ($dow == 0) {
+ if ($timezone) { # UTC calculations
+ if ($ns < (3600+($timezone-1)*3600)) {
+ $NZLN_DST=0;
+ } else {
+ $NZLN_DST=1;
+ }
+ } else { # τοπικός χρόνος calculations
+ if ($ns < 3600) {
+ $NZLN_DST=0;
+ } else {
+ $NZLN_DST=1;
+ }
+ }
+ } else {
+ $NZLN_DST=1;
+ }
+ } # end of month checks
+ if ($DBX) {print " DST: $NZLN_DST\n";}
+ if ($NZLN_DST) {$gmt_offset++;}
+ $AC_processed++;
+ }
+
if ( (!$AC_processed) and ($dst_range == 'TSO-LSF') )
{
if ($DBX) {print " Third Κυριακή October to Last Κυριακή February\n";}
diff --git a/LANG_www/vicidial_el/non_agent_api.php b/LANG_www/vicidial_el/non_agent_api.php
index b64ab4c0..faecfc20 100644
--- a/LANG_www/vicidial_el/non_agent_api.php
+++ b/LANG_www/vicidial_el/non_agent_api.php
@@ -1,7 +1,7 @@
LICENSE: AGPLv2
+# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2
#
# This script is designed as an API(Application Programming Interface) to allow
# other programs to interact with all non-agent-screen VICIDIAL functions
@@ -30,10 +30,11 @@
# 91026-1059 - Added AREACODE DNC option
# 91203-1140 - Added agent_ingroup_info feature
# 91216-0331 - Added duplication check features to add_lead function
+# 100118-0543 - Added new Australian and New Zealand DST schemes (FSO-FSA and LSS-FSA)
#
-$version = '2.2.0-16';
-$build = '91216-0331';
+$version = '2.2.0-17';
+$build = '100118-0543';
require("dbconnect.php");
@@ -1255,7 +1256,7 @@ if ($function == 'add_lead')
$duplicate_lists .= "'$row[0]',";
$L++;
}
- $duplicate_lists = eregi_replace(",$",'',$dup_lists);
+ $duplicate_lists = eregi_replace(",$",'',$duplicate_lists);
}
}
}
@@ -1287,7 +1288,7 @@ if ($function == 'add_lead')
}
if (eregi("DUPCAMP",$duplicate_check)) # duplicate check within campaign lists
{
- if ($DB>0) {echo "DEBUG: Checking for duplicates - DUPCAMP\n";}
+ if ($DB>0) {echo "DEBUG: Checking for duplicates - DUPCAMP - $duplicate_lists\n";}
$duplicate_found=0;
$stmt="SELECT lead_id,list_id from vicidial_list where phone_number='$phone_number' and list_id IN($duplicate_lists) limit 1;";
$rslt=mysql_query($stmt, $link);
@@ -2046,6 +2047,74 @@ if ( (!$AC_processed) and ($dst_range == 'FSO-LSM') )
if ($AUST_DST) {$gmt_offset++;}
$AC_processed++;
}
+
+if ( (!$AC_processed) and ($dst_range == 'FSO-FSA') )
+ {
+ if ($DBX) {print " Sunday in October to First Sunday in April\n";}
+ #**********************************************************************
+ # FSO-FSA
+ # 2008+ AUSTRALIA ONLY (country code 61)
+ # This is returns 1 if Daylight Savings Time is in effect and 0 if
+ # Standard time is in effect.
+ # Based on first Sunday in October and first Sunday in April at 1 am.
+ #**********************************************************************
+
+ $AUSE_DST=0;
+ $mm = $mon;
+ $dd = $mday;
+ $ns = $dsec;
+ $dow= $wday;
+
+ if ($mm < 4 or $mm > 10) {
+ $AUSE_DST=1;
+ } elseif ($mm >= 5 and $mm <= 9) {
+ $AUSE_DST=0;
+ } elseif ($mm == 4) {
+ if ($dd > 7) {
+ $AUSE_DST=0;
+ } elseif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 and $ns < (3600+$timezone*3600)) {
+ $AUSE_DST=1;
+ } else {
+ $AUSE_DST=0;
+ }
+ } else {
+ if ($dow == 0 and $ns < 7200) {
+ $AUSE_DST=1;
+ } else {
+ $AUSE_DST=0;
+ }
+ }
+ } else {
+ $AUSE_DST=1;
+ }
+ } elseif ($mm == 10) {
+ if ($dd >= 8) {
+ $AUSE_DST=1;
+ } elseif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 and $ns < (7200+$timezone*3600)) {
+ $AUSE_DST=0;
+ } else {
+ $AUSE_DST=1;
+ }
+ } else {
+ if ($dow == 0 and $ns < 3600) {
+ $AUSE_DST=0;
+ } else {
+ $AUSE_DST=1;
+ }
+ }
+ } else {
+ $AUSE_DST=0;
+ }
+ } # end of month checks
+ if ($DBX) {print " DST: $AUSE_DST\n";}
+ if ($AUSE_DST) {$gmt_offset++;}
+ $AC_processed++;
+ }
+
if ( (!$AC_processed) and ($dst_range == 'FSO-TSM') )
{
if ($DBX) {print " First Sunday October to Third Sunday March\n";}
@@ -2113,6 +2182,75 @@ if ( (!$AC_processed) and ($dst_range == 'FSO-TSM') )
$AC_processed++;
}
+if ( (!$AC_processed) and ($dst_range == 'LSS-FSA') )
+ {
+ if ($DBX) {print " Last Sunday in September to First Sunday in April\n";}
+ #**********************************************************************
+ # LSS-FSA
+ # 2007+ NEW ZEALAND (country code 64)
+ # This is returns 1 if Daylight Savings Time is in effect and 0 if
+ # Standard time is in effect.
+ # Based on last Sunday in September and first Sunday in April at 1 am.
+ #**********************************************************************
+
+ $NZLN_DST=0;
+ $mm = $mon;
+ $dd = $mday;
+ $ns = $dsec;
+ $dow= $wday;
+
+ if ($mm < 4 || $mm > 9) {
+ $NZLN_DST=1;
+ } elseif ($mm >= 5 && $mm <= 9) {
+ $NZLN_DST=0;
+ } elseif ($mm == 4) {
+ if ($dd > 7) {
+ $NZLN_DST=0;
+ } elseif ($dd >= ($dow+1)) {
+ if ($timezone) {
+ if ($dow == 0 && $ns < (3600+$timezone*3600)) {
+ $NZLN_DST=1;
+ } else {
+ $NZLN_DST=0;
+ }
+ } else {
+ if ($dow == 0 && $ns < 7200) {
+ $NZLN_DST=1;
+ } else {
+ $NZLN_DST=0;
+ }
+ }
+ } else {
+ $NZLN_DST=1;
+ }
+ } elseif ($mm == 9) {
+ if ($dd < 25) {
+ $NZLN_DST=0;
+ } elseif ($dd < ($dow+25)) {
+ $NZLN_DST=0;
+ } elseif ($dow == 0) {
+ if ($timezone) { # UTC calculations
+ if ($ns < (3600+($timezone-1)*3600)) {
+ $NZLN_DST=0;
+ } else {
+ $NZLN_DST=1;
+ }
+ } else { # local time calculations
+ if ($ns < 3600) {
+ $NZLN_DST=0;
+ } else {
+ $NZLN_DST=1;
+ }
+ }
+ } else {
+ $NZLN_DST=1;
+ }
+ } # end of month checks
+ if ($DBX) {print " DST: $NZLN_DST\n";}
+ if ($NZLN_DST) {$gmt_offset++;}
+ $AC_processed++;
+ }
+
if ( (!$AC_processed) and ($dst_range == 'TSO-LSF') )
{
if ($DBX) {print " Third Sunday October to Last Sunday February\n";}
diff --git a/LANG_www/vicidial_el/user_stats.php b/LANG_www/vicidial_el/user_stats.php
index 0d0e7701..a5cef2d4 100644
--- a/LANG_www/vicidial_el/user_stats.php
+++ b/LANG_www/vicidial_el/user_stats.php
@@ -1,7 +1,7 @@
LICENSE: AGPLv2
+# Copyright (C) 2010 Matt Florell LICENSE: AGPLv2
#
# CHANGES
#
@@ -20,6 +20,7 @@
# 90508-0644 - Changed to PHP long tags
# 90524-2009 - Changed time display to use functions.php
# 91130-2037 - Added user closer log manager flag display
+# 100203-1008 - Added agent activity log section
#
header ("Content-type: text/html; charset=utf-8");
@@ -506,40 +507,150 @@ echo "
\n";
##### vicidial agent inbound calls for this time period #####
echo "Εισερχόμενα/CLOSER CALLS FOR THIS TIME PERIOD: (10000 record limit)\n";
-echo "
\n";
-echo "
#
DATE/TIME
LENGTH
STATUS
PHONE
ΕΚΣΤΡΑΤΕΙΑ
WAIT (S)
LIST
LEAD
HANGUP REASON
\n";
+echo "
\n";
+echo "
#
DATE/TIME
LENGTH
STATUS
PHONE
ΕΚΣΤΡΑΤΕΙΑ
WAIT (S)
ΧΕΙΡΙΣΤΗΣ(S)
LIST
LEAD
HANGUP REASON
\n";
- $stmt="select closecallid,lead_id,list_id,campaign_id,call_date,start_epoch,end_epoch,length_in_sec,status,phone_code,phone_number,user,comments,processed,queue_seconds,user_group,xfercallid,term_reason,uniqueid,agent_only from vicidial_closer_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;";
- $rslt=mysql_query($stmt, $link);
- $logs_to_print = mysql_num_rows($rslt);
+$stmt="select call_date,length_in_sec,status,phone_number,campaign_id,queue_seconds,list_id,lead_id,term_reason from vicidial_closer_log where user='" . mysql_real_escape_string($user) . "' and call_date >= '" . mysql_real_escape_string($begin_date) . " 0:00:01' and call_date <= '" . mysql_real_escape_string($end_date) . " 23:59:59' order by call_date desc limit 10000;";
+$rslt=mysql_query($stmt, $link);
+$logs_to_print = mysql_num_rows($rslt);
- $u=0;
- while ($logs_to_print > $u) {
- $row=mysql_fetch_row($rslt);
- if (eregi("1$|3$|5$|7$|9$", $u))
- {$bgcolor='bgcolor="#B9CBFD"';}
- else
- {$bgcolor='bgcolor="#9BB9FB"';}
+$u=0;
+$TOTALinSECONDS=0;
+$TOTALagentSECONDS=0;
+while ($logs_to_print > $u)
+ {
+ $row=mysql_fetch_row($rslt);
+ if (eregi("1$|3$|5$|7$|9$", $u))
+ {$bgcolor='bgcolor="#B9CBFD"';}
+ else
+ {$bgcolor='bgcolor="#9BB9FB"';}
- $u++;
- echo "
\n";
+
+
+##### vicidial agent activity records for this time period #####
+echo "ΧΕΙΡΙΣΤΗΣACTIVITY FOR THIS TIME PERIOD: (10000 record limit)\n";
+echo "
\n";
+
+
+##### vicidial agent activity records for this time period #####
+echo "AGENTE ACTIVITY FOR THIS TIME PERIOD: (10000 record limit)\n";
+echo "
\n";
+
+
+##### vicidial agent activity records for this time period #####
+echo "AGENT ACTIVITY FOR THIS TIME PERIOD: (10000 record limit)\n";
+echo "
\n";
+
+
+##### vicidial agent activity records for this time period #####
+echo "AGENT ACTIVITY FOR THIS TIME PERIOD: (10000 record limit)\n";
+echo "