当前位置: 首页>>代码示例>>PHP>>正文


PHP wordfence::statusPaidOnly方法代码示例

本文整理汇总了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);
     }
 }
开发者ID:rinodung,项目名称:myfreetheme,代码行数:22,代码来源:wfScanEngine.php

示例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.
     }
 }
开发者ID:vegardvelle,项目名称:radikalportal,代码行数:24,代码来源:wfScanEngine.php


注:本文中的wordfence::statusPaidOnly方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。