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

PHP getGETPOSTsettingvalue函数代码示例

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

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



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

示例1: getGETPOSTsettingvalue

    $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);
    $filterfieldsarray['srcip'] = getGETPOSTsettingvalue('filterlogentries_sourceipaddress', null);
    $filterfieldsarray['srcport'] = getGETPOSTsettingvalue('filterlogentries_sourceport', null);
    $filterfieldsarray['dstip'] = getGETPOSTsettingvalue('filterlogentries_destinationipaddress', null);
    $filterfieldsarray['dstport'] = getGETPOSTsettingvalue('filterlogentries_destinationport', null);
    $filterfieldsarray['proto'] = getGETPOSTsettingvalue('filterlogentries_protocol', null);
    $filterfieldsarray['tcpflags'] = getGETPOSTsettingvalue('filterlogentries_protocolflags', null);
    $filterfieldsarray['version'] = getGETPOSTsettingvalue('filterlogentries_version', null);
    $filterlogentries_qty = getGETPOSTsettingvalue('filterlogentries_qty', null);
} else {
    $interfacefilter = null;
    $filterlogentries_qty = null;
    $filtertext = null;
    foreach (array('act', 'time', 'interface', 'srcip', 'srcport', 'dstip', 'dstport', 'proto', 'tcpflags', 'version') as $tag) {
        $filterfieldsarray[$tag] = null;
    }
}
$filter_logfile = '/var/log/filter.log';
if (isset($config['syslog']['nentries'])) {
    $nentries = $config['syslog']['nentries'];
} else {
    $nentries = 50;
}
# Override Display Quantity
开发者ID:noikiy,项目名称:core-2,代码行数:31,代码来源:diag_logs_filter.php


示例2: log_filter_form_vpn_submit

function log_filter_form_vpn_submit()
{
    global $filtersubmit, $interfacefilter, $filtertext;
    global $filterlogentries_submit, $filterfieldsarray, $actpass, $actblock;
    global $filter_active, $filterlogentries_qty;
    $filtersubmit = getGETPOSTsettingvalue('filtersubmit', null);
    if ($filtersubmit) {
        $filter_active = true;
        $filtertext = getGETPOSTsettingvalue('filtertext', "");
        $filterlogentries_qty = getGETPOSTsettingvalue('filterlogentries_qty', null);
    }
    $filterlogentries_submit = getGETPOSTsettingvalue('filterlogentries_submit', null);
    if ($filterlogentries_submit) {
        $filter_active = true;
        $filterfieldsarray = array();
        $filterfieldsarray['time'] = getGETPOSTsettingvalue('filterlogentries_time', null);
        $filterfieldsarray['type'] = getGETPOSTsettingvalue('filterlogentries_type', null);
        $filterfieldsarray['pid'] = getGETPOSTsettingvalue('filterlogentries_pid', null);
        $filterfieldsarray['message'] = getGETPOSTsettingvalue('filterlogentries_message', null);
        $filterfieldsarray['action'] = getGETPOSTsettingvalue('filterlogentries_action', null);
        $filterfieldsarray['user'] = getGETPOSTsettingvalue('filterlogentries_user', null);
        $filterfieldsarray['ip_address'] = getGETPOSTsettingvalue('filterlogentries_ip_address', null);
        $filterlogentries_qty = getGETPOSTsettingvalue('filterlogentries_qty', null);
    }
}
开发者ID:NextMagic,项目名称:pfsense,代码行数:25,代码来源:status_logs_vpn.php


示例3: General

