".$lang_label["delete_event_ok"]."";} } else { audit_db($id_usuario,$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_usuario, $id_group, "IW") ==1){ $sql2="UPDATE tevento SET estado=1, id_usuario = '".$id_usuario."' WHERE id_evento = ".$id_evento; $result2=mysql_query($sql2); if ($result2) { 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 ($row["estado"] == 0) echo ""; else echo ""; echo " | ".$row["evento"]; if ($row["id_agente"] > 0){ echo " | ".dame_nombre_agente($row["id_agente"]).""; echo " | ( ".dame_grupo($id_group)." ) | "; echo ""; } else { // for SNMP generated alerts echo " | ".$lang_label["alert"]." / SNMP"; echo " | "; } if ($row["estado"] <> 0) echo " ".dame_nombre_real($row["id_usuario"])."".substr($row["id_usuario"],0,8).""; echo " | ".$row["timestamp"]; echo " | "; if (($row["estado"] == 0) and (give_acl($id_usuario,$id_group,"IW") ==1)) echo ""; if (give_acl($id_usuario,$id_group,"IM") ==1) echo ""; echo " | "; echo ""; echo " | |||||||||||||||||||||||||
"; echo " "; if (give_acl($id_usuario, 0,"IM") ==1){ echo ""; } echo " |