diff --git a/agc_2-X/trunk/www/vicidial/options-example.php b/agc_2-X/trunk/www/vicidial/options-example.php index 91919c15..97783d23 100644 --- a/agc_2-X/trunk/www/vicidial/options-example.php +++ b/agc_2-X/trunk/www/vicidial/options-example.php @@ -1,7 +1,7 @@ LICENSE: AGPLv2 +# Copyright (C) 2019 Matt Florell 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 diff --git a/agc_2-X/trunk/www/vicidial/realtime_report.php b/agc_2-X/trunk/www/vicidial/realtime_report.php index 78f459a7..9ccdd50c 100644 --- a/agc_2-X/trunk/www/vicidial/realtime_report.php +++ b/agc_2-X/trunk/www/vicidial/realtime_report.php @@ -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 "\n"; echo ""._QXZ("RELOAD NOW").""; -if (preg_match('/ALL\-ACTIVE/i',$group_string)) - {echo "       "._QXZ("MODIFY")." | \n";} -else - {echo "       "._QXZ("MODIFY")." | \n";} +if ($LOGuser_level > 7) + { + if (preg_match('/ALL\-ACTIVE/i',$group_string)) + {echo "       "._QXZ("MODIFY")." | \n";} + else + {echo "       "._QXZ("MODIFY")." | \n";} + } + +if ($SUMMARYauth > 0) + {echo ""._QXZ("SUMMARY")." \n";} + +if ($RS_logoutLINK > 0) + {echo " | "._QXZ("LOGOUT")." \n";} + +echo "\n"; -echo ""._QXZ("SUMMARY")." \n"; echo "       "._QXZ("refresh").": \n\n";