".$lang_label["delete_event_ok"].""; audit_db($id_user,$REMOTE_ADDR, "Event deleted","Deleted event: ".return_event_description ($id_evento)); } } else { audit_db($id_user,$REMOTE_ADDR, "ACL Violation", "Trying to delete event ID".$id_evento); } } // Check Event (only incident write access). if (isset($_GET["check"])){ $id_evento = $_GET["check"]; // Look for event_id following parameters: id_group. $id_group = gime_idgroup_from_idevent($id_evento); if (give_acl($id_user, $id_group, "IW") ==1){ $sql2="UPDATE tevento SET estado = 1, id_usuario = '".$id_user."' WHERE id_evento = ".$id_evento; $result2=mysql_query($sql2); if ($result2) { echo "
";
echo "
| ";
echo "
|
".$lang_label["status"]." | "; echo "".$lang_label["event_name"]." | "; echo "".$lang_label["agent_name"]." | "; echo "".$lang_label["group"]." | "; echo "".$lang_label["id_user"]." | "; echo "".$lang_label["timestamp"]." | "; echo "".$lang_label["action"]." | "; echo ""; echo ""; echo ' | '; echo "|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
"; if ($row2["estado"] == 0) echo ""; else echo ""; echo " | ".$row2["evento"]; if ($row2["id_agente"] > 0){ echo " | ".dame_nombre_agente($row2["id_agente"]).""; echo " | "; echo " | "; } else { // for SNMP generated alerts echo " | ".$lang_label["alert"]." / SNMP"; echo " | "; echo " | "; } if ($row2["estado"] <> 0) echo "".substr($row2["id_usuario"],0,8)." ".dame_nombre_real($row2["id_usuario"]).""; echo " | ".$row2["timestamp"]; echo " | "; if (($row2["estado"] == 0) and (give_acl($id_user,$id_group,"IW") ==1)) echo " "; if (give_acl($id_user,$id_group,"IM") ==1) echo " "; if (give_acl($id_user,$id_group,"IW") == 1) echo ""; echo " | "; echo ""; echo " |
"; echo " "; if (give_acl($id_user, 0,"IM") ==1){ echo ""; } echo " |
";
echo "".$lang_label["status"].""; echo " - ".$lang_label["validated_event"]; echo ""; echo " - ".$lang_label["not_validated_event"]; echo " | ";
echo "";
echo "".$lang_label["action"].""; echo " - ".$lang_label["validate_event"]; echo ""; echo " - ".$lang_label["delete_event"]; echo " "; echo " - ".$lang_label["create_incident"]; echo " |