Instantly share code, notes, and snippets.

Embed
What would you like to do?
Individuel gestalteter Wartungsmodus
<?php
$protocol = $_SERVER['SERVER_PROTOCOL'];
if ( 'HTTP/1.1' != $protocol && 'HTTP/1.0' != $protocol ) {
$protocol = 'HTTP/1.0';
}
header( "$protocol 503 Service Unavailable", true, 503 );
header( 'Content-Type: text/html; charset=utf-8' );
header( 'Retry-After: 600' );
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Wordpress Wartungsmodus</title>
<style>
body { background-color: #000000; color: #ffffff; font-family: Avenir, sans-serif; font-size: 20px; }
h1 { color: #ffffff; font-family: Avenir, sans-serif; font-size: 40px; }
</style>
<meta http-equiv="refresh" content="5; URL=https://darin.ch/">
</head>
<body>
<div align="center">
<p><img src="https://www.darin.ch/static-img/wp/wartung/logo-wartung.png" alt="Wordpress Logo weiss"></p>
<h1>Wordpress Wartungsmodus</h1>
<p>Wordpress aktualisiert gerade seine Software.<br />Das dauert in der Regel nur wenige Sekunden.<br />
Die Webseite wird automatisch wieder angezeigt, sobald das Update abgeschlossen ist.
</p>
<p><img src="https://www.darin.ch/static-img/wp/wartung/ani.gif" alt="Warten Animation" width="50" height="50">
<br /><img src="https://www.darin.ch/static-img/wp/wartung/line.jpg" alt="Linie" width="900" height="1"></p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment