本文整理汇总了PHP中wfConfig::f方法的典型用法代码示例。如果您正苦于以下问题:PHP wfConfig::f方法的具体用法?PHP wfConfig::f怎么用?PHP wfConfig::f使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wfConfig
的用法示例。
在下文中一共展示了wfConfig::f方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<td id="wfLiveStatus"></td>
</tr>
</table>
</div>
<form id="wfConfigForm">
<table class="wfConfigForm">
<tr>
<td colspan="2"><h2>License</h2></td>
</tr>
<tr>
<th>Your Wordfence API Key:<a href="http://docs.wordfence.com/en/Wordfence_options#Wordfence_API_Key"
target="_blank" class="wfhelp"></a></th>
<td><input type="text" id="apiKey" name="apiKey" value="<?php
$w->f('apiKey');
?>
" size="80"/></td>
</tr>
<tr>
<th>Key type currently active:</th>
<td>
<?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</span>. <a
href="https://www.wordfence.com/gnl1optAPIKey1/wordfence-signup/" target="_blank">Click Here to Upgrade to
示例2: wfView
</div>
<?php
$rightRail = new wfView('marketing/rightrail', array('additionalClasses' => 'wordfenceRightRailOptions'));
echo $rightRail;
?>
<form id="wfConfigForm">
<table class="wfConfigForm">
<tr>
<td colspan="2"><h2>License</h2></td>
</tr>
<tr>
<th>Your Wordfence API Key:<a href="http://docs.wordfence.com/en/Wordfence_options#Wordfence_API_Key"
target="_blank" class="wfhelp"></a></th>
<td><input type="text" id="apiKey" name="apiKey" value="<?php
$w->f('apiKey');
?>
" size="80"/></td>
</tr>
<tr>
<th>Key type currently active:</th>
<td>
<?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</span>. <a
href="https://www.wordfence.com/gnl1optAPIKey1/wordfence-signup/" target="_blank">Click Here to Upgrade to
示例3: accounts
<tr>
<th colspan="2">Select the kind of audit you would like to do:</th>
</tr>
<tr>
<th colspan="2">
<select id="auditType">
<option value="admin">Audit administrator level accounts (extensive audit against a large dictionary of approx. 260 Million passwords)</option>
<option value="user">Audit user level accounts (less extensive against a dictionary of approximately 50,000 passwords)</option>
<option value="both">Audit all WordPress accounts</option>
</select>
</th>
</tr>
<tr>
<th>Results will appear on this page. We will email you when they're ready. Enter the email address we should email:</th>
<td><input type="text" id="emailAddr" size="50" maxlength="255" value="<?php
wfConfig::f('alertEmails');
?>
"/></td>
</tr>
<tr>
<td colspan="2"><input type="button" name="but4" class="button-primary" value="Start Password Audit"
onclick="WFAD.startPasswdAudit(jQuery('#auditType').val(), jQuery('#emailAddr').val());"/>
</td>
</tr>
</table>
<h2 style="margin-top: 20px;">Audit Status:</h2>
<div id="wfAuditJobs">
</div>
<h2 style="margin-top: 20px;">Password Audit Results:</h2>
示例4: include
var WFSLevels = <?php echo json_encode(wfConfig::$securityLevels); ?>;
</script>
<div class="wordfenceModeElem" id="wordfenceMode_options"></div>
<div class="wrap">
<?php $pageTitle = "Wordfence Options"; include('pageTitle.php'); ?>
<div class="wordfenceLive">
<table border="0" cellpadding="0" cellspacing="0">
<tr><td><h2>Wordfence Live Activity:</h2></td><td id="wfLiveStatus"></td></tr>
</table>
</div>
<form id="wfConfigForm">
<table class="wfConfigForm">
<tr><td colspan="2"><h2>License</h2></td></tr>
<tr><th>Your Wordfence API Key:</th><td><input type="text" id="apiKey" name="apiKey" value="<?php $w->f('apiKey'); ?>" size="80" /></td></tr>
<tr><th>Key type currently active:</th><td>
<?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/wordfence-signup/" target="_blank">Upgrade to Premium Scanning now.</a>
<?php } ?>
</td></tr>
<tr><td colspan="2">
<?php if(wfConfig::get('isPaid')){ ?>
<table border="0"><tr><td><a href="https://www.wordfence.com/manage-wordfence-api-keys/" target="_blank"><input type="button" value="Renew your premium license" /></a></td><td> </td><td><input type="button" value="Downgrade to a free license" onclick="WFAD.downgradeLicense();" /></td></tr></table>
<?php } ?>
<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'); ?> /> <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>
示例5:
<?php
$pageTitle = "Wordfence Options";
include 'pageTitle.php';
?>
<div class="wordfenceLive">
<table border="0" cellpadding="0" cellspacing="0">
<tr><td><h2>Wordfence Live Activity:</h2></td><td id="wfLiveStatus"></td></tr>
</table>
</div>
<form id="wfConfigForm">
<table class="wfConfigForm">
<tr><td colspan="2"><h2>License</h2></td></tr>
<tr><th>Your Wordfence API Key:</th><td><input type="text" id="apiKey" name="apiKey" value="<?php
$w->f('apiKey');
?>
" size="80" /></td></tr>
<tr><th>Key type currently active:</th><td>
<?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/wordfence-signup/" target="_blank">Upgrade to Premium Scanning now.</a>
<?php
}
?>
</td></tr>
示例6: if
<td><h2>Wordfence Live Activity:</h2></td>
<td id="wfLiveStatus"></td>
</tr>
</table>
</div>
<form id="wfConfigForm">
<table class="wfConfigForm">
<tr>
<td colspan="2"><h2>License</h2></td>
</tr>
<tr>
<th>Your Wordfence API Key:<a href="http://docs.wordfence.com/en/Wordfence_options#Wordfence_API_Key"
target="_blank" class="wfhelp"></a></th>
<td><input type="text" id="apiKey" name="apiKey" value="<?php $w->f( 'apiKey' ); ?>" size="80"/></td>
</tr>
<tr>
<th>Key type currently active:</th>
<td>
<?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</span>. <a
href="https://www.wordfence.com/wordfence-signup/" target="_blank">Click Here to Upgrade to
Wordfence Premium now.</a>
<?php } ?>
</td>
</tr>
<tr>
<td colspan="2">