Skip to content

Instantly share code, notes, and snippets.

@gregoirenoyelle
Created May 6, 2014 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gregoirenoyelle/06845ad167b16468f9db to your computer and use it in GitHub Desktop.
Save gregoirenoyelle/06845ad167b16468f9db to your computer and use it in GitHub Desktop.
Template Maintance base
<?php
$protocol = "HTTP/1.0";
if ( "HTTP/1.1" == $_SERVER["SERVER_PROTOCOL"] )
$protocol = "HTTP/1.1";
header( "$protocol 503 Service Unavailable", true, 503 );
header( 'Content-Type: text/html; charset=utf-8' );
header( "Retry-After: 3600" );
?>
<!DOCTYPE html>
<html>
<head>
<title>Maintenance...</title>
<link href='http://fonts.googleapis.com/css?family=Crafty+Girls' rel='stylesheet' type='text/css'>
<meta charset="utf-8">
<style type="text/css">
body {
font-family: 'Crafty Girls', "Helvetica Neue", Arial, Helvetica, sans-serif;
background: #ccc;
}
.wrapper {
width: 400px;
margin: 30px auto;
padding: 30px;
background: #fff;
}
h1 { color: orange; text-align: center;}
h3 {color: #888;}
</style>
</head>
<body>
<div class="wrapper">
<h1>Maintenance...</h1>
<h3>Nous revenons rapidement Le site se met à jour</h3>
</div>
</body>
</html>
<?php die(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment