當前位置: 首頁>>代碼示例>>PHP>>正文


PHP wfConfig::cbp方法代碼示例

本文整理匯總了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">&nbsp;</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 
}
?>
 />&nbsp;<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>
開發者ID:GafaMX,項目名稱:operaciondespierta.org,代碼行數:31,代碼來源:menu_options.php

示例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;"/>&nbsp;This option enables live traffic
					logging.
				</td>
			</tr>
			<tr>
				<td colspan="2">&nbsp;</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 } ?> />&nbsp;<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 } ?> />&nbsp;<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.
開發者ID:pombredanne,項目名稱:ArcherSys,代碼行數:31,代碼來源:menu_options.php


注:本文中的wfConfig::cbp方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。