public function __construct() { JLoader::import('joomla.filesystem.file'); // $isPro = defined('ARS_PRO') ? (ARS_PRO == 1) : false; // Load the component parameters, not using JComponentHelper to avoid conflicts ;) JLoader::import('joomla.html.parameter'); JLoader::import('joomla.application.component.helper'); $db = JFactory::getDbo(); $sql = $db->getQuery(true)->select($db->quoteName('params'))->from($db->quoteName('#__extensions'))->where($db->quoteName('type') . ' = ' . $db->quote('component'))->where($db->quoteName('element') . ' = ' . $db->quote('com_j2store')); $db->setQuery($sql); $rawparams = $db->loadResult(); $params = new JRegistry(); if (version_compare(JVERSION, '3.0', 'ge')) { $params->loadString($rawparams, 'JSON'); } else { $params->loadJSON($rawparams); } // Dev releases use the "newest" strategy if (substr($this->_currentVersion, 1, 2) == 'ev') { $this->_versionStrategy = 'newest'; } else { $this->_versionStrategy = 'vcompare'; } // Get the minimum stability level for updates $this->_minStability = $params->get('minstability', 'stable'); // Do we need authorized URLs? $this->_requiresAuthorization = false; // Should I use our private CA store? if (@file_exists(dirname(__FILE__) . '/../assets/cacert.pem')) { $this->_cacerts = dirname(__FILE__) . '/../assets/cacert.pem'; } parent::__construct(); }
function __construct() { $useSVNSource = AEPlatform::getInstance()->get_platform_configuration_option('usesvnsource', 0); // Determine the appropriate update URL based on whether we're on Core or Professional edition AEPlatform::getInstance()->load_version_defines(); if (!$useSVNSource) { $fname = 'http://nocdn.akeebabackup.com/updates/ab'; $fname .= AKEEBA_PRO == 1 ? 'pro' : 'core'; $fname .= '.ini'; } else { $fname = 'http://www.akeebabackup.com/updates/ab'; $fname .= AKEEBA_PRO == 1 ? 'pro' : 'core'; $fname .= 'svn.ini'; } $this->_updateURL = $fname; $this->_extensionTitle = 'Akeeba Backup ' . (AKEEBA_PRO == 1 ? 'Professional' : 'Core'); $this->_requiresAuthorization = AKEEBA_PRO == 1; $this->_currentVersion = AKEEBA_VERSION; $this->_currentReleaseDate = AKEEBA_DATE; parent::__construct(); $this->_downloadID = AEPlatform::getInstance()->get_platform_configuration_option('update_dlid', ''); if (AKEEBA_PRO) { $this->_minStability = AEPlatform::getInstance()->get_platform_configuration_option('minstability', 'stable'); } else { $this->_minStability = 'stable'; } $this->_cacerts = dirname(__FILE__) . '/../akeeba/assets/cacert.pem'; if (substr($this->_currentVersion, 0, 3) == 'svn') { $this->_versionStrategy = 'newest'; } }
function __construct() { JLoader::import('joomla.filesystem.file'); include_once JPATH_ADMINISTRATOR . '/components/com_falang/version.php'; $version = new FalangVersion(); $this->_cacerts = dirname(__FILE__) . '/../assets/cacert.pem'; switch ($version->_versiontype) { case "basic": $this->_requiresAuthorization = true; $this->_updateURL = 'http://www.faboba.com/index.php?option=com_ars&lang=en&view=update&format=ini&id=3'; break; case "standard": $this->_requiresAuthorization = true; $this->_updateURL = 'http://www.faboba.com/index.php?option=com_ars&lang=en&view=update&format=ini&id=4'; break; case "pro": $this->_requiresAuthorization = true; $this->_updateURL = 'http://www.faboba.com/index.php?option=com_ars&lang=en&view=update&format=ini&id=5'; break; default: $this->_requiresAuthorization = false; $this->_updateURL = 'http://www.faboba.com/index.php?option=com_ars&lang=en&view=update&format=ini&id=2'; } $this->_extensionTitle = 'Falang ' . $version->_versiontype . ' version'; // Do we need authorized URLs? //$this->_requiresAuthorization = !$isFree; parent::__construct(); }
/** var $_storageAdapter = 'component'; var $_storageConfig = array( 'extensionName' => 'com_akeebasubs', 'key' => 'liveupdate' ); */ public function __construct() { parent::__construct(); // Dev releases use the "newest" strategy if (substr($this->_currentVersion, 1, 2) == 'ev') { $this->_versionStrategy = 'newest'; } }
function __construct() { $lang = JFactory::getLanguage(); $lang->load('com_kunena.sys', KPATH_ADMIN, 'en-GB'); $lang->load('com_kunena.sys') || $lang->load('com_kunena.sys', KPATH_ADMIN); $this->_cacerts = dirname(__FILE__) . '/../assets/cacert.pem'; $this->_extensionTitle = JText::_('COM_KUNENA'); parent::__construct(); }
public function __construct() { JLoader::import('joomla.filesystem.file'); // Should I use our private CA store? if (@file_exists(dirname(__FILE__) . '/../assets/cacert.pem')) { $this->_cacerts = dirname(__FILE__) . '/../assets/cacert.pem'; } parent::__construct(); }
/** * Constructor */ public function __construct() { // Populate downloadID as liveupdate cannot find the download id in the unknown for it scope $this->_downloadID = JComponentHelper::getParams('com_matukio')->get('global.downloadid'); // Dev releases use the "newest" strategy if (substr($this->_currentVersion, 1, 2) == 'ev') { $this->_versionStrategy = 'newest'; } parent::__construct(); }
public function __construct() { jimport('joomla.filesystem.file'); // Require helper file if (!defined('DS')) { define('DS', DIRECTORY_SEPARATOR); } $version_php = JPATH_COMPONENT_ADMINISTRATOR . DS . 'version.php'; if (!defined('COM_CWCONTACT_VERSION') && JFile::exists($version_php)) { require_once $version_php; } $isPro = COM_CWCONTACT_PRO == 1; // Load the component parameters, not using JComponentHelper to avoid conflicts ;) jimport('joomla.html.parameter'); jimport('joomla.application.component.helper'); $db = JFactory::getDbo(); $sql = $db->getQuery(true)->select($db->quoteName('params'))->from($db->quoteName('#__extensions'))->where($db->quoteName('type') . ' = ' . $db->quote('component'))->where($db->quoteName('element') . ' = ' . $db->quote('com_coalawebcontact')); $db->setQuery($sql); $rawparams = $db->loadResult(); $params = new JRegistry(); if (version_compare(JVERSION, '3.0', 'ge')) { $params->loadString($rawparams, 'JSON'); } else { $params->loadJSON($rawparams); } // Determine the appropriate update URL based on whether we're on Core or Professional edition if ($isPro) { $this->_updateURL = 'https://coalaweb.com/index.php?option=com_ars&view=update&format=ini&id=12'; $this->_extensionTitle = 'CoalaWeb Contact Pro'; } else { $this->_updateURL = 'https://coalaweb.com/index.php?option=com_ars&view=update&format=ini&id=11'; $this->_extensionTitle = 'CoalaWeb Contact Core'; } // Get the minimum stability level for updates $this->_minStability = 'beta'; // Do we need authorized URLs? $this->_requiresAuthorization = $isPro; // Should I use our private CA store? if (@file_exists(dirname(__FILE__) . '/../assets/cacert.pem')) { $this->_cacerts = dirname(__FILE__) . '/../assets/cacert.pem'; } parent::__construct(); }
function __construct() { parent::__construct(); }
function __construct() { $this->_cacerts = dirname(__FILE__) . '/../assets/cacert.pem'; parent::__construct(); }