Created
August 10, 2012 13:59
-
-
Save Shadow6363/3314402 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Configure::write('maintenance', 0); | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); | |
} | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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