当前位置: 首页>>代码示例>>PHP>>正文


PHP Util::timezone方法代码示例

本文整理汇总了PHP中Util::timezone方法的典型用法代码示例。如果您正苦于以下问题:PHP Util::timezone方法的具体用法?PHP Util::timezone怎么用?PHP Util::timezone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Util的用法示例。


在下文中一共展示了Util::timezone方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _

            $acid_link = Util::get_acid_events_link($s_since, $s_date, "time_a");
            echo "<a href=\"{$acid_link}\" class='stop'><span style='color:black' class='tip' title='" . _("First") . ": {$s_since} " . Util::timezone($tz) . "<br>" . _("Last") . ":  {$s_last} " . Util::timezone($tz) . "'>" . $ago . "</span></a>";
            ?>
        			</td>    				
        			<?php 
        } else {
            ?>
        			<td class="nobborder" style='<?php 
            echo $bgcolor;
            ?>
text-align: center' width='12%'>
        				<?php 
            $now = gmdate("Y-m-d H:i:s", gmdate("U") + 3600 * $tz);
            $ago = get_alarm_life($s_since, $now);
            $acid_link = Util::get_acid_events_link($s_since, $now, "time_a");
            echo "<a href=\"{$acid_link}\" class='stop'>\n        \t\t\t\t        <span style='color:black' class='tip' title='" . _("First") . ": {$s_since} " . Util::timezone($tz) . "'>" . $ago . "</span>\n        \t\t\t\t      </a>\n        \t\t\t\t      <img src='/ossim/alarm/style/img/correlating.gif' class='img_cor tip' title='" . _("This alarm is still being correlated and therefore it can not be modified") . "'/>";
            ?>
        			</td>    				
        			<?php 
        }
        ?>
        		
                <td class="left" style="padding-left:10px"><?php 
        echo $source_balloon;
        ?>
</td>
                
                <td class="left" style="padding-left:10px"><?php 
        echo $dest_balloon;
        ?>
</td>
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:alarm_group_response.php

示例2: rawurlencode

					</td>
				</tr>
			</table>
		</tr>
		
		<tr><td style="padding-left:10px;padding-right:10px" colspan="5" class="nobborder"><table class="transparent" width="100%" cellpadding=0 cellspacing=0 border=0><tr><td class="nobborder" style="background:url('../pixmaps/points.gif') repeat-x"><img src="../pixmaps/points.gif"></td></tr></table></td></tr>
		
		<tr>
			<td class="nobborder" style="padding:10px" valign="top">
			<table class="transparent" width="100%">
				<tr>
				<td class="nobborder">
					<table class="transparent">
                    <tr>
                         <?php 
$txtzone = "<a href=\"javascript:;\" class=\"scriptinfoimg\" style=\"color:black\" txt=\"<img src='../pixmaps/timezones/" . rawurlencode(Util::timezone($tz)) . ".png' border=0>\">" . Util::timezone($tz) . "</a>";
?>
                        <td class="nobborder" nowrap style="font-size:11px;font-family:arial"><?php 
echo _("Time frame selection") . " {$txtzone}";
?>
:</td>
                        <td class="nobborder">
                            <div id="widget">
                                <a href="javascript:;"><img src="../pixmaps/calendar.png" id='imgcalendar' border="0"></a>
                                <div id="widgetCalendar"></div>
                            </div>
                        </td>
                        <td class="nobborder" nowrap>
                        <?php 
