echo " <TD ALIGN='center'> " . str_replace("##", "", html_entity_decode($signame)); // if ($debug_mode > 1) { // SQLTraceLog(__FILE__ . ":" . __LINE__ . ":" . __FUNCTION__ . ": After BuildSigByID()"); // } $tmp_iplookup = 'base_qry_main.php?new=1&sig_type=1&sig%5B0%5D=%3D&sig%5B1%5D=' . urlencode($unique_events[$i][0] . ";" . $unique_events[$i][1]) . '&num_result_rows=-1&submit=' . gettext("Query DB") . '¤t_view=-1&ip_addr_cnt=2' . BuildIPFormVars(urlencode($ip)); $tmp_sensor_lookup = 'base_stat_sensor.php?sig_type=1&sig%5B0%5D=%3D&sig%5B1%5D=' . urlencode($unique_events[$i][0] . ";" . $unique_events[$i][1]) . '&ip_addr_cnt=2' . BuildIPFormVars(urlencode($ip)); echo " <TD align='center'> <A HREF=\"{$tmp_iplookup}\">" . Util::htmlentities($total) . "</A> "; echo " <TD align='center'> <A HREF=\"{$tmp_sensor_lookup}\">" . Util::htmlentities($num_sensors) . "</A> "; //echo " <TD align='center'> $num_sensors"; echo " <TD align='center'> {$start_time}"; echo " <TD align='center' valign='middle'> {$stop_time}"; echo '</TR>'; } echo "</TABLE>\n"; } $et = new EventTiming($debug_time_mode); $cs = new CriteriaState("base_stat_ipaddr.php"); $cs->ReadState(); $ip = ImportHTTPVar("ip", VAR_DIGIT | VAR_PERIOD); $ip = Util::htmlentities($ip); $netmask = ImportHTTPVar("netmask", VAR_DIGIT); $action = ImportHTTPVar("action", VAR_ALPHA); $submit = ImportHTTPVar("submit", VAR_ALPHA | VAR_SPACE); // Check role out and redirect if needed -- Kevin $roleneeded = 10000; #$BUser = new BaseUser(); #if (($BUser->hasRole($roleneeded) == 0) && ($Use_Auth_System == 1)) base_header("Location: " . $BASE_urlpath . "/index.php"); if ($netmask == '') { $netmask = "32"; } $page_title = $ip . '/' . $netmask;
** Copyright (C) 2000 Carnegie Mellon University ** ** (see the file 'base_main.php' for license details) ** ** Built upon work by Roman Danyliw <*****@*****.**>, <*****@*****.**> ** Built upon work by the BASE Project Team <*****@*****.**> */ require "base_conf.php"; include "{$BASE_path}/includes/base_constants.inc.php"; include "{$BASE_path}/includes/base_include.inc.php"; include_once "{$BASE_path}/includes/base_action.inc.php"; include_once "{$BASE_path}/base_db_common.php"; include_once "{$BASE_path}/base_common.php"; include_once "{$BASE_path}/base_qry_common.php"; include_once "{$BASE_path}/base_ag_common.php"; $debug_time_mode >= 1 ? $et = new EventTiming($debug_time_mode) : ''; $cs = new CriteriaState("base_ag_main.php"); $cs->ReadState(); $qs = new QueryState(); $submit = ImportHTTPVar("submit", VAR_ALPHA | VAR_SPACE, array(gettext("Delete Selected"), gettext("Delete ALL on Screen"), _ENTIREQUERY)); $ag_action = ImportHTTPVar("ag_action", VAR_ALPHA | VAR_USCORE); //$ag_id = ImportHTTPVar("ag_id", VAR_DIGIT); $ag_id = filterSql(ImportHTTPVar("ag_id", VAR_DIGIT)); $ag_name = filterSql(ImportHTTPVar("ag_name")); $ag_desc = filterSql(ImportHTTPVar("ag_desc")); // Check role out and redirect if needed -- Kevin $roleneeded = 10000; $BUser = new BaseUser(); if ($BUser->hasRole($roleneeded) == 0 && $Use_Auth_System == 1) { base_header("Location: " . $BASE_urlpath . "/index.php"); }
** Built upon work by Roman Danyliw <*****@*****.**>, <*****@*****.**> ** Built upon work by the BASE Project Team <*****@*****.**> */ require "base_conf.php"; require "vars_session.php"; require "{$BASE_path}/includes/base_constants.inc.php"; require "{$BASE_path}/includes/base_include.inc.php"; include_once "{$BASE_path}/base_db_common.php"; include_once "{$BASE_path}/base_common.php"; include_once "{$BASE_path}/base_stat_common.php"; include_once "{$BASE_path}/base_qry_common.php"; include_once "{$BASE_path}/base_ag_common.php"; include_once "geoip.inc"; $_SESSION["siem_default_group"] = "base_stat_sensor.php?sort_order=occur_d"; $geoloc = new Geolocation("/usr/share/geoip/GeoLiteCity.dat"); $et = new EventTiming($debug_time_mode); $cs = new CriteriaState("base_stat_sensor.php"); $cs->ReadState(); $qs = new QueryState(); // Check role out and redirect if needed -- Kevin $roleneeded = 10000; #$BUser = new BaseUser(); #if (($BUser->hasRole($roleneeded) == 0) && ($Use_Auth_System == 1)) base_header("Location: " . $BASE_urlpath . "/index.php"); $submit = ImportHTTPVar("submit", VAR_ALPHA | VAR_SPACE, array(gettext("Delete Selected"), gettext("Delete ALL on Screen"), _ENTIREQUERY)); $export = intval(ImportHTTPVar("complete", VAR_DIGIT)); // Called from report_launcher.php $qs->MoveView($submit); /* increment the view if necessary */ $page_title = gettext("Sensor Listing"); /* Connect to the Alert database */ $db = NewBASEDBConnection($DBlib_path, $DBtype);
} /* * Need to import $submit and set the $QUERY_STRING early to support * the back button. Otherwise, the value of $submit will not be passed * to the history. */ /* This call can include "#xx-(xx-xx)" values and "submit" values. */ $submit = ImportHTTPVar("submit", VAR_DIGIT | VAR_PUNC | VAR_LETTER, array(_("Delete Selected"), _("Delete ALL on Screen"), _ENTIREQUERY)); //if(preg_match("/^#0(-\(\d+-\d+\))$/", $submit, $matches)){ //$submit = "#1" . $matches[1]; //} $sort_order = ImportHTTPVar("sort_order", VAR_LETTER | VAR_USCORE); $pag = ImportHTTPVar("pag", VAR_DIGIT); $_SERVER["QUERY_STRING"] = "submit=" . rawurlencode($submit); //unset($_GET["sort_order"]); $et = new EventTiming($debug_time_mode); $cs = new CriteriaState("base_qry_main.php", "&new=1&submit=" . _("Query DB")); $cs->ReadState(); $qs = new QueryState(); $page_title = _("Event"); /* Connect to the Alert database */ $db = NewBASEDBConnection($DBlib_path, $DBtype); $db->baseDBConnect($db_connect_method, $alert_dbname, $alert_host, $alert_port, $alert_user, $alert_password); if (!array_key_exists("minimal_view", $_GET) && !array_key_exists("noheader", $_GET)) { PrintCriteria(""); } $criteria_clauses = ProcessCriteria(); // Include base_header.php PrintBASESubHeader($page_title, $page_title, $cs->GetBackLink(), 1); $from = " FROM acid_event " . $criteria_clauses[0]; $where = " WHERE " . $criteria_clauses[1];