本文整理匯總了PHP中wordfence::statusPaidOnly方法的典型用法代碼示例。如果您正苦於以下問題:PHP wordfence::statusPaidOnly方法的具體用法?PHP wordfence::statusPaidOnly怎麽用?PHP wordfence::statusPaidOnly使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類wordfence
的用法示例。
在下文中一共展示了wordfence::statusPaidOnly方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: scan_checkSpamvertized
private function scan_checkSpamvertized()
{
if (wfConfig::get('isPaid')) {
if (wfConfig::get('spamvertizeCheck')) {
$this->statusIDX['spamvertizeCheck'] = wordfence::statusStart("Checking if your site is being Spamvertised");
$result = $this->api->call('spamvertize_check', array(), array('siteURL' => site_url()));
$haveIssues = false;
if ($result['haveIssues'] && is_array($result['issues'])) {
foreach ($result['issues'] as $issue) {
$this->addIssue($issue['type'], $issue['level'], $issue['ignoreP'], $issue['ignoreC'], $issue['shortMsg'], $issue['longMsg'], $issue['data']);
$haveIssues = true;
}
}
wordfence::statusEnd($this->statusIDX['spamvertizeCheck'], $haveIssues);
} else {
wordfence::statusDisabled("Skipping check if your site is being spamvertized");
}
} else {
wordfence::statusPaidOnly("Check if your site is being Spamvertized is for paid members only");
sleep(2);
}
}
示例2: scan_publicSite
private function scan_publicSite()
{
if (wfConfig::get('isPaid')) {
if (wfConfig::get('scansEnabled_public')) {
$this->publicScanEnabled = true;
$this->statusIDX['public'] = wordfence::statusStart("Doing Remote Scan of public site for problems");
$result = $this->api->call('scan_public_site', array(), array('siteURL' => site_url()));
$haveIssues = false;
if ($result['haveIssues'] && is_array($result['issues'])) {
foreach ($result['issues'] as $issue) {
$this->addIssue($issue['type'], $issue['level'], $issue['ignoreP'], $issue['ignoreC'], $issue['shortMsg'], $issue['longMsg'], $issue['data']);
$haveIssues = true;
}
}
wordfence::statusEnd($this->statusIDX['public'], $haveIssues);
} else {
wordfence::statusDisabled("Skipping remote scan of public site for problems");
}
} else {
wordfence::statusPaidOnly("Remote scan of public facing site only available to paid members");
sleep(2);
//enough time to read the message before it scrolls off.
}
}