<?PHP
$maintenance ="";
require_once('core.php');
$Select= $bdd->prepare('SELECT * FROM pluscms_configuration WHERE id = ?');
$Select->execute(array(intval(1)));
$m = $Select->fetch();

if ($m['maintenance'] == "desactiver") {
	header('Location: index.php');
	exit();
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
	<title><?PHP echo htmlspecialchars(trim($cms['nom_hotel'])); ?> - Maintenance</title>
</head>
<body style="background-color: #f1e7e8;">
<div style="width: 970px;margin-right: auto;margin-left: auto;">
	<img src="http://hsource.fr/font/habbo_new/<?PHP echo htmlspecialchars(trim($cms['nom_hotel'])); ?>.gif"><br>
</div>
<div style="text-align: center;width: 970px;margin-left: auto;margin-right: auto;background-color: rgb(140, 23, 41);border-radius: 5px;padding: 10px;margin-top: auto;">
<img src="<?PHP echo htmlspecialchars(trim($cms['lien'])); ?>/web/img/maintenance/Frank_horsligne.gif">
<h2 style="color: #f1e7e8;text-transform: uppercase;font-weight: 600;font-family: sans-serif;">Maintenance break !</h2><br>
<p style="color: #f1e7e8;font-family: sans-serif;font-weight: 600">
<?PHP echo htmlspecialchars_decode(trim($m['maintenance_raison'])); ?>
</p>
</div>
<div style="margin-top: 15px;"></div>
 <footer style="background-color: rgb(140, 23, 41);text-align: center;color: #FFF;width: 984px;margin-left: auto;margin-right: auto;padding: 3px;text-transform: uppercase;font-family: sans-serif;border-radius: 5px;">
     <h5>Ce site est propulsé par PlusCMS</h5>
 </footer>
</body>
</html>