mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
2010-09-29 Sergio Martin <sergio.martin@artica.es>
* operation/agentes/tactical.php: Hide the server and global data in the tactical view to not administrator users git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3314 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
afae8a8abe
commit
b38febb6f9
@ -1,3 +1,9 @@
|
||||
2010-09-29 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* operation/agentes/tactical.php: Hide the server
|
||||
and global data in the tactical view to not
|
||||
administrator users
|
||||
|
||||
2010-09-29 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* operation/agentes/tactical.php: Allowed to show
|
||||
|
@ -23,13 +23,15 @@ require_once ("include/functions_reporting.php");
|
||||
|
||||
check_login ();
|
||||
|
||||
if (! give_acl ($config['id_user'], 0, "AR")) {
|
||||
if (! check_acl ($config['id_user'], 0, "AR")) {
|
||||
audit_db ($config['id_user'], $_SERVER['REMOTE_ADDR'], "ACL Violation",
|
||||
"Trying to access Agent view (Grouped)");
|
||||
require ("general/noaccess.php");
|
||||
return;
|
||||
}
|
||||
|
||||
$is_admin = check_acl ($config['id_user'], 0, "PM");
|
||||
|
||||
$force_refresh = get_parameter ("force_refresh", "");
|
||||
if ($force_refresh == 1){
|
||||
process_sql ("UPDATE tgroup_stat SET utimestamp = 0");
|
||||
@ -162,7 +164,7 @@ print_cells_temp ($cells);
|
||||
// --------------------------------------------------------------------------
|
||||
// Server performance
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
if($is_admin) {
|
||||
$server_performance = get_server_performance();
|
||||
|
||||
echo '<tr><th colspan="2">'.__('Server performance').'</th></tr>';
|
||||
@ -194,6 +196,7 @@ $cells[4]["color"] = "#000";
|
||||
$cells[4]["href"] = "";
|
||||
|
||||
print_cells_temp ($cells);
|
||||
}
|
||||
|
||||
echo '<tr><th colspan="2">'.__('Summary').'</th></tr>';
|
||||
|
||||
@ -232,7 +235,7 @@ print_events_table ("WHERE estado<>1 ", 10, "100%");
|
||||
// --------------------------------------------------------------------------
|
||||
// Server information
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
if($is_admin) {
|
||||
$serverinfo = get_server_info ();
|
||||
$cells = array ();
|
||||
|
||||
@ -295,7 +298,7 @@ if (!empty ($table->data)) {
|
||||
echo '<div class="nf">'.__('There are no servers configured in the database').'</div>';
|
||||
}
|
||||
unset ($table);
|
||||
|
||||
}
|
||||
|
||||
|
||||
echo '</div>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user