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


PHP qroPrintEntryHeader函数代码示例

本文整理汇总了PHP中qroPrintEntryHeader函数的典型用法代码示例。如果您正苦于以下问题:PHP qroPrintEntryHeader函数的具体用法?PHP qroPrintEntryHeader怎么用?PHP qroPrintEntryHeader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: strtolower

 $unique_event_cnt = $myrow['sig_cnt'] != "" ? $myrow['sig_cnt'] : "-";
 $num_src_ip = $myrow['saddr_cnt'] != "" ? $myrow['saddr_cnt'] : "-";
 $num_dst_ip = $myrow['daddr_cnt'] != "" ? $myrow['daddr_cnt'] : "-";
 $_country_aux = $geoloc->get_country_by_host($conn, $sensor_ip);
 $country = strtolower($_country_aux[0]);
 $country_name = $_country_aux[1];
 $homelan = "";
 if ($country) {
     $country_img = " <img src=\"/ossim/pixmaps/flags/" . $country . ".png\" alt=\"{$country_name}\" title=\"{$country_name}\">";
     $slnk = $current_url . "/pixmaps/flags/" . $country . ".png";
 } else {
     $country_img = "";
     $slnk = "";
 }
 /* Print out */
 qroPrintEntryHeader($i);
 $tmp_rowid = $device_id;
 echo '    <TD><INPUT TYPE="checkbox" NAME="action_chk_lst[' . $i . ']" VALUE="' . $tmp_rowid . '">';
 echo '        <INPUT TYPE="hidden" NAME="action_lst[' . $i . ']" VALUE="' . $tmp_rowid . '"></TD>';
 qroPrintEntry($sensor_ip, 'center', 'middle');
 qroPrintEntry($sname . $country_img . $homelan, 'center', 'middle');
 qroPrintEntry($device_ip, 'center', 'middle');
 qroPrintEntry('<A HREF="base_qry_main.php?new=1&amp;sensor=' . $device_id . '&amp;num_result_rows=-1&amp;submit=' . gettext("Query DB") . '">' . Util::number_format_locale($event_cnt, 0) . '</A>', 'center', 'middle');
 qroPrintEntry('<div id="ua' . $device_id . '" class="sens">' . $unique_event_cnt . '</div>', 'center', 'middle', 'nowrap');
 qroPrintEntry('<div id="sa' . $device_id . '">' . $num_src_ip . '</div>', 'center', 'middle', 'nowrap');
 qroPrintEntry('<div id="da' . $device_id . '">' . $num_dst_ip . '</div>', 'center', 'middle', 'nowrap');
 /*qroPrintEntry(BuildUniqueAlertLink("?sensor=" . $device_id) . $unique_event_cnt . '</A>');
   qroPrintEntry(BuildUniqueAddressLink(1, "&amp;sensor=" . $device_id) . $num_src_ip . '</A>');
   qroPrintEntry(BuildUniqueAddressLink(2, "&amp;sensor=" . $device_id) . $num_dst_ip . '</A>');*/
 qroPrintEntryFooter();
 $i++;
开发者ID:alienfault,项目名称:ossim,代码行数:31,代码来源:base_stat_sensor.php

示例2: PrintCleanHexPacketPayload

     } else {
         if (stristr($current_sig_txt, "(portscan) TCP Portscan") || stristr($current_sig_txt, "(portscan) UDP Portscan")) {
             $sql2 = "SELECT data_payload FROM data WHERE sid='" . $myrow["sid"] . "' AND cid='" . $myrow["cid"] . "'";
             $result2 = $db->baseExecute($sql2);
             $myrow_payload = $result2->baseFetchRow();
             $result2->baseFreeRows();
             $myrow_payload = PrintCleanHexPacketPayload($myrow_payload[0], 2);
             $current_sig = $current_sig . stristr(stristr($myrow_payload, "Port/Proto Range"), ": ");
         }
     }
 }
 //$current_sig = GetTagTriger($current_sig, $db, $myrow[0], $myrow[1]);
 // ********************** EVENTS TABLE **********************
 // <TR>
 //qroPrintEntryHeader((($colored_alerts == 1) ? GetSignaturePriority($myrow[2], $db) : $i) , $colored_alerts);
 qroPrintEntryHeader($i, $colored_alerts, '', '', 'trcellclk');
 $rowid = $qs->GetCurrentView() * $show_rows + $i;
 $tmp_rowid = "#" . $rowid . "-(" . $myrow["sid"] . "-" . $myrow["cid"] . ")";
 // <TD>
 // Signature
 $tmpsig = explode("##", $current_sig);
 if ($tmpsig[1] != "") {
     $antes = $tmpsig[0];
     $despues = $tmpsig[1];
 } else {
     $antes = "";
     $despues = $current_sig;
 }
 // Solera DeepSee API
 $solera = "";
 if ($_SESSION["_solera"]) {
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:base_qry_sqlcalls.php

示例3: gmdate

 /* get Total Occurrence */
 $total_occurances = $myrow["sig_cnt"];
 /* Get other data */
 $num_sensors = $myrow["sid_cnt"];
 $num_src_ip = $myrow["saddr_cnt"];
 $num_dst_ip = $myrow["daddr_cnt"];
 /* First and Last timestamp of this signature */
 $start_time = $myrow["first_timestamp"];
 $stop_time = $myrow["last_timestamp"];
 if ($tz != 0) {
     $start_time = gmdate("Y-m-d H:i:s", get_utc_unixtime($db, $start_time) + 3600 * $tz);
     $stop_time = gmdate("Y-m-d H:i:s", get_utc_unixtime($db, $stop_time) + 3600 * $tz);
 }
 /* Print out (Colored Version) -- Alejandro */
 //qroPrintEntryHeader((($colored_alerts == 1) ? GetSignaturePriority($sig_id, $db) : $i) , $colored_alerts);
 qroPrintEntryHeader($i, $colored_alerts);
 $tmp_rowid = $myrow["plugin_id"] . " " . $myrow["plugin_sid"];
 echo '  <TD nowrap>&nbsp;&nbsp;
              <INPUT TYPE="checkbox" NAME="action_chk_lst[' . $i . ']" VALUE="' . $tmp_rowid . '">
              &nbsp;&nbsp;
          </TD>';
 echo '      <INPUT TYPE="hidden" NAME="action_lst[' . $i . ']" VALUE="' . $tmp_rowid . '">';
 $sigstr = trim(preg_replace("/.*\\/\\s*(.*)/", "\\1", preg_replace("/^[\\.\\,\"\\!]|[\\.\\,\"\\!]\$/", "", preg_replace("/.*##/", "", html_entity_decode(strip_tags($signame))))));
 $siglink = "base_qry_main.php?new=1&submit=" . gettext("Query+DB") . "&num_result_rows=-1&sig_type=1&sig%5B0%5D=%3D&sig%5B1%5D=" . urlencode($sig_id);
 $tmpsig = explode("##", $signame);
 if ($tmpsig[1] != "") {
     $antes = $tmpsig[0];
     $despues = $tmpsig[1];
 } else {
     $antes = "";
     $despues = $signame;
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:base_stat_alerts.php

示例4: while

$qro->PrintHeader();
$i = 0;
while (($myrow = $result->baseFetchRow()) && $i < $qs->GetDisplayRowCnt()) {
    $class_id = $myrow[0];
    if ($class_id == "") {
        $class_id = 0;
    }
    $total_occurances = $myrow[1];
    $sensor_num = $myrow[2];
    $sig_num = $myrow[3];
    $sip_num = $myrow[4];
    $dip_num = $myrow[5];
    $min_time = $myrow[6];
    $max_time = $myrow[7];
    /* Print out */
    qroPrintEntryHeader($i, 0, 'height="42"');
    $tmp_rowid = rawurlencode($class_id);
    echo '  <TD>&nbsp;&nbsp;
                 <INPUT TYPE="checkbox" NAME="action_chk_lst[' . $i . ']" VALUE="' . $tmp_rowid . '">
                 &nbsp;&nbsp;
             </TD>';
    echo '      <INPUT TYPE="hidden" NAME="action_lst[' . $i . ']" VALUE="' . $tmp_rowid . '">';
    qroPrintEntry(GetSigClassName($class_id, $db), 'center', 'middle');
    $ocurrlink = 'base_qry_main.php?new=1&amp;sig_class=' . $class_id . '&amp;submit=' . gettext("Query+DB") . '&amp;num_result_rows=-1';
    qroPrintEntry('<FONT>' . '<A HREF="' . $ocurrlink . '">' . $total_occurances . '</A> 
                   (' . round($total_occurances / $event_cnt * 100) . '%)' . '</FONT>', '', 'middle');
    qroPrintEntry('<FONT><A HREF="base_stat_sensor.php?sig_class=' . $class_id . '">' . $sensor_num . '</A>', 'center', 'middle');
    qroPrintEntry('<FONT><A HREF="base_stat_alerts.php?sig_class=' . $class_id . '">' . $sig_num . '</FONT>', 'center', 'middle');
    qroPrintEntry('<FONT>' . BuildUniqueAddressLink(1, '&amp;sig_class=' . $class_id) . $sip_num . '</A></FONT>', 'center', 'middle');
    qroPrintEntry('<FONT>' . BuildUniqueAddressLink(2, '&amp;sig_class=' . $class_id) . $dip_num . '</A></FONT>', 'center', 'middle');
    //qroPrintEntry('<FONT>'.$min_time.'</FONT>');
开发者ID:jhbsz,项目名称:ossimTest,代码行数:31,代码来源:base_stat_class_graph.php


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