Esempio n. 1
0
 /**
  * Public constructor. Initialises the protected members as well.
  *
  * @param array $config
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $isPro = defined('AKEEBA_PRO') ? AKEEBA_PRO : 0;
     JLoader::import('joomla.application.component.helper');
     $dlid = AEUtilComconfig::getValue('update_dlid', '');
     $this->extraQuery = null;
     // If I have a valid Download ID I will need to use a non-blank extra_query in Joomla! 3.2+
     if (preg_match('/^([0-9]{1,}:)?[0-9a-f]{32}$/i', $dlid)) {
         // Even if the user entered a Download ID in the Core version. Let's switch his update channel to Professional
         $isPro = true;
         $this->extraQuery = 'dlid=' . $dlid;
     }
     $this->updateSiteName = 'Akeeba Backup ' . ($isPro ? 'Professional' : 'Core');
     $this->updateSite = 'http://cdn.akeebabackup.com/updates/ab' . ($isPro ? 'pro' : 'core') . '.xml';
 }
Esempio n. 2
0
 /**
  * Public constructor. Initialises the protected members as well.
  *
  * @param array $config
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $isPro = defined('J2STORE_PRO') ? J2STORE_PRO : 0;
     JLoader::import('joomla.application.component.helper');
     require_once JPATH_ADMINISTRATOR . '/components/com_j2store/helpers/j2store.php';
     $params = J2Store::config();
     $dlid = $params->get('downloadid', '');
     $this->extraQuery = null;
     // If I have a valid Download ID I will need to use a non-blank extra_query in Joomla! 3.2+
     if (preg_match('/^([0-9]{1,}:)?[0-9a-f]{32}$/i', $dlid)) {
         // Even if the user entered a Download ID in the Core version. Let's switch his update channel to Professional
         $isPro = true;
         $this->extraQuery = 'dlid=' . $dlid;
     }
     $this->updateSiteName = 'J2Store ' . ($isPro ? 'Professional' : 'Core');
     $this->updateSite = 'http://cdn.j2store.org/j2store' . ($isPro ? '' : 'core') . '.xml';
 }
Esempio n. 3
0
 /**
  * Public constructor. Initialises the protected members as well.
  *
  * @param   array  $config  Param
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $dlid = EParameter::getComponentParam(CAUTOTWEETNG, 'update_dlid', '');
     $this->extraQuery = '';
     // If I have a valid Download ID I will need to use a non-blank extra_query in Joomla! 3.2+
     if (preg_match('/^([0-9]{1,}:)?[0-9a-f]{32}$/i', $dlid)) {
         $this->extraQuery = 'dlid=' . $dlid;
     }
     $this->updateSiteName = VersionHelper::getFlavourName();
     $this->updateSite = VersionHelper::getUpdatesSite();
     $minstability = EParameter::getComponentParam(CAUTOTWEETNG, 'minstability');
     if ($minstability == self::CONFIG_AUTOUPDATE_BETA) {
         // Live site
         $this->updateSite .= '-beta';
     }
     // $this->updateSite = 'http://www.extly.com/update-autotweetng-free-test.xml';
     // $this->updateSite = 'http://www.extly.com/update-autotweetng-joocial-test.xml';
 }
Esempio n. 4
0
 /**
  * Public constructor. Initialises the protected members as well.
  *
  * @param array $config
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->updateSiteName = 'Akeeba Subscriptions';
     $this->updateSite = 'http://cdn.akeebabackup.com/updates/akeebasubs.xml';
 }