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


PHP wfConfig::sel方法代码示例

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


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

示例1:

				           size="50"/>&nbsp;<span class="wfTipText">Separate multiple emails with commas</span></td>
			</tr>
			<tr>
				<th colspan="2">&nbsp;</th>
			</tr>
			<tr>
				<th>How does Wordfence get IPs:<a
						href="http://docs.wordfence.com/en/Wordfence_options#How_does_Wordfence_get_IPs" target="_blank"
						class="wfhelp"></a></th>
				<td>
					<select id="howGetIPs" name="howGetIPs">
						<option value="">Let Wordfence use the most secure method to get visitor IP addresses. Prevents
							spoofing and works with most sites.
						</option>
						<option value="REMOTE_ADDR"<?php 
$w->sel('howGetIPs', 'REMOTE_ADDR');
?>
>Use PHP's built in
							REMOTE_ADDR and don't use anything else. Very secure if this is compatible with your site.
						</option>
						<option value="HTTP_X_FORWARDED_FOR"<?php 
$w->sel('howGetIPs', 'HTTP_X_FORWARDED_FOR');
?>
>Use
							the X-Forwarded-For HTTP header. Only use if you have a front-end proxy or spoofing may
							result.
						</option>
						<option value="HTTP_X_REAL_IP"<?php 
$w->sel('howGetIPs', 'HTTP_X_REAL_IP');
?>
>Use the
开发者ID:GafaMX,项目名称:operaciondespierta.org,代码行数:31,代码来源:menu_options.php

示例2:

		<?php 
if (wfConfig::get('isPaid')) {
    ?>
		The currently active API Key is a Premium Key. <span style="font-weight: bold; color: #0A0;">Premium scanning enabled!</span>
		<?php 
} else {
    ?>
		The currently active API Key is a <span style="color: #F00; font-weight: bold;">Free Key</a>. <a href="https://www.wordfence.com/choose-a-wordfence-membership-type/?s2-ssl=yes" target="_blank">Upgrade to Premium Scanning now.</a>
		<?php 
}
?>
	</td></tr>
	<tr><th>Security Level:</th><td>
		<select id="securityLevel" name="securityLevel" onchange="WFAD.changeSecurityLevel(); return true;">
			<option value="0"<?php 
$w->sel('securityLevel', '0');
?>
>Level 0: Disable all Wordfence security measures</option>
			<option value="1"<?php 
$w->sel('securityLevel', '1');
?>
>Level 1: Light protection. Just the basics</option>
			<option value="2"<?php 
$w->sel('securityLevel', '2');
?>
>Level 2: Medium protection. Suitable for most sites</option>
			<option value="3"<?php 
$w->sel('securityLevel', '3');
?>
>Level 3: High security. Use this when an attack is imminent</option>
			<option value="4"<?php 
开发者ID:Alpha7Sg,项目名称:wordpress-custom,代码行数:31,代码来源:menu_options.php

