Skip to content

Instantly share code, notes, and snippets.

@Shadow6363
Created August 10, 2012 13:59
Show Gist options
  • Save Shadow6363/3314402 to your computer and use it in GitHub Desktop.
Save Shadow6363/3314402 to your computer and use it in GitHub Desktop.
<?php
Configure::write('maintenance', 0);
?>
<?php
if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
return;
} else {
if(Configure::read('maintenance') == 1) {
require('maintenance.php');
} else {
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch();
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Down for Maintenance</title>
</head>
<body>
<h1>Maintenance</h1>
<p>This site is temporarily down for maintenance.</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment