2009-03-31 Sancho Lerena <slerena@artica.es>
* operation/events/events.php: Fixed and allow to everybody to see events coming from group 0 (Old server code put events here). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1579 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9b4f7f05cc
commit
82e457c050
|
@ -1,3 +1,8 @@
|
|||
2009-03-31 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* operation/events/events.php: Fixed and allow to everybody to see
|
||||
events coming from group 0 (Old server code put events here).
|
||||
|
||||
2009-03-27 Evi Vanoost <vanooste@rcbi.rochester.edu>
|
||||
|
||||
* include/functions_db.php: Fixed group functions that would return
|
||||
|
|
|
@ -100,7 +100,13 @@ $status = (int) get_parameter ("status", 0); // -1 all, 0 only red, 1 only green
|
|||
$id_agent = (int) get_parameter ("id_agent", -1); //-1 all, 0 system
|
||||
$id_event = (int) get_parameter ("id_event", -1);
|
||||
$pagination = (int) get_parameter ("pagination", $config["block_size"]);
|
||||
$groups = get_user_groups ($config["id_user"], "IR");
|
||||
|
||||
// Access rights are about agent data, not incidents !
|
||||
$groups = get_user_groups ($config["id_user"], "AR");
|
||||
|
||||
// Add group "0".
|
||||
$groups[0]="System";
|
||||
|
||||
$event_view_hr = (int) get_parameter ("event_view_hr", $config["event_view_hr"]);
|
||||
$id_user_ack = get_parameter ("id_user_ack", 0);
|
||||
$group_rep = (int) get_parameter ("group_rep", 1);
|
||||
|
@ -142,6 +148,7 @@ if ($event_view_hr > 0) {
|
|||
$sql_post .= " AND utimestamp > ".$unixtime;
|
||||
}
|
||||
|
||||
|
||||
$url = "index.php?sec=eventos&sec2=operation/events/events&search=".rawurlencode($search)."&event_type=".$event_type."&severity=".$severity."&status=".$status."&ev_group=".$ev_group."&refr=".$config["refr"]."&id_agent=".$id_agent."&id_event=".$id_event."&pagination=".$pagination."&group_rep=".$group_rep."&event_view_hr=".$event_view_hr."&id_user_ack=".$id_user_ack;
|
||||
|
||||
echo "<h2>".__('Events')." > ".__('Main event view'). " ";
|
||||
|
|
Loading…
Reference in New Issue