예제 #1
0
function PrintBASESubHeader($page_title, $page_name, $back_link, $refresh = 0, $page = "")
{
    global $debug_mode, $BASE_VERSION, $BASE_path, $BASE_urlpath, $html_no_cache, $max_script_runtime, $Use_Auth_System, $stat_page_refresh_time, $base_style, $refresh_stat_page, $ossim_servers, $sensors, $hosts, $database_servers, $DBlib_path, $DBtype, $db_connect_method, $alert_dbname, $alert_host, $alert_port, $alert_user, $alert_password;
    if (ini_get("safe_mode") != true) {
        set_time_limit($max_script_runtime);
    }
    echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- ' . gettext("Forensics Console " . $BASE_installID) . $BASE_VERSION . ' -->
<HTML>
  <HEAD><meta http-equiv="Content-Type" content="text/html; charset=' . gettext("iso-8859-1") . '">';
    if ($html_no_cache == 1) {
        echo '<META HTTP-EQUIV="pragma" CONTENT="no-cache">';
    }
    //echo '<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />';
    if ($refresh == 1 && !$_SESSION['norefresh']) {
        PrintFreshPage($refresh_stat_page, $stat_page_refresh_time);
    }
    if (@$_COOKIE['archive'] == 0) {
        echo '<TITLE>' . gettext("Forensics Console " . $BASE_installID) . ': ' . $page_title . '</TITLE>';
    } else {
        echo '<TITLE>' . gettext("Forensics Console " . $BASE_installID) . ': ' . $pagegettext("Forensics Console " . $BASE_installID) . ' -- ARCHIVE</TITLE>';
    }
    echo '<LINK rel="stylesheet" type="text/css" HREF="' . $BASE_urlpath . '/styles/' . $base_style . '">
		<!--[if IE]><script language="javascript" type="text/javascript" src="../js/jqplot/excanvas.js"></script><![endif]-->
		<script type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
        </HEAD>
        <BODY>';
    if (!array_key_exists("minimal_view", $_GET)) {
        include "{$BASE_path}/base_hdr1.php";
        $db = NewBASEDBConnection($DBlib_path, $DBtype);
        $db->baseDBConnect($db_connect_method, $alert_dbname, $alert_host, $alert_port, $alert_user, $alert_password);
        include "{$BASE_path}/base_hdr2.php";
    }
    //echo "<TABLE WIDTH=\"100%\"><TR><TD ALIGN=RIGHT>".$back_link."</TD></TR></TABLE><BR>";
    if ($debug_mode > 0) {
        PrintPageHeader();
    }
}
예제 #2
0
$archiveDisplay = isset($_COOKIE['archive']) && $_COOKIE['archive'] == 1 ? "-- ARCHIVE" : "";
echo '<title>' . gettext("Forensics Console " . $BASE_installID) . $BASE_VERSION . $archiveDisplay . '</title>
<link rel="stylesheet" type="text/css" href="styles/' . $base_style . '">';
?>
</head>
<body>
<?php 
include "../hmenu.php";
?>
  <div class="header">&nbsp;<?php 
echo gettext("Statistical Overview");
?>
</div>
<?php 
if ($debug_mode == 1) {
    PrintPageHeader();
}
/* Check that PHP was built correctly */
$tmp_str = verify_php_build($DBtype);
if ($tmp_str != "") {
    echo $tmp_str;
    die;
}
/* 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);
/* Check that the DB schema is recent */
$tmp_str = verify_db($db, $alert_dbname, $alert_host);
if ($tmp_str != "") {
    echo $tmp_str;
    die;