if ($param_start != "" && $param_end != "" && date_parse($param_start) && date_parse($param_end)) {
    ?>
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:index.php

示例3: QueryResultsOutput

$et->Mark("Initialization");
$qs->RunAction($submit, PAGE_STAT_UADDR, $db);
$et->Mark("Alert Action");
/* Run the query to determine the number of rows (No LIMIT)*/
//$cnt_sql = "SELECT count(DISTINCT $addr_type_name) " . $from . $where;
$et->Mark("Counting Result size");
/* Setup the Query Results Table */
$qro = new QueryResultsOutput("base_stat_uaddr.php?caller=" . $caller . "&amp;addr_type=" . $addr_type);
$qro->AddTitle(" ");
$qro->AddTitle($results_title, "addr_a", " ", " ORDER BY {$addr_type_name} ASC", "addr_d", " ", " ORDER BY {$addr_type_name} DESC");
$qro->AddTitle(gettext("OTX"));
if ($resolve_IP == 1) {
    $qro->AddTitle("FQDN");
}
$qro->AddTitle(Session::show_entities() ? gettext("Context") : gettext("Sensor"));
$qro->AddTitle(gettext("Events") . "&nbsp;# <span class='idminfo' txt='" . Util::timezone(Util::get_timezone()) . "'>(*)</span>", "occur_a", " ", " ORDER BY num_events ASC", "occur_d", " ", " ORDER BY num_events DESC");
$qro->AddTitle(gettext("Unique&nbsp;Events"), "sig_a", " ", " ORDER BY num_sig ASC", "sig_d", " ", " ORDER BY num_sig DESC");
if ($addr_type == DEST_IP) {
    $displaytitle = gettext("Displaying unique destination addresses %d-%d of <b>%s</b> matching your selection.");
    $qro->AddTitle(gettext("Unique Src. Contacted."), "saddr_a", " ", " ORDER BY num_sip ASC", "saddr_d", " ", " ORDER BY num_sip DESC");
} else {
    $displaytitle = gettext("Displaying unique source addresses %d-%d of <b>%s</b> matching your selection.");
    $qro->AddTitle(gettext("Unique Dst. Contacted"), "daddr_a", "  ", " ORDER BY num_dip ASC", "daddr_d", " ", " ORDER BY num_dip DESC");
}
if (file_exists("../kml/GoogleEarth.php")) {
    $qro->AddTitle(gettext("Geo Tools") . " <a href='' onclick='window.open(\"../kml/TourConfig.php?type={$addr_type_name}&ip={$currentIP}\",\"IP {$currentIP} " . ($addr_type == 2 ? _("sources") : _("destinations")) . " - Goggle Earth API\",\"width=1024,height=700,scrollbars=NO,toolbar=1\");return false'><img title='" . _("Geolocation Tour") . "' align='absmiddle' src='../pixmaps/google_earth_icon.png' border='0'></a>&nbsp;&nbsp;<a href='' onclick='window.open(\"../kml/IPGoogleMap.php?type={$addr_type_name}&ip={$currentIP}\",\"IP {$currentIP} " . ($addr_type == 2 ? _("sources") : _("destinations")) . " - Goggle Maps API\",\"width=1024,height=700,scrollbars=NO,toolbar=1\");return false'><img title='" . _("Geolocation Map") . "' align='absmiddle' src='../pixmaps/google_maps_icon.png' border='0'></a>", "geotools");
}
if (!Session::am_i_admin()) {
    $displaytitle = preg_replace("/\\. <b>.*/", ".", $displaytitle);
}
$sort_sql = $qro->GetSortSQL($qs->GetCurrentSort(), $qs->GetCurrentCannedQuerySort());
开发者ID:alienfault,项目名称:ossim,代码行数:31,代码来源:base_stat_uaddr.php

示例4: rawurlencode

<!--<tr><td style="padding-top:5px"><table width="100%" cellpadding=0 cellspacing=0 border=0><tr><td style="background:url('../pixmaps/points.gif') repeat-x"><img src="../pixmaps/points.gif"></td></tr></table></td></tr>-->

<?php 
$urltimecriteria = $_SERVER['SCRIPT_NAME'];
$params = "";
// Clicked from qry_alert or clicked from Time profile must return to main
if (preg_match("/base_qry_alert|base_stat_time/", $urltimecriteria)) {
    $urltimecriteria = "base_qry_main.php";
}
if ($_GET["addr_type"] != "") {
    $params .= "&addr_type=" . $_GET["addr_type"];
}
if ($_GET["sort_order"] != "") {
    $params .= "&sort_order=" . $_GET["sort_order"];
}
$txtzone = "<a href=\"javascript:;\" class=\"scriptinfoimg\" txt=\"<img src='../pixmaps/timezones/" . rawurlencode(Util::timezone($GLOBALS["tz"])) . ".png' border=0>\">" . Util::timezone($GLOBALS["tz"]) . "</a>";
?>

<tr>
	<td>
		<table>
			<tr>
				<td>
					<table width='100%'><tr>
					<td>
						<table cellpadding="0" cellspacing="0">
						<tr>
						<td><?php 
echo _("Time frame selection") . " {$txtzone}";
?>
:&nbsp;</td>
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:base_hdr2.php

示例5: gettext

echo gettext("Sensor");
?>
 </a></td>
        <td style="background-color:#9DD131;font-weight:bold"> <?php 
echo gettext("Since") . "<br>" . Util::timezone($tz);
?>
 </td>
        <td style="background-color:#9DD131;font-weight:bold"><a href="<?php 
echo $_SERVER["SCRIPT_NAME"];
?>
?order=<?php 
echo ossim_db::get_order("timestamp", $order) . "&inf={$inf}&sup={$sup}&src_ip={$src_ip}&dst_ip={$dst_ip}&num_alarms_page={$num_alarms_page}&date_from={$date_from}&date_to={$date_to}&hide_closed={$hide_closed}&norefresh={$norefresh}&query={$query}&directive_id={$directive_id}&no_resolv={$no_resolv}&sensor_query={$sensor_query}&num_events={$num_events}&num_events_op={$num_events_op}";
?>
"> 
            <?php 
echo gettext("Last") . "<br>" . Util::timezone($tz);
?>
 </a></td>
        <td style="background-color:#9DD131;font-weight:bold"><a href="<?php 
echo $_SERVER["SCRIPT_NAME"];
?>
?order=<?php 
echo ossim_db::get_order("src_ip", $order) . "&inf={$inf}&sup={$sup}&src_ip={$src_ip}&dst_ip={$dst_ip}&num_alarms_page={$num_alarms_page}&date_from={$date_from}&date_to={$date_to}&hide_closed={$hide_closed}&norefresh={$norefresh}&query={$query}&directive_id={$directive_id}&no_resolv={$no_resolv}&sensor_query={$sensor_query}&num_events={$num_events}&num_events_op={$num_events_op}";
?>
"> <?php 
echo gettext("Source");
?>
 </a></td>
        <td style="background-color:#9DD131;font-weight:bold"><a href="<?php 
echo $_SERVER["SCRIPT_NAME"];
?>
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:alarm_console.php

示例6: QueryResultsOutput

}
$debug_time_mode >= 1 ? $et->Mark("Counting Result size") : '';
/* Setup the Query Results Table */
$qro = new QueryResultsOutput("base_stat_alerts.php?caller=" . $caller);
$qro->AddTitle(" ");
$qro->AddTitle(gettext("Signature"), "sig_a", " ", " ORDER BY plugin_id ASC,plugin_sid", "sig_d", " ", " ORDER BY plugin_id DESC,plugin_sid");
//if ($db->baseGetDBversion() >= 103) $qro->AddTitle(gettext("Classification"), "class_a", ", MIN(sig_class_id) ", " ORDER BY sig_class_id ASC ", "class_d", ", MIN(sig_class_id) ", " ORDER BY sig_class_id DESC ");
$qro->AddTitle(gettext("Total") . "&nbsp;#", "occur_a", " ", " ORDER BY sig_cnt ASC", "occur_d", " ", " ORDER BY sig_cnt DESC");
$qro->AddTitle(gettext("Sensor") . "&nbsp;#");
$qro->AddTitle(_("Src. Addr."), "saddr_a", ", count(DISTINCT ip_src) AS saddr_cnt ", " ORDER BY saddr_cnt ASC", "saddr_d", ", count(DISTINCT ip_src) AS saddr_cnt ", " ORDER BY saddr_cnt DESC");
$qro->AddTitle(_("Dst. Addr."), "daddr_a", ", count(DISTINCT ip_dst) AS daddr_cnt ", " ORDER BY daddr_cnt ASC", "daddr_d", ", count(DISTINCT ip_dst) AS daddr_cnt ", " ORDER BY daddr_cnt DESC");
$qro->AddTitle(_("First") . " " . Util::timezone($tz), "first_a", ", min(timestamp) AS first_timestamp ", " ORDER BY first_timestamp ASC", "first_d", ", min(timestamp) AS first_timestamp ", " ORDER BY first_timestamp DESC");
if ($show_previous_alert == 1) {
    $qro->AddTitle("Previous");
}
$qro->AddTitle(_("Last") . " " . Util::timezone($tz), "last_a", ", max(timestamp) AS last_timestamp ", " ORDER BY last_timestamp ASC", "last_d", ", max(timestamp) AS last_timestamp ", " ORDER BY last_timestamp DESC");
$sort_sql = $qro->GetSortSQL($qs->GetCurrentSort(), $qs->GetCurrentCannedQuerySort());
/* mstone 20050309 add sig_name to GROUP BY & query so it can be used in postgres ORDER BY */
/* mstone 20050405 add sid & ip counts */
//$sql = "SELECT DISTINCT signature, count(signature) as sig_cnt, " . "min(timestamp), max(timestamp), sig_name, count(DISTINCT(acid_event.sid)), count(DISTINCT(ip_src)), count(DISTINCT(ip_dst)), sig_class_id " . $sort_sql[0] . $from . $where . " GROUP BY signature, sig_name, sig_class_id " . $sort_sql[1];
$sql = "SELECT DISTINCT acid_event.plugin_id, acid_event.plugin_sid, count(acid_event.plugin_sid) as sig_cnt, " . "min(timestamp) as first_timestamp, max(timestamp) as last_timestamp, count(DISTINCT(acid_event.sid)) as sid_cnt, count(DISTINCT(ip_src)) as saddr_cnt, count(DISTINCT(ip_dst)) as daddr_cnt " . $sort_sql[0] . $from . $where . " GROUP BY plugin_id, plugin_sid " . $sort_sql[1];
//echo $sql."<br>";
// use accumulate tables only with timestamp criteria
if ($use_ac) {
    $where = $more = $sqla = $sqlb = $sqlc = "";
    if (preg_match("/timestamp/", $criteria_clauses[1])) {
        $where = "AND " . str_replace("timestamp", "day", $criteria_clauses[1]);
        $sqla = " and ac_alerts_signature.day=ac_alerts_sid.day";
        $sqlb = " and ac_alerts_signature.day=ac_alerts_ipsrc.day";
        $sqlc = " and ac_alerts_signature.day=ac_alerts_ipdst.day";
    }
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:base_stat_alerts.php

示例7: NewBASEDBConnection

    $alert_user = $_SESSION["server"][2];
    $alert_password = $_SESSION["server"][3];
    $alert_dbname = $_SESSION["server"][4];
    require_once "{$BASE_path}/includes/base_db.inc.php";
    $dbtest = NewBASEDBConnection($DBlib_path, $DBtype);
    $dbtest->DB = NewADOConnection();
    error_reporting(E_ERROR | E_PARSE);
    if (!$dbtest->DB->PConnect($alert_port == "" ? $alert_host : $alert_host . ":" . $alert_port, $alert_user, $alert_password, $alert_dbname)) {
        unset($_SESSION['server']);
        echo "<br>&nbsp;<font style='font-family:arial;font-size:11px'><b>ERROR</b>: " . _("Unable to connect") . " " . $alert_dbname . " ({$alert_host}). Connection restored to local.";
        echo "<br>&nbsp;<a href='base_qry_main.php?clear_allcriteria=1&num_result_rows=-1&submit=Query+DB&current_view=-1&sort_order=time_d' style='font-family:arial;font-size:11px'><u>Click here to continue</u></a>";
        exit;
    }
    error_reporting(E_ALL ^ E_NOTICE);
}
$current_url = Util::get_ossim_url();
$events_report_type = 33;
$graph_report_type = 34;
$criteria_report_type = 35;
$unique_events_report_type = 36;
$unique_iplinks_report_type = 37;
$sensors_report_type = 38;
$unique_addr_report_type = 40;
$src_port_report_type = 42;
$dst_port_report_type = 44;
$unique_plugins_report_type = 46;
$unique_country_events_report_type = 48;
//
$current_cols_titles = array("SIGNATURE" => _("Signature"), "DATE" => _("Date") . " " . Util::timezone($tz), "IP_PORTSRC" => _("Source"), "IP_PORTDST" => _("Dest."), "SENSOR" => _("Sensor"), "IP_SRC" => _("Src IP"), "IP_DST" => _("Dst IP"), "IP_SRC_FQDN" => _("Src IP FQDN"), "IP_DST_FQDN" => _("Dst IP FQDN"), "PORT_SRC" => _("Src Port"), "PORT_DST" => _("Dst Port"), "ASSET" => _("Asset &nbsp;<br>S<img src='images/arrow-000-small.gif' border=0 align=absmiddle>D"), "PRIORITY" => _("Prio"), "RELIABILITY" => _("Rel"), "RISK" => _("Risk"), "IP_PROTO" => _("L4-proto"), "USERDATA1" => _("Userdata1"), "USERDATA2" => _("Userdata2"), "USERDATA3" => _("Userdata3"), "USERDATA4" => _("Userdata4"), "USERDATA5" => _("Userdata5"), "USERDATA6" => _("Userdata6"), "USERDATA7" => _("Userdata7"), "USERDATA8" => _("Userdata8"), "USERDATA9" => _("Userdata9"), "USERNAME" => _("Username"), "FILENAME" => _("Filename"), "PASSWORD" => _("Password"), "PAYLOAD" => _("Payload"), "SID" => _("SID"), "CID" => _("CID"), "PLUGIN_ID" => _("Data Source ID"), "PLUGIN_SID" => _("Event Type ID"), "PLUGIN_DESC" => _("Data Source Description"), "PLUGIN_NAME" => _("Data Source Name"), "PLUGIN_SOURCE_TYPE" => _("Source Type"), "PLUGIN_SID_CATEGORY" => _("Category"), "PLUGIN_SID_SUBCATEGORY" => _("SubCategory"), 'CONTEXT' => _("Context"));
$current_cols_widths = array("SIGNATURE" => "45mm", "IP_PORTSRC" => "25mm", "IP_PORTDST" => "25mm", "ASSET" => "12mm", "PRIORITY" => "12mm", "RELIABILITY" => "12mm", "RISK" => "12mm", "IP_PROTO" => "10mm");
$siem_events_title = _("SIEM Events events");
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:vars_session.php

