• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP find_rule_by_number函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: htmlspecialchars

        $dstIP = htmlspecialchars($filterent['dstip']);
    }
    if ($filterent['act'] == "block") {
        $iconfn = "times";
    } else {
        if ($filterent['act'] == "reject") {
            $iconfn = "hand-stop-o";
        } else {
            if ($filterent['act'] == "match") {
                $iconfn = "filter";
            } else {
                $iconfn = "check";
            }
        }
    }
    $rule = find_rule_by_number($filterent['rulenum'], $filterent['tracker'], $filterent['act']);
    // Putting <wbr> tags after each ':'  allows the string to word-wrap at that point
    $srcIP = str_replace(':', ':<wbr>', $srcIP);
    $dstIP = str_replace(':', ':<wbr>', $dstIP);
    ?>
		<tr>
			<td><a href="#" onclick="javascript:getURL('diag_logs_filter.php?getrulenum=<?php 
    echo "{$filterent['rulenum']},{$filterent['tracker']},{$filterent['act']}";
    ?>
', outputrule);"
			role="button" data-toggle="popover" data-trigger="hover"
				data-title="Rule that triggered this action"
				data-content="<?php 
    echo htmlspecialchars($rule);
    ?>
"> <i
开发者ID:jefersonJim,项目名称:pfsense,代码行数:31,代码来源:log.widget.php


示例2: getGETPOSTsettingvalue

}
function getGETPOSTsettingvalue($settingname, $default)
{
    $settingvalue = $default;
    if (isset($_GET[$settingname])) {
        $settingvalue = $_GET[$settingname];
    }
    if (isset($_POST[$settingname])) {
        $settingvalue = $_POST[$settingname];
    }
    return $settingvalue;
}
$rulenum = getGETPOSTsettingvalue('getrulenum', null);
if ($rulenum) {
    list($rulenum, $type) = explode(',', $rulenum);
    $rule = find_rule_by_number($rulenum, $type);
    echo gettext("The rule that triggered this action is") . ":\n\n{$rule}";
    exit;
}
$filterfieldsarray = array();
$filtersubmit = getGETPOSTsettingvalue('filtersubmit', null);
if ($filtersubmit) {
    $interfacefilter = getGETPOSTsettingvalue('interface', null);
    $filtertext = getGETPOSTsettingvalue('filtertext', "");
    $filterlogentries_qty = getGETPOSTsettingvalue('filterlogentries_qty', null);
    $actpass = getGETPOSTsettingvalue('actpass', null);
    $actblock = getGETPOSTsettingvalue('actblock', null);
    $filterfieldsarray['act'] = str_replace("  ", " ", trim($actpass . " " . $actblock));
    $filterfieldsarray['act'] = $filterfieldsarray['act'] != "" ? $filterfieldsarray['act'] : 'All';
    $filterfieldsarray['time'] = getGETPOSTsettingvalue('filterlogentries_time', null);
    $filterfieldsarray['interface'] = getGETPOSTsettingvalue('filterlogentries_interfaces', null);
开发者ID:noikiy,项目名称:core-2,代码行数:31,代码来源:diag_logs_filter.php


示例3: TORT

	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
	POSSIBILITY OF SUCH DAMAGE.
*/
require "guiconfig.inc";
/* In an effort to reduce duplicate code, many shared functions have been moved here. */
require_once "includes/log.inc.php";
if ($_GET['getrulenum'] or $_POST['getrulenum']) {
    if ($_GET['getrulenum']) {
        $rulenum = escapeshellarg($_GET['getrulenum']);
    }
    if ($_POST['getrulenum']) {
        $rulenum = escapeshellarg($_POST['getrulenum']);
    }
    $rule = find_rule_by_number($rulenum);
    echo "The rule that triggered this action is:\n\n{$rule}";
    exit;
}
$filter_logfile = "{$g['varlog_path']}/filter.log";
$nentries = $config['syslog']['nentries'];
if (!$nentries) {
    $nentries = 50;
}
if ($_POST['clear']) {
    exec("killall syslogd");
    exec("/usr/sbin/clog -i -s 512144 /var/log/filter.log");
    system_syslogd_start();
}
$pgtitle = "Durum: Sistem Kayıtları: Firewall";
include "head.inc";
开发者ID:rootsghost,项目名称:5651-pfsense,代码行数:31,代码来源:diag_logs_filter.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP find_script函数代码示例发布时间:2022-05-15
下一篇:
PHP find_replace_templatesets函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap