diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2008-12-20 21:41:09 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2008-12-20 21:41:09 -0500 |
commit | eaf0dc418bb8338a0de53c6ca6d2469ce3b70214 (patch) | |
tree | 8b5ae56f2080d1dbdb261e04f71e11ddaacef12e /includes | |
parent | 03d6589fefd850f793215cb6805c0f0c0989f93f (diff) | |
download | fourisland-eaf0dc418bb8338a0de53c6ca6d2469ce3b70214.tar.gz fourisland-eaf0dc418bb8338a0de53c6ca6d2469ce3b70214.tar.bz2 fourisland-eaf0dc418bb8338a0de53c6ca6d2469ce3b70214.zip |
Added Maintenance switcher to Admin
Also fixed spelling of maintenance in places where it was incorrectly spelled. Maintenance Required: Rename "mantainenceMode" config to "maintenanceMode"
Diffstat (limited to 'includes')
-rwxr-xr-x | includes/maintenance.php (renamed from includes/mantainence.php) | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/includes/mantainence.php b/includes/maintenance.php index 6e595a1..79466f9 100755 --- a/includes/mantainence.php +++ b/includes/maintenance.php | |||
@@ -8,7 +8,7 @@ | |||
8 | 4::::4 4::::4 | 8 | 4::::4 4::::4 |
9 | 4::::4 4::::4 Written and maintained by Starla Insigna | 9 | 4::::4 4::::4 Written and maintained by Starla Insigna |
10 | 4::::444444::::444 | 10 | 4::::444444::::444 |
11 | 4::::::::::::::::4 includes/mantainence.php | 11 | 4::::::::::::::::4 includes/maintenance.php |
12 | 4444444444:::::444 | 12 | 4444444444:::::444 |
13 | 4::::4 Please do not use, reproduce or steal the | 13 | 4::::4 Please do not use, reproduce or steal the |
14 | 4::::4 contents of this file without explicit | 14 | 4::::4 contents of this file without explicit |
@@ -22,14 +22,14 @@ if (!defined('S_INCLUDE_FILE')) {define('S_INCLUDE_FILE',1);} | |||
22 | 22 | ||
23 | require('headerproc.php'); | 23 | require('headerproc.php'); |
24 | 24 | ||
25 | $getconfig = "SELECT * FROM config WHERE name = \"mantainenceMode\""; | 25 | $getconfig = "SELECT * FROM config WHERE name = \"maintenanceMode\""; |
26 | $getconfig2 = mysql_query($getconfig); | 26 | $getconfig2 = mysql_query($getconfig); |
27 | $getconfig3 = mysql_fetch_array($getconfig2); | 27 | $getconfig3 = mysql_fetch_array($getconfig2); |
28 | if ($getconfig3['value'] == '1') | 28 | if ($getconfig3['value'] == '1') |
29 | { | 29 | { |
30 | if ($_SERVER['REMOTE_ADDR'] != '127.0.0.1') | 30 | if ($_SERVER['REMOTE_ADDR'] != '127.0.0.1') |
31 | { | 31 | { |
32 | $template = new FITemplate('mantainence'); | 32 | $template = new FITemplate('maintenance'); |
33 | $template->display($template); | 33 | $template->display($template); |
34 | 34 | ||
35 | exit; | 35 | exit; |