本文整理汇总了PHP中wfConfig::cbp方法的典型用法代码示例。如果您正苦于以下问题:PHP wfConfig::cbp方法的具体用法?PHP wfConfig::cbp怎么用?PHP wfConfig::cbp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wfConfig
的用法示例。
在下文中一共展示了wfConfig::cbp方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: jQuery
$w->cb('liveTrafficEnabled');
?>
onclick="WFAD.reloadConfigPage = true; return true;"/> This option enables live traffic
logging.
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<th class="wfConfigEnable">Advanced Comment Spam Filter<a
href="http://docs.wordfence.com/en/Wordfence_options#Advanced_Comment_Spam_Filter"
target="_blank" class="wfhelp"></a></th>
<td><input type="checkbox" id="advancedCommentScanning" class="wfConfigElem"
name="advancedCommentScanning" value="1" <?php
$w->cbp('advancedCommentScanning');
if (!wfConfig::get('isPaid')) {
?>
onclick="alert('This is a paid feature because it places significant additional load on our servers.'); jQuery('#advancedCommentScanning').attr('checked', false); return false;" <?php
}
?>
/> <span
style="color: #F00;">Premium Feature</span> In addition to free comment filtering (see below)
this option filters comments against several additional real-time lists of known spammers and
infected hosts.
</td>
</tr>
<tr>
<th class="wfConfigEnable">Check if this website is being "Spamvertised"<a
href="http://docs.wordfence.com/en/Wordfence_options#Check_if_this_website_is_being_.22Spamvertized.22"
target="_blank" class="wfhelp"></a></th>
示例2: filtering
class="wfhelp"></a></th>
<td><input type="checkbox" id="liveTrafficEnabled" class="wfConfigElem" name="liveTrafficEnabled"
value="1" <?php $w->cb( 'liveTrafficEnabled' ); ?>
onclick="WFAD.reloadConfigPage = true; return true;"/> This option enables live traffic
logging.
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<th class="wfConfigEnable">Advanced Comment Spam Filter<a
href="http://docs.wordfence.com/en/Wordfence_options#Advanced_Comment_Spam_Filter"
target="_blank" class="wfhelp"></a></th>
<td><input type="checkbox" id="advancedCommentScanning" class="wfConfigElem"
name="advancedCommentScanning" value="1" <?php $w->cbp( 'advancedCommentScanning' );
if ( ! wfConfig::get( 'isPaid' )){ ?>onclick="alert('This is a paid feature because it places significant additional load on our servers.'); jQuery('#advancedCommentScanning').attr('checked', false); return false;" <?php } ?> /> <span
style="color: #F00;">Premium Feature</span> In addition to free comment filtering (see below)
this option filters comments against several additional real-time lists of known spammers and
infected hosts.
</td>
</tr>
<tr>
<th class="wfConfigEnable">Check if this website is being "Spamvertised"<a
href="http://docs.wordfence.com/en/Wordfence_options#Check_if_this_website_is_being_.22Spamvertized.22"
target="_blank" class="wfhelp"></a></th>
<td><input type="checkbox" id="spamvertizeCheck" class="wfConfigElem" name="spamvertizeCheck" value="1"
<?php $w->cbp( 'spamvertizeCheck' );
if ( ! wfConfig::get( 'isPaid' )){ ?>onclick="alert('This is a paid feature because it places significant additional load on our servers.'); jQuery('#spamvertizeCheck').attr('checked', false); return false;" <?php } ?> /> <span
style="color: #F00;">Premium Feature</span> When doing a scan, Wordfence will check with spam
services if your site domain name is appearing as a link in spam emails.