# All
$pconfig['cronorder'] = $config['syslog'][$specific_log]['cronorder'];
$pconfig['nentries'] = $config['syslog'][$specific_log]['nentries'];
$pconfig['logfilesize'] = $config['syslog'][$specific_log]['logfilesize'];
$pconfig['format'] = $config['syslog'][$specific_log]['format'];
# System General (main) Specific
$pconfig['loglighttpd'] = !isset($config['syslog']['nologlighttpd']);
$save_settings = getGETPOSTsettingvalue('save_settings', null);
if ($save_settings) {
    # All
    $cronorder = getGETPOSTsettingvalue('cronorder', null);
    $nentries = getGETPOSTsettingvalue('nentries', null);
    $logfilesize = getGETPOSTsettingvalue('logfilesize', null);
    $format = getGETPOSTsettingvalue('format', null);
    # System General (main) Specific
    $loglighttpd = getGETPOSTsettingvalue('loglighttpd', null);
    unset($input_errors);
    $pconfig = $_POST;
    /* input validation */
    # All
    if (isset($nentries) && strlen($nentries) > 0) {
        if (!is_numeric($nentries) || $nentries < 5 || $nentries > 2000) {
            $input_errors[] = gettext("Number of log entries to show must be between 5 and 2000.");
        }
    }
    if (isset($logfilesize) && strlen($logfilesize) > 0) {
        if (!is_numeric($logfilesize) || $logfilesize < 100000) {
            $input_errors[] = gettext("Log file size must be numeric and greater than or equal to 100000.");
        }
    }
    if (!$input_errors) {
开发者ID:littleblank,项目名称:pfsense,代码行数:31,代码来源:status_logs.php


示例4: getGETPOSTsettingvalue

$pconfig['filterdescriptions'] = $config['syslog']['filterdescriptions'];
$save_settings = getGETPOSTsettingvalue('save_settings', null);
if ($save_settings) {
    # All
    $cronorder = getGETPOSTsettingvalue('cronorder', null);
    $nentries = getGETPOSTsettingvalue('nentries', null);
    $logfilesize = getGETPOSTsettingvalue('logfilesize', null);
    $format = getGETPOSTsettingvalue('format', null);
    # System General (main) Specific
    $loglighttpd = getGETPOSTsettingvalue('loglighttpd', null);
    # Firewall Specific
    $logdefaultblock = getGETPOSTsettingvalue('logdefaultblock', null);
    $logdefaultpass = getGETPOSTsettingvalue('logdefaultpass', null);
    $logbogons = getGETPOSTsettingvalue('logbogons', null);
    $logprivatenets = getGETPOSTsettingvalue('logprivatenets', null);
    $filterdescriptions = getGETPOSTsettingvalue('filterdescriptions', null);
    unset($input_errors);
    $pconfig = $_POST;
    /* input validation */
    if (isset($nentries) && strlen($nentries) > 0) {
        if (!is_numeric($nentries) || $nentries < 5 || $nentries > 2000) {
            $input_errors[] = gettext("Number of log entries to show must be between 5 and 2000.");
        }
    }
    if (isset($logfilesize) && strlen($logfilesize) > 0) {
        if (!is_numeric($logfilesize) || $logfilesize < 100000) {
            $input_errors[] = gettext("Log file size must be numeric and greater than or equal to 100000.");
        }
    }
    if (!$input_errors) {
        # Clear out the specific log settings and leave only the applied settings to override the general logging options (global) settings.
开发者ID:calvinbui,项目名称:pfsense,代码行数:31,代码来源:status_logs_filter.php


示例5: gettext

    if (!array_key_exists($logfile, $allowed_logs)) {
        /* Do not let someone attempt to load an unauthorized log. */
        $logfile = 'filter';
        $view = 'normal';
    }
}
if ($view == 'normal') {
    $view_title = gettext("Normal View");
}
if ($view == 'dynamic') {
    $view_title = gettext("Dynamic View");
}
if ($view == 'summary') {
    $view_title = gettext("Summary View");
}
$rulenum = getGETPOSTsettingvalue('getrulenum', null);
if ($rulenum) {
    list($rulenum, $tracker, $type) = explode(',', $rulenum);
    $rule = find_rule_by_number($rulenum, $tracker, $type);
    echo gettext("The rule that triggered this action is") . ":\n\n{$rule}";
    exit;
}
// Log Filter Submit - Firewall
log_filter_form_firewall_submit();
// Manage Log Section - Code
manage_log_code();
// Status Logs Common - Code
status_logs_common_code();
$pgtitle = array(gettext("Status"), gettext("System logs"), gettext($allowed_logs[$logfile]["name"]), $view_title);
include "head.inc";
if (!$input_errors && $savemsg) {
开发者ID:z0x010,项目名称:pfsense,代码行数:31,代码来源:status_logs_filter.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP getGP函数代码示例发布时间:2022-05-15
下一篇:
PHP getGET函数代码示例发布时间: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