本文整理汇总了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.
}
}