/**
  * Fetches the JSON from the remote server and writes it
  */
 public function buildLocalJsonCache()
 {
     $json = darkLAE::getVisualSkinEditorJsonData();
     if ($json) {
         $cacheFile = IPS_CACHE_PATH . 'cache/skinGenJsonCache.js';
         if (file_exists($cacheFile)) {
             @unlink($cacheFile);
         }
         file_put_contents($cacheFile, $json);
         @chmod($cacheFile, 0777);
     } else {
         throw new Exception("JSON_NOT_RETURNED");
     }
     return true;
 }
Esempio n. 2
0
 /**
  * Execute selected method
  *
  * @access	public
  * @param	object		Registry object
  * @return	@e void
  */
 public function doExecute(ipsRegistry $registry)
 {
     IPSLib::updateSettings(array('ipb_reg_number' => darkLAE::getLicenseKey()));
     $this->registry->autoLoadNextAction('upgrade');
 }
Esempio n. 3
0
 /**
  * Execute selected method
  *
  * @access	public
  * @param	object		Registry object
  * @return	@e void
  */
 public function doExecute(ipsRegistry $registry)
 {
     IPSSetup::setSavedData('lkey', darkLAE::getLicenseKey());
     $this->registry->autoLoadNextAction('db');
 }
Esempio n. 4
0
 /**
  * Recache License Data
  */
 public function recache()
 {
     /* Save */
     $licenseData = darkLAE::getLicenseData();
     $licenseData['_cached_date'] = time();
     $licenseData['key']['_expires'] = $licenseData['key']['_expires'] ? $licenseData['key']['_expires'] : 9999999999;
     $licenseData['key']['expires'] = $licenseData['key']['expires'] ? $licenseData['key']['expires'] : 9999999999;
     $this->cache->setCache('licenseData', $licenseData, array('array' => 1));
 }