示例8: _

     $buffer .= "<td><b>";
     if ($view && $href_sim) {
         $buffer .= "<a class='greybox' href='{$href_sim}'>";
     }
     $buffer .= "{$risk}";
     if ($view && $href_sim) {
         $buffer .= "</a>";
     }
     $buffer .= "</b></td>";
 }
 $buffer .= "<td class='td_date' nowrap='nowrap'>";
 if ($view) {
     if ($event_date == $orig_date || $event_date == $date) {
         $buffer .= "<a class='greybox' href='" . Util::get_acid_date_link($date, $src_ip, "ip_src") . "'><font color='black'>{$date}</font></a>";
     } else {
         $buffer .= "\n\n\t\t\t\t\t\t\t<a class='greybox' href='" . Util::get_acid_date_link($date, $src_ip, "ip_src") . "'>\n\t\t\t\t\t\t\t  <font color='black'>{$date}</font>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t<div style='display: none;'>\n                                <table class='t_white'>                           \n                                    <tr>\n                                        <td>" . _('Sensor date') . ":</td>\n                                        <td>{$event_date}</td>\n                                    </tr>\n                                    \n                                    <tr>\n                                        <td>" . _("Timezone") . ":</td>\n                                        <td>" . Util::timezone($alarm->get_tzone()) . "</td>\n                                    </tr>\n                                </table>\n                            </div>\t\t\n\t\t\t\t";
     }
 } else {
     $buffer .= "<span style='color:gray'>{$date}</span>";
 }
 $buffer .= "</td>";
 // Src
 if ($no_resolv || !$src_host) {
     $src_name = $src_ip;
     $ctx_src = $ctx;
 } elseif ($src_host) {
     $src_name = $src_host->get_name();
     $ctx_src = $src_host->get_ctx();
 }
 // Src icon and bold
 $src_output = Asset_host::get_extended_name($conn, $geoloc, $src_ip, $ctx_src, $event_info["src_host"], $event_info["src_net"]);
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:alarm_events.php