示例3:

	<tr><td colspan="2"><h2>Basic Options</h2></td></tr>
	<tr><th class="wfConfigEnable">Enable firewall </th><td><input type="checkbox" id="firewallEnabled" class="wfConfigElem" name="firewallEnabled" value="1" <?php $w->cb('firewallEnabled'); ?> />&nbsp;<span style="color: #F00;">NOTE:</span> This checkbox enables ALL firewall functions including IP, country and advanced blocking and the "Firewall Rules" below.</td></tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><th class="wfConfigEnable">Enable login security</th><td><input type="checkbox" id="loginSecurityEnabled" class="wfConfigElem" name="loginSecurityEnabled" value="1" <?php $w->cb('loginSecurityEnabled'); ?> />&nbsp;This option enables all "Login Security" options. You can modify individual options further down this page.</td></tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><th class="wfConfigEnable">Enable Live Traffic View</th><td><input type="checkbox" id="liveTrafficEnabled" class="wfConfigElem" name="liveTrafficEnabled" value="1" <?php $w->cb('liveTrafficEnabled'); ?> onclick="WFAD.reloadConfigPage = true; return true;" />&nbsp;This option enables live traffic logging.</td></tr>
	<tr><td colspan="2">&nbsp;</td></tr>
	<tr><th class="wfConfigEnable">Enable automatic scheduled scans</th><td><input type="checkbox" id="scheduledScansEnabled" class="wfConfigElem" name="scheduledScansEnabled" value="1" <?php $w->cb('scheduledScansEnabled'); ?> />&nbsp;Regular scans ensure your site stays secure.</td></tr>
	<tr><td colspan="2">&nbsp;</td></tr>

	<tr><th>Where to email alerts:</th><td><input type="text" id="alertEmails" name="alertEmails" value="<?php $w->f('alertEmails'); ?>" size="50" />&nbsp;<span class="wfTipText">Separate multiple emails with commas</span></td></tr>
	<tr><th colspan="2">&nbsp;</th></tr>
	<tr><th>Security Level:</th><td>
		<select id="securityLevel" name="securityLevel" onchange="WFAD.changeSecurityLevel(); return true;">
			<option value="0"<?php $w->sel('securityLevel', '0'); ?>>Level 0: Disable all Wordfence security measures</option>
			<option value="1"<?php $w->sel('securityLevel', '1'); ?>>Level 1: Light protection. Just the basics</option>
			<option value="2"<?php $w->sel('securityLevel', '2'); ?>>Level 2: Medium protection. Suitable for most sites</option>
			<option value="3"<?php $w->sel('securityLevel', '3'); ?>>Level 3: High security. Use this when an attack is imminent</option>
			<option value="4"<?php $w->sel('securityLevel', '4'); ?>>Level 4: Lockdown. Protect the site against an attack in progress at the cost of inconveniencing some users</option>
			<option value="CUSTOM"<?php $w->sel('securityLevel', 'CUSTOM'); ?>>Custom settings</option>
		</select>
		</td></tr>
	<tr><th>How does Wordfence get IPs:</th><td>
		<select id="howGetIPs" name="howGetIPs">
			<option value="">Set this option if you're seeing visitors from fake IP addresses or who appear to be from your internal network but aren't.</option>
			<option value="REMOTE_ADDR"<?php $w->sel('howGetIPs', 'REMOTE_ADDR'); ?>>Use PHP's built in REMOTE_ADDR. Use this if you're not using Nginx or any separate front-end proxy or firewall. Try this first.</option>
			<option value="HTTP_X_REAL_IP"<?php $w->sel('howGetIPs', 'HTTP_X_REAL_IP'); ?>>Use the X-Real-IP HTTP header which my Nginx, firewall or front-end proxy is setting. Try this next.</option>
			<option value="HTTP_X_FORWARDED_FOR"<?php $w->sel('howGetIPs', 'HTTP_X_FORWARDED_FOR'); ?>>Use the X-Forwarded-For HTTP header which my Nginx, firewall or front-end proxy is setting.</option>
			<option value="HTTP_CF_CONNECTING_IP"<?php $w->sel('howGetIPs', 'HTTP_CF_CONNECTING_IP'); ?>>I'm using Cloudflare so use the "CF-Connecting-IP" HTTP header to get a visitor IP</option>
		</select>
开发者ID:verbazend,项目名称:AWFA,代码行数:30,代码来源:menu_options.php

示例4:

			<tr>
				<th>Where to email alerts:<a href="http://docs.wordfence.com/en/Wordfence_options#Where_to_email_alerts"
				                             target="_blank" class="wfhelp"></a></th>
				<td><input type="text" id="alertEmails" name="alertEmails" value="<?php $w->f( 'alertEmails' ); ?>"
				           size="50"/>&nbsp;<span class="wfTipText">Separate multiple emails with commas</span></td>
			</tr>
			<tr>
				<th colspan="2">&nbsp;</th>
			</tr>
			<tr>
				<th>Security Level:<a href="http://docs.wordfence.com/en/Wordfence_options#Security_Level"
				                      target="_blank" class="wfhelp"></a></th>
				<td>
					<select id="securityLevel" name="securityLevel" onchange="WFAD.changeSecurityLevel(); return true;">
						<option value="0"<?php $w->sel( 'securityLevel', '0' ); ?>>Level 0: Disable all Wordfence
							security measures
						</option>
						<option value="1"<?php $w->sel( 'securityLevel', '1' ); ?>>Level 1: Light protection. Just the
							basics
						</option>
						<option value="2"<?php $w->sel( 'securityLevel', '2' ); ?>>Level 2: Medium protection. Suitable
							for most sites
						</option>
						<option value="3"<?php $w->sel( 'securityLevel', '3' ); ?>>Level 3: High security. Use this when
							an attack is imminent
						</option>
						<option value="4"<?php $w->sel( 'securityLevel', '4' ); ?>>Level 4: Lockdown. Protect the site
							against an attack in progress at the cost of inconveniencing some users
						</option>
						<option value="CUSTOM"<?php $w->sel( 'securityLevel', 'CUSTOM' ); ?>>Custom settings</option>
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:30,代码来源:menu_options.php


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