//if ($sqlcalls) //{ $criteria_clauses = ProcessCriteria(); //} // Include base_header.php if ($qs->isCannedQuery()) { if (!array_key_exists("minimal_view", $_GET)) { PrintBASESubHeader($page_title . ": " . $qs->GetCurrentCannedQueryDesc(), $page_title . ": " . $qs->GetCurrentCannedQueryDesc(), $cs->GetBackLink(), 1); } else { PrintBASESubHeader($page_title . ": " . $qs->GetCurrentCannedQueryDesc(), $page_title . ": " . $qs->GetCurrentCannedQueryDesc(), "", 1); } } else { if (!array_key_exists("minimal_view", $_GET)) { PrintBASESubHeader($page_title, $page_title, $cs->GetBackLink(), 1); } else { PrintBASESubHeader($page_title, $page_title, "", 1); } } if ($event_cache_auto_update == 1) { UpdateAlertCache($db); } ?> <FORM METHOD="POST" name="PacketForm" id="PacketForm" ACTION="base_qry_main.php" style="margin:0 auto"> <input type='hidden' name="search" value="1" /> <input type="hidden" name="sort_order" value="<?php echo $_GET['sort_order'] != "" ? Util::htmlentities($_GET['sort_order']) : Util::htmlentities($_POST['sort_order']); ?> "> <?php /* Dump some debugging information on the shared state */ // if ($debug_mode > 0) {
$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; /* 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); // Include base_header.php PrintBASESubHeader($page_title, $page_title, $cs->GetBackLink(), 1); if ($event_cache_auto_update == 1) { UpdateAlertCache($db); } if (sizeof($sig) != 0 && strstr($sig[1], "spp_portscan")) { $sig[1] = ""; } /* Build new link for criteria-based sensor page * -- ALS <*****@*****.**> */ $tmp_sensor_lookup = 'base_stat_sensor.php?ip_addr_cnt=2&m_opt=analysis&sm_opt=security_events&h_opt=security_events' . BuildIPFormVars($ip); $tmp_srcdst_iplookup = 'base_qry_main.php?new=2&m_opt=analysis&sm_opt=security_events&h_opt=security_events' . '&num_result_rows=-1' . '&submit=' . gettext("Query DB") . '&current_view=-1&ip_addr_cnt=2' . BuildIPFormVars($ip); $tmp_src_iplookup = 'base_qry_main.php?new=2&m_opt=analysis&sm_opt=security_events&h_opt=security_events' . '&num_result_rows=-1' . '&submit=' . gettext("Query DB") . '&current_view=-1&ip_addr_cnt=1' . BuildSrcIPFormVars($ip); $tmp_dst_iplookup = 'base_qry_main.php?new=2&m_opt=analysis&sm_opt=security_events&h_opt=security_events' . '&num_result_rows=-1' . '&submit=' . gettext("Query DB") . '&current_view=-1&ip_addr_cnt=1' . BuildDstIPFormVars($ip); echo '<CENTER><BR>'; echo '<table border=0 cellpadding=0 cellspacing=0 class="table_list" style="width:90%">';
** 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 <*****@*****.**> */ include "base_conf.php"; include "{$BASE_path}/includes/base_constants.inc.php"; include "{$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}/setup/setup_db.inc.php"; $et = new EventTiming($debug_time_mode); $page_title = "DB Setup"; PrintBASESubHeader($page_title, $page_title, gettext("Back"), 1); ?> <FORM METHOD="POST" ACTION="base_db_setup.php"> <?php $submit = ImportHTTPVar("submit", VAR_ALPHA | VAR_SPACE); /* 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 ($submit == "Create BASE AG") { $result = CreateBASEAG($db); echo '<HR><P>'; } echo ' <TABLE WIDTH="100%">