示例9: _

                </a>
				<span class="tooltip">
					<span class="top"></span>
					<span class="middle ne1 center">
						<b><?php 
            echo _("Sensor date");
            ?>
:</b><br><?php 
            echo $event_date;
            ?>
<br>
						<b><?php 
            echo _("Timezone");
            ?>
:</b> <?php 
            echo Util::timezone($alarm->get_tzone());
            ?>
<br>
					</span>
					<span class="bottom"></span>
				</span>
			</div>
          <?php 
        }
        ?>
        </td>

<?php 
        $src_link = "../report/host_report.php?host={$src_ip}";
        $src_title = _("Src Asset") . ": <b>{$asset_src}</b><br>" . _("IP") . ": <b>{$src_ip}</b>";
        $dst_link = "../report/host_report.php?host={$dst_ip}";
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:events_ajax.php

示例10: arsort

	// 
}

arsort($countries);

// Not found
if (count($countries) == 0)
{
    echo "<tr><td><table class='transparent' style='width:100%'><tr><td colspan='5' style='padding:6px'><b>"._("No external IP addresses were found in the SIEM events")."</b></td></tr></table></td></tr>\n";
}
// Results
else
{
echo '<br/><TABLE class="table_list">';
echo      '<tr><th style="text-align:left" width="25%">Country</th>
               <th width="15%">' . gettext("Events") . "&nbsp;# <span class='idminfo' txt='".Util::timezone(Util::get_timezone())."'>(*)</span>". '</th>
               <th width="10%">' . gettext("Unique Src. #") . '</th>
               <th width="10%">' . gettext("Unique Dst. #") . '</th>
			   <th></th></TR>';
 
$max_cnt = 1;
$i = 0;
foreach ($countries as $country=>$num) { 
	if ($max_cnt == 1 && $num > 0) $max_cnt = $num;
	$data = $country_acc[$country];
	if ($data['srcnum']+$data['dstnum'] == 0) $entry_width = 0;
    else $entry_width = round($data['events'] / $max_cnt * 100);
	if ($data['code']=="") $data['code']="unknown";
	?>
	<tr>
		<td style="padding:7px;text-align:left"><?=$data['flag']." ".$country?></td>
开发者ID:alienfault,项目名称:ossim,代码行数:31,代码来源:base_stat_country.php

示例11: intval

         }
         if ($plugin == "") {
             $plugin = intval($matches[4]);
         }
         $_SESSION["_plugins"][$matches[4]] = $plugin;
     }
 }
 if ($htmlResult) {
     $red = 0;
     $color = "black";
 }
 // para coger
 $date = $matches[2];
 $event_date = $matches[2];
 $tzone = intval($matches[10]);
 $txtzone = Util::timezone($tzone);
 $event_date_uut = Util::get_utc_unixtime($conn, $event_date);
 // Special case: old events
 $eventhour = gmdate("H", $event_date_uut);
 $ctime = explode("/", $logfile);
 $storehour = $ctime[count($ctime) - 3];
 // hours
 $warning = $storehour - $eventhour != 0 ? "<a href='javascript:;' style='text-decoration:none' txt='" . _("Date may not be normalized") . "' class='scriptinfotxt'><img src='../pixmaps/warning.png' align='absmiddle' border='0' style='margin-left:3px;margin-right:3px'></a>" : "";
 // Event date timezone
 if ($tzone != 0) {
     $event_date = gmdate("Y-m-d H:i:s", $event_date_uut + 3600 * $tzone);
 }
 // Apply user timezone
 if ($tz != 0) {
     $date = gmdate("Y-m-d H:i:s", $event_date_uut + 3600 * $tz);
 }
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:process.php

