diff --git a/UPGRADE b/UPGRADE
index bf3fdca8..3e366a68 100644
--- a/UPGRADE
+++ b/UPGRADE
@@ -80,6 +80,10 @@ OTHER CHANGES:
9. Added System Setting option to use 24-hour time for callback setting in agent
screen.
+10. Added User Group viewable report entry for Front Page System Summary
+
+11. Added archive log search and display in modify lead page
+
diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php
index fcd5fef5..ca1c94f5 100644
--- a/www/vicidial/admin.php
+++ b/www/vicidial/admin.php
@@ -111,7 +111,7 @@ $QUERY_STRING = getenv("QUERY_STRING");
$Vreports = 'NONE, Real-Time Main Report, Real-Time Campaign Summary , Inbound Report, Inbound Service Level Report, Inbound Summary Hourly Report, Inbound Daily Report, Inbound DID Report, Inbound IVR Report, Outbound Calling Report, Outbound Summary Interval Report, Outbound IVR Report, Fronter - Closer Report, Lists Campaign Statuses Report, Campaign Status List Report, Export Calls Report, Export Leads Report , Agent Time Detail, Agent Status Detail, Agent Performance Detail, Team Performance Detail, Performance Comparison Report, Single Agent Daily, User Group Login Report, User Timeclock Report, User Group Timeclock Status Report, User Timeclock Detail Report , Server Performance Report, Administration Change Log, List Update Stats, User Stats, User Time Sheet, Download List, Dialer Inventory Report, Maximum System Stats, Maximum Stats Detail, Search Leads Logs, Email Log Report, Carrier Log Report, Campaign Debug, Hangup Cause Report, Lists Pass Report, Called Counts List IDs Report';
-$UGreports = 'ALL REPORTS, NONE, Real-Time Main Report, Real-Time Campaign Summary , Inbound Report, Inbound Service Level Report, Inbound Summary Hourly Report, Inbound Daily Report, Inbound DID Report, Inbound Email Report, Inbound IVR Report, Outbound Calling Report, Outbound Summary Interval Report, Outbound IVR Report, Fronter - Closer Report, Lists Campaign Statuses Report, Campaign Status List Report, Export Calls Report , Export Leads Report , Agent Time Detail, Agent Status Detail, Agent Performance Detail, Team Performance Detail, Performance Comparison Report, Single Agent Daily, User Group Login Report, User Timeclock Report, User Group Timeclock Status Report, User Timeclock Detail Report , Server Performance Report, Administration Change Log, List Update Stats, User Stats, User Time Sheet, Download List, Dialer Inventory Report, Custom Reports Links, CallCard Search, Maximum System Stats, Maximum Stats Detail, Search Leads Logs, Email Log Report, Lists Pass Report, Called Counts List IDs Report';
+$UGreports = 'ALL REPORTS, NONE, Real-Time Main Report, Real-Time Campaign Summary , Inbound Report, Inbound Service Level Report, Inbound Summary Hourly Report, Inbound Daily Report, Inbound DID Report, Inbound Email Report, Inbound IVR Report, Outbound Calling Report, Outbound Summary Interval Report, Outbound IVR Report, Fronter - Closer Report, Lists Campaign Statuses Report, Campaign Status List Report, Export Calls Report , Export Leads Report , Agent Time Detail, Agent Status Detail, Agent Performance Detail, Team Performance Detail, Performance Comparison Report, Single Agent Daily, User Group Login Report, User Timeclock Report, User Group Timeclock Status Report, User Timeclock Detail Report , Server Performance Report, Administration Change Log, List Update Stats, User Stats, User Time Sheet, Download List, Dialer Inventory Report, Custom Reports Links, CallCard Search, Maximum System Stats, Maximum Stats Detail, Search Leads Logs, Email Log Report, Lists Pass Report, Called Counts List IDs Report, Front Page System Summary';
$Vtables = 'NONE,log_noanswer,did_agent_log,contact_information';
@@ -3352,12 +3352,13 @@ else
# 140625-1931 - Added wrapup_after_hotkey campaign option
# 140706-0829 - Incorporated QC includes into code
# 140706-0927 - Added callback_time_24hour system setting
+# 140817-0928 - Added User Group report permission for the Front Page System Summary report
#
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time
-$admin_version = '2.10-448a';
-$build = '140706-0927';
+$admin_version = '2.10-449a';
+$build = '140817-0928';
$STARTtime = date("U");
$SQLdate = date("Y-m-d H:i:s");
@@ -32789,203 +32790,228 @@ if ($ADD==999992)
######################
if ($ADD==999990)
{
- $section_width=640;
- echo " ";
- echo "
\n";
- echo "
";
- echo "
System Summary:
";
- echo "
";
-
- $stmt="select closer_campaigns from vicidial_campaigns;";
- $rslt=mysql_to_mysqli($stmt, $link);
- $row=mysqli_fetch_row($rslt);
- $closer_campaigns = preg_replace("/^ | -$/","",$row[0]);
- $closer_campaigns = preg_replace("/ /","','",$closer_campaigns);
- $closer_campaigns = "'$closer_campaigns'";
-
- $stmt="select status from vicidial_auto_calls where status NOT IN('XFER') and ( (call_type='IN' and campaign_id IN($closer_campaigns)) or (call_type='OUT') );";
- $rslt=mysql_to_mysqli($stmt, $link);
- $active_calls=mysqli_num_rows($rslt);
- $ringing_calls=0;
- if ($active_calls>0) {
- while ($row=mysqli_fetch_row($rslt)) {
- if (!preg_match("/LIVE|CLOSER/i",$row[0]))
- {$ringing_calls++;}
- }
- }
-
-
- $active_stmt="select active from vicidial_users";
- $active_rslt=mysql_to_mysqli($active_stmt, $link);
- while ($active_row=mysqli_fetch_array($active_rslt)) {
- $users[$active_row["active"]]++;
- }
-
- $active_stmt="select active from vicidial_campaigns";
- $active_rslt=mysql_to_mysqli($active_stmt, $link);
- while ($active_row=mysqli_fetch_array($active_rslt)) {
- $campaigns[$active_row["active"]]++;
- }
-
- $active_stmt="select active from vicidial_lists";
- $active_rslt=mysql_to_mysqli($active_stmt, $link);
- while ($active_row=mysqli_fetch_array($active_rslt)) {
- $lists[$active_row["active"]]++;
- }
-
- $active_stmt="select did_active from vicidial_inbound_dids";
- $active_rslt=mysql_to_mysqli($active_stmt, $link);
- while ($active_row=mysqli_fetch_array($active_rslt)) {
- $dids[$active_row["did_active"]]++;
- }
-
- $active_stmt="select active from vicidial_inbound_groups";
- $active_rslt=mysql_to_mysqli($active_stmt, $link);
- while ($active_row=mysqli_fetch_array($active_rslt)) {
- $ingroups[$active_row["active"]]++;
- }
-
- $stmt="select extension,user,conf_exten,status,server_ip,UNIX_TIMESTAMP(last_call_time),UNIX_TIMESTAMP(last_call_finish),call_server_ip,campaign_id from vicidial_live_agents";
- $rslt=mysql_to_mysqli($stmt, $link);
- $agent_incall=0; $agent_total=0;
- while($row=mysqli_fetch_array($rslt))
+ if ( (preg_match("/Front Page System Summary/",$LOGallowed_reports)) or (preg_match("/ALL REPORTS/",$LOGallowed_reports)) )
{
- $status=$row[3];
- $agent_total++;
- if ( (preg_match("/INCALL/i",$status)) or (preg_match("/QUEUE/i",$status)) ) {$agent_incall++; }
- }
- if (preg_match("/MXAG/",$SShosted_settings))
+ $section_width=640;
+ echo " ";
+ echo "
\n";
+ echo "
";
+ echo "
System Summary:
";
+ echo "
";
+
+ $stmt="SELECT closer_campaigns from vicidial_campaigns;";
+ $rslt=mysql_to_mysqli($stmt, $link);
+ $row=mysqli_fetch_row($rslt);
+ $closer_campaigns = preg_replace("/^ | -$/","",$row[0]);
+ $closer_campaigns = preg_replace("/ /","','",$closer_campaigns);
+ $closer_campaigns = "'$closer_campaigns'";
+
+ $stmt="SELECT status from vicidial_auto_calls where status NOT IN('XFER') and ( (call_type='IN' and campaign_id IN($closer_campaigns)) or (call_type='OUT') );";
+ $rslt=mysql_to_mysqli($stmt, $link);
+ $active_calls=mysqli_num_rows($rslt);
+ $ringing_calls=0;
+ if ($active_calls>0)
{
- $vla_set = $SShosted_settings;
- $vla_set = preg_replace("/.*MXAG|_BUILD_|DRA| /",'',$vla_set);
- $vla_set = preg_replace('/[^0-9]/','',$vla_set);
- if (strlen($vla_set)>0)
+ while ($row=mysqli_fetch_row($rslt))
{
- $AAf=''; $AAb='';
- if ($agent_total >= $vla_set)
- {$AAf=''; $AAb='';}
- $agent_total = "$AAf$agent_total / $vla_set$AAb";
+ if (!preg_match("/LIVE|CLOSER/i",$row[0]))
+ {$ringing_calls++;}
}
}
- echo "
\n";
-
- $stmt="select * from vicidial_daily_max_stats where stats_date='$yesterday' and stats_type='TOTAL' order by stats_date, campaign_id asc";
- $rslt=mysql_to_mysqli($stmt, $link);
- echo "
";
+
+ if (mysqli_num_rows($rslt)>0)
+ {
+ while ($row=mysqli_fetch_array($rslt))
+ {
+ echo "
";
+ # echo "
".$row["campaign_id"]."
";
+ echo "
".($total_calls+0)."
";
+ echo "
".($total_inbound+0)."
";
+ echo "
".($total_outbound+0)."
";
+ echo "
".($row["max_agents"]+0)."
";
+ echo "
";
+ }
+ }
+ else
+ {
+ echo "
";
+ echo "
*** NO ACTIVITY FOR $today ***
";
+ echo "
";
+ }
+ echo "
\n";
+
+ $stmt="SELECT * from vicidial_daily_max_stats where stats_date='$yesterday' and stats_type='TOTAL' order by stats_date, campaign_id asc";
+ $rslt=mysql_to_mysqli($stmt, $link);
+ echo "