From 6da9342fba299c30983c1d32e293a0a29401b13c Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 7 Dec 2008 17:42:26 -0500 Subject: Created a "Mantainence Mode" A mantainence has been created in the config table so that when it is on, users other than the localhost only see a temporarily down message, while localhost can still access Four Island. This will be useful during times when changes in this repository do things that require the database schema to be changed or scripts to be run, such as the previous three changesets. --- includes/mantainence.php | 39 +++++++++++++++++++++++++++++++++++++++ index.php | 1 + theme/mantainence.tpl | 6 ++++++ 3 files changed, 46 insertions(+) create mode 100755 includes/mantainence.php create mode 100644 theme/mantainence.tpl diff --git a/includes/mantainence.php b/includes/mantainence.php new file mode 100755 index 0000000..6e595a1 --- /dev/null +++ b/includes/mantainence.php @@ -0,0 +1,39 @@ +display($template); + + exit; + } +} + +?> diff --git a/index.php b/index.php index c7e6d5b..9faecc9 100755 --- a/index.php +++ b/index.php @@ -25,6 +25,7 @@ header('X-Pingback: http://fourisland.com/xmlrpc.php'); include('../security/config.php'); include('includes/db.php'); include('includes/template.php'); +include('includes/mantainence.php'); include('includes/session.php'); include('includes/bbcode.php'); include('includes/xmlrpc/xmlrpc.inc'); diff --git a/theme/mantainence.tpl b/theme/mantainence.tpl new file mode 100644 index 0000000..dab4ef5 --- /dev/null +++ b/theme/mantainence.tpl @@ -0,0 +1,6 @@ +

Four Island is under mantainence

+ +

I'm sorry, but you've caught Four Island off guard. We're currently upgrading the website to accomidate for some fun new features we've thrown in, +so Four Island'll be down for a few minutes. Please try again soon and thanks for your interest in Four Island!

+ +

--Starla Insigna

-- cgit 1.4.1