示例12: _

       <BLOCKQUOTE>
       <TABLE BORDER=0 cellpadding=2 cellspacing=0 class="bborder" WIDTH="100%">
          <TR><TD CLASS="header3" WIDTH=50 ALIGN=CENTER ROWSPAN=4>Meta</TD>
              <TD>
                  <TABLE BORDER=0 CELLPADDING=4>
                    <TR><TD CLASS="header" >' . _("ID") . ' #</TD>
                        <TD CLASS="header" nowrap>' . _("Date") . " " . Util::timezone($tz) . '</TD>
                        ' . ($tzcell ? '<TD CLASS="header" nowrap>' . _("Event date") . '</TD>' : '') . '
                        <TD CLASS="header">' . _("Triggered Signature") . '</TD>
                        <TD CLASS="header" nowrap>' . _("Data Source Name") . '</TD>
                        <TD CLASS="header" nowrap>' . _("Data Source ID") . '</TD>
                        <TD CLASS="header" nowrap>' . _("Event Type ID") . '</TD>
						<TD></td></TR>
                    <TR><TD CLASS="plfield" nowrap>' . ($sid . " - " . $cid) . '</TD>
                        <TD CLASS="plfield" nowrap>' . htmlspecialchars($tzdate) . '</TD>
                        ' . ($tzcell ? '<TD CLASS="plfield" nowrap>' . $event_date . '<br>' . Util::timezone($tzone) . '</TD>' : '') . '
                        <TD CLASS="plfield">';
