uawdijnntqw1x1x1
IP : 216.73.216.237
Hostname : webd009.cluster130.gra.hosting.ovh.net
Kernel : Linux webd009.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
pressec
/
www
/
ads--temp-pour-eviter-les-spams
/
lib
/
templates
/
..
/
vendor
/
..
/
OA
/
Central.php
/
/
<?php /* +---------------------------------------------------------------------------+ | Revive Adserver | | http://www.revive-adserver.com | | | | Copyright: See the COPYRIGHT.txt file. | | License: GPLv2 or later, see the LICENSE.txt file. | +---------------------------------------------------------------------------+ */ require_once MAX_PATH . '/lib/OA/XmlRpcClient.php'; /** * The base class which contains utility methods for OAC services * */ class OA_Central { /** * A method to build the URLs from config variables * * If $aConf['port'] is checked first, otherwise the method will * use $aConf['httpPort'] or $aConf['httpsPort'] depending on the * value of $aConf['protocol'] * * @param array $aConf * @param string $pathVariable * @return string * @static */ static public function buildUrl($aConf, $pathVariable = 'path') { $port = ''; if (!empty($aConf['port'])) { if (($aConf['protocol'] == 'http' && $aConf['port'] != 80) || ($aConf['protocol'] == 'https' && $aConf['port'] != 443)) { $port = ':'.$aConf['port']; } } else { if ($aConf['protocol'] == 'http' && !empty($aConf['httpPort']) && $aConf['httpPort'] != 80) { $port = ':'.$aConf['httpPort']; } elseif ($aConf['protocol'] == 'https' && !empty($aConf['httpsPort']) && $aConf['httpsPort'] != 443) { $port = ':'.$aConf['httpsPort']; } } return "{$aConf['protocol']}://{$aConf['host']}{$port}{$aConf[$pathVariable]}"; } /** * A method to get an XML-RPC Client object from config variables * * @param array $aConf * @param string $pathVariable * @return OA_XML_RPC_Client * @static */ static public function getXmlRpcClient($aConf, $pathVariable = 'path') { // Set default protocol and port if ($aConf['protocol'] == 'https') { // Can the XML-RPC client talk to the OpenX server via SSL? if (!self::canUseSSL()) { // No, so fall back to using plain HTTP for the connection $protocol = 'http'; $port = $aConf['httpPort']; } else { // Yes, use SSL $protocol = 'https'; $port = $aConf['httpsPort']; } } else { // Plain HTTP preferred in the configuration $protocol = 'http'; $port = $aConf['httpPort']; } return new OA_XML_RPC_Client( $aConf[$pathVariable], "{$protocol}://{$aConf['host']}", $port ); } /** * 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(); } }
/home/pressec/www/ads--temp-pour-eviter-les-spams/lib/templates/../vendor/../OA/Central.php