当前位置: 首页>>代码示例>>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;未经允许,请勿转载。