本文整理匯總了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.