本文整理汇总了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
示例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);
}
}
示例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) {
示例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.
示例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) {