Example #1
0
 public function on_start()
 {
     $this->secCheck();
     // if you just reverted, but didn't manually clear out your files - cache would be a prob here.
     Cache::disableLocalCache();
     $this->site_version = Config::get('SITE_APP_VERSION');
     Database::ensureEncoding();
 }
Example #2
0
 public function on_start()
 {
     $cnt = Loader::controller('/dashboard/system/backup_restore/update');
     $cnt->secCheck();
     // if you just reverted, but didn't manually clear out your files - cache would be a prob here.
     $ca = new Cache();
     $ca->flush();
     Cache::disableCache();
     Cache::disableLocalCache();
     $this->site_version = Config::get('SITE_APP_VERSION');
     Database::ensureEncoding();
 }
 public function install_database()
 {
     $db = Loader::db();
     $installDirectory = DIR_BASE_CORE . '/config';
     try {
         Database::ensureEncoding();
         Package::installDB($installDirectory . '/db.xml');
     } catch (Exception $e) {
         throw new Exception(t('Unable to install database: %s', $db->ErrorMsg()));
     }
 }