/** * Get Soft Reset URL * * @return string */ public function getSoftResetURL() { return \Includes\SafeMode::getResetURL(true); }
/** * 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)); }
/** * Get an action URL * * @return string */ protected function getHardResetURL() { return \Includes\SafeMode::getResetURL(false); }
/** * 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'); }