Made admin and summary report links conditional in the real-time report, RS_logoutLINK options.php option
git-svn-id: svn://192.168.202.10@3090 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
# options.php - manually defined options for vicidial admin scripts
|
||||
#
|
||||
# Copyright (C) 2016 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
# Copyright (C) 2019 Matt Florell <vicidial@gmail.com> LICENSE: AGPLv2
|
||||
#
|
||||
# rename this file to options.php for the settings here to go into effect
|
||||
#
|
||||
@@ -21,6 +21,7 @@
|
||||
# 160102-1249 - Added htmlconvert option for modify lead pages
|
||||
# 160106-1321 - Added disable_user_group_bulk_change option
|
||||
# 160715-0752 - Added graph_canvas_size option for HTML reports
|
||||
# 190414-1121 - Added RS_logoutLINK
|
||||
#
|
||||
|
||||
# used by the realtime_report.php script
|
||||
@@ -61,6 +62,7 @@ $RS_CARRIERstats = 0; # 0=no, 1=yes
|
||||
$RS_PRESETstats = 0; # 0=no, 1=yes
|
||||
$RS_AGENTtimeSTATS = 0; # 0=no, 1=yes
|
||||
$RS_droppedOFtotal = 0; # 0=no, 1=yes
|
||||
$RS_logoutLINK = 0; # 0=no, 1=yes
|
||||
|
||||
# used by agent reports
|
||||
$user_case = 0; # 1=upper-case, 2-lower-case, 0-no-case-change
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
# 180330-1344 - Added fix for WebRTC webphone microphone permissions
|
||||
# 181128-1040 - Added external_web_socket_url option
|
||||
# 190302-1927 - Added variable-length header icon tables
|
||||
# 190414-1106 - Made admin and summary report links conditional, RS_logoutLINK options.php option
|
||||
#
|
||||
|
||||
$startMS = microtime();
|
||||
@@ -550,6 +551,10 @@ if ( (!preg_match("/$report_name/",$LOGallowed_reports)) and (!preg_match("/ALL
|
||||
exit;
|
||||
}
|
||||
|
||||
$SUMMARYauth=1;
|
||||
if ( (!preg_match("/Real-Time Campaign Summary/",$LOGallowed_reports)) and (!preg_match("/ALL REPORTS/",$LOGallowed_reports)) )
|
||||
{$SUMMARYauth=0;}
|
||||
|
||||
$LOGallowed_campaignsSQL='';
|
||||
$whereLOGallowed_campaignsSQL='';
|
||||
if ( (!preg_match("/ALL-/",$LOGallowed_campaigns)) )
|
||||
@@ -1743,12 +1748,22 @@ echo "<span style=\"position:absolute;left:10px;top:120px;z-index:14;\" id=agent
|
||||
echo " ";
|
||||
echo "</span>\n";
|
||||
echo "<a href=\"#\" onclick=\"update_variables('form_submit','','YES')\"><font class='top_settings_val'>"._QXZ("RELOAD NOW")."</font></a>";
|
||||
if (preg_match('/ALL\-ACTIVE/i',$group_string))
|
||||
{echo " <a href=\"./admin.php?ADD=10\"><font class='top_settings_val'>"._QXZ("MODIFY")."</font></a> | \n";}
|
||||
else
|
||||
{echo " <a href=\"./admin.php?ADD=34&campaign_id=$group\"><font class='top_settings_val'>"._QXZ("MODIFY")."</font></a> | \n";}
|
||||
if ($LOGuser_level > 7)
|
||||
{
|
||||
if (preg_match('/ALL\-ACTIVE/i',$group_string))
|
||||
{echo " <a href=\"./admin.php?ADD=10\"><font class='top_settings_val'>"._QXZ("MODIFY")."</font></a> | \n";}
|
||||
else
|
||||
{echo " <a href=\"./admin.php?ADD=34&campaign_id=$group\"><font class='top_settings_val'>"._QXZ("MODIFY")."</font></a> | \n";}
|
||||
}
|
||||
|
||||
if ($SUMMARYauth > 0)
|
||||
{echo "<a href=\"./AST_timeonVDADallSUMMARY.php?RR=$RR&DB=$DB&adastats=$adastats\"><font class='top_settings_val'>"._QXZ("SUMMARY")."</font></a> \n";}
|
||||
|
||||
if ($RS_logoutLINK > 0)
|
||||
{echo " | <a href=\"./admin.php?force_logout=1\"><font class='top_settings_val'>"._QXZ("LOGOUT")."</font></a> \n";}
|
||||
|
||||
echo "</FONT>\n";
|
||||
|
||||
echo "<a href=\"./AST_timeonVDADallSUMMARY.php?RR=$RR&DB=$DB&adastats=$adastats\"><font class='top_settings_val'>"._QXZ("SUMMARY")."</font></a> </FONT>\n";
|
||||
|
||||
|
||||
echo " <font class='top_settings_val'>"._QXZ("refresh").": <span id=refresh_countdown name=refresh_countdown></span></font>\n\n";
|
||||
|
||||
Reference in New Issue
Block a user