$htmlTriggeredSignature = html_entity_decode(htmlspecialchars(str_replace("##", "", BuildSigByPlugin($plugin_id, $plugin_sid, $db))));
echo $htmlTriggeredSignature . '</TD>
                        <TD CLASS="plfield">' . $plugin_name . '</TD>
                        <TD CLASS="plfield">' . $plugin_id . '</TD>
                        <TD CLASS="plfield">' . $plugin_sid . '</TD>
						' . ($_GET['minimal_view'] == "" ? '<TD CLASS="plfield"><a href="javascript:;" onclick="GB_show(\'' . _("Modify Rel/Prio") . '\',\'modify_relprio.php?id=' . $plugin_id . '&sid=' . $plugin_sid . '\',280,450)" class="greybox"><img src="../vulnmeter/images/pencil.png" border="0" alt="' . _("Modify Rel/Prio") . '" title="' . _("Modify Rel/Prio") . '"></a></td>' : '');
'<a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=2009-0033" target="_blank"><img src="manage_references_icon.php?id=5" alt="cve" title="cve" border="0"></a> <a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=2007-5976" target="_blank"><img src="manage_references_icon.php?id=5" alt="cve" title="cve" border="0"></a> pads: New service detectedArray
';
//<--
$return;
foreach (explode('http://cve.mitre.org/cgi-bin/cvename.cgi?name=', $htmlTriggeredSignature) as $key => $value) {
    if ($key != 0) {
        $posIni = strpos($value, "'");
        if ($posIni !== false) {
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:base_qry_alert.php

示例13: GET

require_once 'av_init.php';
Session::logcheck('analysis-menu', 'EventsForensics');
Session::logcheck('report-menu', 'ReportsReportServer');
$rtype = GET('rtype');
$pro = Session::is_pro();
ossim_valid($rtype, OSS_DIGIT, 'illegal:' . _('Report type'));
if (ossim_error()) {
    $config_nt = array('content' => _("Invalid report type"), 'options' => array('type' => 'nf_error', 'cancel_button' => FALSE), 'style' => 'margin: 20px auto; width: 80%; text-align: center;');
    $nt = new Notification('nt_1', $config_nt);
    $nt->show();
    exit;
}
$addr_type = intval(GET('addr_type'));
$type = array("33" => "Events", "38" => "Sensors", "36" => "Unique_Events", "46" => "Unique_Plugins", "40" => "Unique_Addresses", "42" => "Source_Port", "44" => "Destination_Port", "37" => "Unique_IP_links", "48" => "Unique_Country_Events");
$tz = Util::get_timezone();
$current_cols_titles = array("SIGNATURE" => _("Signature"), "ENTITY" => _("Context"), "DATE" => _("Date") . " " . Util::timezone($tz), "IP_PORTSRC" => _("Source"), "IP_PORTDST" => _("Destination"), "SENSOR" => _("Sensor"), "OTX" => _("OTX"), "IP_SRC" => _("Src IP"), "IP_DST" => _("Dst IP"), "IP_SRC_FQDN" => _("Src IP FQDN"), "IP_DST_FQDN" => _("Dst IP FQDN"), "PORT_SRC" => _("Src Port"), "PORT_DST" => _("Dst Port"), "ASSET" => _("Asset S->D"), "PRIORITY" => _("Prio"), "RELIABILITY" => _("Rel"), "RISK" => _("Risk"), "IP_PROTO" => _("L4-proto"), "USERDATA1" => _("Userdata1"), "USERDATA2" => _("Userdata2"), "USERDATA3" => _("Userdata3"), "USERDATA4" => _("Userdata4"), "USERDATA5" => _("Userdata5"), "USERDATA6" => _("Userdata6"), "USERDATA7" => _("Userdata7"), "USERDATA8" => _("Userdata8"), "USERDATA9" => _("Userdata9"), "USERNAME" => _("Username"), "FILENAME" => _("Filename"), "PASSWORD" => _("Password"), "PAYLOAD" => _("Payload"), "PLUGIN_ID" => _("Data Source ID"), "PLUGIN_SID" => _("Event Type ID"), "PLUGIN_DESC" => _("Data Source Description"), "PLUGIN_NAME" => _("Data Source Name"), "PLUGIN_SOURCE_TYPE" => _("Source Type"), "PLUGIN_SID_CATEGORY" => _("Category"), "PLUGIN_SID_SUBCATEGORY" => _("SubCategory"), 'SRC_USERDOMAIN' => _("IDM User@Domain Src IP"), 'DST_USERDOMAIN' => _("IDM User@Domain Dst IP"), 'SRC_HOSTNAME' => _("IDM Source"), 'DST_HOSTNAME' => _("IDM Destination"), 'SRC_MAC' => _("IDM MAC Src IP"), 'DST_MAC' => _("IDM MAC Dst IP"), 'REP_PRIO_SRC' => _("Rep Src IP Prio"), 'REP_PRIO_DST' => _("Rep Dst IP Prio"), 'REP_REL_SRC' => _("Rep Src IP Rel"), 'REP_REL_DST' => _("Rep Dst IP Rel"), 'REP_ACT_SRC' => _("Rep Src IP Act"), 'REP_ACT_DST' => _("Rep Dst IP Act"), 'DEVICE' => _("Device IP"));
$user = $_SESSION["_user"];
$path_conf = $GLOBALS["CONF"];
/* database connect */
$db = new ossim_db(true);
$conn = $db->connect();
//$conn = $db->custom_connect('localhost',$path_conf->get_conf("ossim_user"),$path_conf->get_conf("ossim_pass"));
$config = new User_config($conn);
$default_view = $config->get($login, 'custom_view_default', 'php', "siem") != "" ? $config->get($login, 'custom_view_default', 'php', "siem") : ($idm_enabled ? 'IDM' : 'default');
$output_name = $type[$rtype] . "_" . $user . "_" . date("Y-m-d", time()) . ".csv";
$csv_header = "";
$csv_body = "";
$var_data = Session::show_entities() ? "Context" : "Sensor";
if ($type[$rtype] == "Events") {
    $sql = "SELECT dataV1, dataV2, dataV11, dataV3, dataV5, dataV10, cell_data\n            FROM datawarehouse.report_data WHERE id_report_data_type={$rtype} and user='{$user}'";
    if ($_SESSION['current_cview'] != $default_view) {
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:csv.php

示例14: get_utc_unixtime

 // 4- Timestamp
 //qroPrintEntry($myrow["timestamp"], "center");
 $tzone = $myrow['tzone'];
 $event_date = $myrow['timestamp'];
 $tzdate = $event_date;
 $event_date_uut = get_utc_unixtime($db, $event_date);
 // Event date timezone
 if ($tzone != 0) {
     $event_date = gmdate("Y-m-d H:i:s", $event_date_uut + 3600 * $tzone);
 }
 // Apply user timezone
 if ($tz != 0) {
     $tzdate = gmdate("Y-m-d H:i:s", $event_date_uut + 3600 * $tz);
 }
 $cell_data['DATE'] = $tzdate;
 $cell_tooltip['DATE'] = $event_date == $myrow['timestamp'] || $event_date == $tzdate ? "" : _("Event date") . ": " . htmlspecialchars("<b>" . $event_date . "</b><br>" . _("Timezone") . ": <b>" . Util::timezone($tzone) . "</b>");
 $cell_pdfdata['DATE'] = str_replace(" ", "<br>", $tzdate);
 $cell_align['DATE'] = "center";
 $cell_more['DATE'] = "nowrap";
 //$tmp_iplookup = 'base_qry_main.php?sig%5B0%5D=%3D' . '&amp;num_result_rows=-1' . '&amp;time%5B0%5D%5B0%5D=+&amp;time%5B0%5D%5B1%5D=+' . '&amp;submit=' . gettext("Query+DB") . '&amp;current_view=-1&amp;ip_addr_cnt=2';
 /* TCP or UDP show the associated port #
    if ( ($current_proto == TCP) || ($current_proto == UDP) )
    $result4 = $db->baseExecute("SELECT layer4_sport, layer4_dport FROM acid_event ".
    "WHERE sid='".$myrow[0]."' AND cid='".$myrow[1]."'");
    
    if ( ($current_proto == TCP) || ($current_proto == UDP) )
    {
    $myrow4 = $result4->baseFetchRow();
    
    if ( $myrow4[0] != "" )  $current_sport = ":".$myrow4[0];
    if ( $myrow4[1] != "" )  $current_dport = ":".$myrow4[1];
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:base_qry_sqlcalls.php

示例15:

* along with this package; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA  02110-1301  USA
*
*
* On Debian GNU/Linux systems, the complete text of the GNU General
* Public License can be found in `/usr/share/common-licenses/GPL-2'.
*
* Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt
*
*/
require 'general.php';
if (Session::menu_perms("analysis-menu", "EventsForensics")) {
    //Timezone
    $tz = Util::get_timezone();
    $text_tz = Util::timezone($tz);
    $htmlPdfReport->pageBreak();
    $htmlPdfReport->setBookmark($title);
    $htmlPdfReport->set($htmlPdfReport->newTitle($title, $date_from, $date_to, null));
    $htmlPdfReport->set("\n<br/><br/>\n");
    $db = new ossim_db();
    $conn = $db->connect();
    $conn->SetFetchMode(ADODB_FETCH_ASSOC);
    $rs = $conn->Execute($query, $params);
    if (!$rs) {
        $htmlPdfReport->set("<table class='w100' cellpadding='0' cellspacing='0'>\n                                <tr><td class='w100' align='center' valign='top'>" . _("No data available") . "</td></tr>\n                             </table>\n");
    } else {
        // Plugins
        $htmlPdfReport->set("<table style='width: 193mm;' cellpadding='0' cellspacing='0'>\n                                <tr><th style='width: 193mm;' align='center'>" . _("SIEM Unique Plugins") . "</th></tr>\n                              </table><br/>\n");
        $htmlPdfReport->set("<table style='width: 193mm; margin:auto;' cellpadding='0' cellspacing='2'>");
        //Headers
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:UniquePlugin_Report.php


注:本文中的Util::timezone方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。