當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。