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


PHP Av_sensor::get_name_by_ip方法代码示例

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


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

示例1: ossim_valid

                 ossim_valid($destination, OSS_IP_CIDR, 'illegal:' . _('Destination cidr'));
                 $destination_type = 'net';
             }
         }
         if (ossim_error()) {
             $info_error[] = ossim_get_error();
             ossim_clean_error();
         } else {
             $tdestinations[] = $destination;
         }
     }
 } else {
     $tdestinations = array();
 }
 // Launch scan
 $info_sensor = $sensors_status[Av_sensor::get_name_by_ip($dbconn, $sensor_ip)];
 if ($sensor_ip != '' && $sensor_interface != '' && intval($timeout) > 0 && count($info_error) == 0 && ($info_sensor[0] == 0 || $info_sensor[0] == -1)) {
     $rlaunch_scan = $scan->launch_scan($tsources, $tdestinations, $sensor_ip, $sensor_interface, $timeout, $cap_size, $raw_filter);
     if ($rlaunch_scan["status"] === true) {
         $content = _('Launching capture... wait a few seconds');
         $type = 'nf_success';
     } else {
         $content = $rlaunch_scan['message'];
         $type = 'nf_warning';
     }
     $jtimeout = 4000;
 } else {
     if ($info_sensor[0] != -1 && ($info_sensor[0] == 1 || $info_sensor[0] == 2)) {
         $content = _('The sensor is busy');
         $type = 'nf_warning';
     }
开发者ID:AntBean,项目名称:alienvault-ossim,代码行数:31,代码来源:manage_scans.php

示例2: _

        $sstatus_seid = "sensor_status{$i}";
        $tdborder = "";
        if (count($scans_by_sensor[$sensor_ip]) > 0 || count($sensors_status) == $i) {
            $tdborder = "nobborder";
        }
        $i++;
        ?>
                    <tr><td style="text-align:center;" id="<?php 
        echo $sname_seid;
        ?>
" class="<?php 
        echo $tdborder;
        ?>
">
                        <?php 
        echo Av_sensor::get_name_by_ip($dbconn, $sensor_ip) != '' ? Av_sensor::get_name_by_ip($dbconn, $sensor_ip) : _("Not found");
        ?>
</td>
                        <td style="text-align:center;" id="<?php 
        echo $sip_seid;
        ?>
" class="<?php 
        echo $tdborder;
        ?>
"><?php 
        echo $sensor_ip;
        ?>
</td>
                        <td style="text-align:center;" id="<?php 
        echo $tcap_seid;
        ?>
开发者ID:jackpf,项目名称:ossim-arc,代码行数:31,代码来源:index.php


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