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


PHP OA::getAvailableSSLExtensions方法代碼示例

本文整理匯總了PHP中OA::getAvailableSSLExtensions方法的典型用法代碼示例。如果您正苦於以下問題:PHP OA::getAvailableSSLExtensions方法的具體用法?PHP OA::getAvailableSSLExtensions怎麽用?PHP OA::getAvailableSSLExtensions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在OA的用法示例。


在下文中一共展示了OA::getAvailableSSLExtensions方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getAvailableSSLExtensions

 /**
  * A method to detect the available SSL enabling extensions
  *
  * @return mixed An array of the available extensions, or false if none is present
  */
 public static function getAvailableSSLExtensions($forceReload = false)
 {
     if ($forceReload || !isset(self::$sslExtensions)) {
         self::$sslExtensions = OA::getAvailableSSLExtensions();
     }
     return self::$sslExtensions;
 }
開發者ID:Jaree,項目名稱:revive-adserver,代碼行數:12,代碼來源:ConnectionUtils.php

示例2: __construct

 function __construct($path, $server, $port = 0, $proxy = '', $proxy_port = 0, $proxy_user = '', $proxy_pass = '')
 {
     if ($aExtensions = OA::getAvailableSSLExtensions()) {
         $this->hasCurl = in_array('curl', $aExtensions);
         $this->hasOpenssl = in_array('openssl', $aExtensions);
     }
     $this->verifyPeer = false;
     $this->caFile = MAX_PATH . '/etc/curl-ca-bundle.crt';
     parent::__construct($path, $server, $port);
 }
開發者ID:Spark-Eleven,項目名稱:revive-adserver,代碼行數:10,代碼來源:XmlRpcClient.php

示例3: OA_XML_RPC_Client

 function OA_XML_RPC_Client($path, $server, $port = 0, $proxy = '', $proxy_port = 0, $proxy_user = '', $proxy_pass = '')
 {
     if ($aExtensions = OA::getAvailableSSLExtensions()) {
         $this->hasCurl = in_array('curl', $aExtensions);
         $this->hasOpenssl = in_array('openssl', $aExtensions);
     }
     $this->verifyPeer = false;
     // This CA file is reused in openXMarket plugin
     // to setup curl in Zend_Http_Client_Adapter_Curl in same way as here
     $this->caFile = MAX_PATH . '/etc/curl-ca-bundle.crt';
     parent::XML_RPC_Client($path, $server, $port);
 }
開發者ID:villos,項目名稱:tree_admin,代碼行數:12,代碼來源:XmlRpcClient.php

示例4: canUseSSL

 /**
  * This should be a private static method, but the current test implementation
  * doesn't allow it to be declared as static
  *
  * @return boolean
  * @static
  */
 private function canUseSSL()
 {
     return (bool) OA::getAvailableSSLExtensions();
 }
開發者ID:Spark-Eleven,項目名稱:revive-adserver,代碼行數:11,代碼來源:Central.php

示例5:

require_once '../../init.php';
// Required files
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/lib/OA/Permission.php';
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN, OA_ACCOUNT_MANAGER, OA_ACCOUNT_ADVERTISER, OA_ACCOUNT_TRAFFICKER);
/*-------------------------------------------------------*/
/* Main code                                             */
/*-------------------------------------------------------*/
if (OA_Permission::isAccount(OA_ACCOUNT_ADMIN)) {
    // Show Dashboard if Dashboard is enabled
    if ($GLOBALS['_MAX']['CONF']['ui']['dashboardEnabled']) {
        OX_Admin_Redirect::redirect('dashboard.php');
    } else {
        OX_Admin_Redirect::redirect('agency-index.php');
    }
}
if (OA_Permission::isAccount(OA_ACCOUNT_MANAGER)) {
    // Show Dashboard if Dashboard is enabled, Sync is enabled and PHP is SSL enabled
    if ($GLOBALS['_MAX']['CONF']['ui']['dashboardEnabled'] && $GLOBALS['_MAX']['CONF']['sync']['checkForUpdates'] && OA::getAvailableSSLExtensions()) {
        OX_Admin_Redirect::redirect('dashboard.php');
    } else {
        OX_Admin_Redirect::redirect('advertiser-index.php');
    }
}
if (OA_Permission::isAccount(OA_ACCOUNT_ADVERTISER)) {
    OX_Admin_Redirect::redirect('stats.php?entity=advertiser&breakdown=history&clientid=' . OA_Permission::getEntityId());
}
if (OA_Permission::isAccount(OA_ACCOUNT_TRAFFICKER)) {
    OX_Admin_Redirect::redirect('stats.php?entity=affiliate&breakdown=history&affiliateid=' . OA_Permission::getEntityId());
}
開發者ID:villos,項目名稱:tree_admin,代碼行數:31,代碼來源:index.php


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