예제 #1
0
 function RunAction($submit, $which_page, $db)
 {
     global $show_rows;
     require_once "av_init.php";
     if ($this->action != "del_alert") {
         ActOnSelectedAlerts($this->action, $this->valid_action_list, $submit, $this->valid_action_op_list, $this->action_arg, $which_page, $this->action_chk_lst, $this->action_lst, $show_rows, $this->num_result_rows, $this->action_sql, $this->current_canned_query, $db);
     } else {
         if (!Session::menu_perms("analysis-menu", "EventsForensicsDelete") and ($submit == gettext("Delete Selected") or $submit == gettext("Delete ALL on Screen") or $submit == gettext("Delete Entire Query"))) {
             echo "<span style='color:red'>" . _("You don't have required permissions to delete events.") . "</span>";
         } else {
             ActOnSelectedAlerts($this->action, $this->valid_action_list, $submit, $this->valid_action_op_list, $this->action_arg, $which_page, $this->action_chk_lst, $this->action_lst, $show_rows, $this->num_result_rows, $this->action_sql, $this->current_canned_query, $db);
         }
     }
 }
예제 #2
0
 function RunAction($submit, $which_page, $db)
 {
     global $show_rows;
     require_once "classes/Session.inc";
     if ($this->action != "del_alert") {
         ActOnSelectedAlerts($this->action, $this->valid_action_list, $submit, $this->valid_action_op_list, $this->action_arg, $which_page, $this->action_chk_lst, $this->action_lst, $show_rows, $this->num_result_rows, $this->action_sql, $this->current_canned_query, $db);
     } else {
         if (!Session::menu_perms("MenuEvents", "EventsForensicsDelete")) {
             echo "<span style='color:red'>" . _("You don't have required permissions to delete events.") . "</span>";
         } else {
             ActOnSelectedAlerts($this->action, $this->valid_action_list, $submit, $this->valid_action_op_list, $this->action_arg, $which_page, $this->action_chk_lst, $this->action_lst, $show_rows, $this->num_result_rows, $this->action_sql, $this->current_canned_query, $db);
         }
     }
 }