File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 119119 <p><?= $ addon ->i18n ('upkeep_contact_admin ' ) ?> </p>
120120 </div>
121121
122- <a href="<?= rex_url::frontend () ?> " class="maintenance-button"><?= $ addon ->i18n ('upkeep_back_to_website ' ) ?> </a>
122+ <div style="margin-top: 2rem;">
123+ <?php
124+ $ logoutUrl = rex_url::backendController ([
125+ 'rex_logout ' => 1 ,
126+ '_csrf_token ' => rex_csrf_token::factory ('backend_logout ' )->getValue ()
127+ ]);
128+ ?>
129+ <a href="<?= $ logoutUrl ?> " class="maintenance-button" style="margin-right: 1rem;"><?= $ addon ->i18n ('upkeep_logout ' ) ?> </a>
130+ <a href="<?= rex_url::frontend () ?> " class="maintenance-button"><?= $ addon ->i18n ('upkeep_back_to_website ' ) ?> </a>
131+ </div>
123132 </div>
124133</body>
125134</html>
Original file line number Diff line number Diff line change @@ -332,6 +332,7 @@ upkeep_invalid_url = Ungültige URL
332332upkeep_backend_maintenance_message = Das REDAXO-Backend befindet sich im Wartungsmodus und ist vorübergehend nicht verfügbar.
333333upkeep_contact_admin = Bitte kontaktieren Sie den Administrator für weitere Informationen.
334334upkeep_back_to_website = Zurück zur Website
335+ upkeep_logout = Abmelden
335336
336337# HTTP-Einstellungen
337338upkeep_http_307 = 307 Temporary Redirect
Original file line number Diff line number Diff line change @@ -335,6 +335,7 @@ upkeep_invalid_url = Invalid URL
335335upkeep_backend_maintenance_message = The REDAXO backend is in maintenance mode and is temporarily unavailable.
336336upkeep_contact_admin = Please contact the administrator for more information.
337337upkeep_back_to_website = Back to Website
338+ upkeep_logout = Logout
338339
339340# HTTP Settings
340341upkeep_http_307 = 307 Temporary Redirect
Original file line number Diff line number Diff line change @@ -238,6 +238,12 @@ public static function checkBackend(): void
238238 $ httpStatusCode = self ::getConfig ('http_status_code ' , rex_response::HTTP_SERVICE_UNAVAILABLE );
239239 rex_response::setStatus ($ httpStatusCode );
240240
241+ // Retry-After Header setzen, wenn konfiguriert
242+ $ retryAfter = self ::getConfig ('retry_after ' , 0 );
243+ if ($ retryAfter > 0 ) {
244+ header ('Retry-After: ' . $ retryAfter );
245+ }
246+
241247 // Cache-Header setzen, damit die Seite nicht gecacht wird
242248 rex_response::sendCacheControl ();
243249
You can’t perform that action at this time.
0 commit comments