Exemple #1
0
 /**
  * Get Soft Reset URL
  *
  * @return string
  */
 public function getSoftResetURL()
 {
     return \Includes\SafeMode::getResetURL(true);
 }
Exemple #2
0
 /**
  * Send notification about generated safe mode access key
  *
  * @param string $key Access key
  *
  * @return void
  */
 public static function sendSafeModeAccessKeyNotification($key)
 {
     // Register variables
     static::register('key', $key);
     static::register('hard_reset_url', \Includes\SafeMode::getResetURL());
     static::register('soft_reset_url', \Includes\SafeMode::getResetURL(true));
     static::register('article_url', \XLite::getController()->getArticleURL());
     static::compose(static::TYPE_SAFE_MODE_ACCESS_KEY, static::getSiteAdministratorMail(), static::getSiteAdministratorMail(), 'safe_mode_key_generated', array(), true, \XLite::ADMIN_INTERFACE, static::getMailer()->getLanguageCode(\XLite::ADMIN_INTERFACE));
 }
Exemple #3
0
 /**
  * Get an action URL
  *
  * @return string
  */
 protected function getHardResetURL()
 {
     return \Includes\SafeMode::getResetURL(false);
 }
Exemple #4
0
 /**
  * Send notification about generated safe mode access key
  *
  * @param string $key Access key
  *
  * @return void
  */
 public static function sendSafeModeAccessKeyNotification($key)
 {
     static::setMailInterface(\XLite::ADMIN_INTERFACE);
     // Register variables
     static::register('key', $key);
     static::register('hard_reset_url', \Includes\SafeMode::getResetURL());
     static::register('soft_reset_url', \Includes\SafeMode::getResetURL(true));
     static::compose(\XLite\Core\Config::getInstance()->Company->site_administrator, \XLite\Core\Config::getInstance()->Company->site_administrator, 'safe_mode_key_generated');
 }