diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2009-06-03 09:36:05 -0400 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2009-06-03 09:36:05 -0400 |
commit | d27a3784c81f0c582e43655509e806978b7e65e4 (patch) | |
tree | df5afcc899f2db688ae0b3a4b3ec28bb1aa5934f | |
parent | fff2a397777d8bf7c56466768bdc97db1a02f749 (diff) | |
download | fourisland-d27a3784c81f0c582e43655509e806978b7e65e4.tar.gz fourisland-d27a3784c81f0c582e43655509e806978b7e65e4.tar.bz2 fourisland-d27a3784c81f0c582e43655509e806978b7e65e4.zip |
Allowed admin user to use site during maintenance
-rwxr-xr-x | includes/maintenance.php | 2 | ||||
-rwxr-xr-x | index.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/includes/maintenance.php b/includes/maintenance.php index 79466f9..b3150c5 100755 --- a/includes/maintenance.php +++ b/includes/maintenance.php | |||
@@ -27,7 +27,7 @@ $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') && (!isAdmin())) |
31 | { | 31 | { |
32 | $template = new FITemplate('maintenance'); | 32 | $template = new FITemplate('maintenance'); |
33 | $template->display($template); | 33 | $template->display($template); |
diff --git a/index.php b/index.php index bea38b7..53edd33 100755 --- a/index.php +++ b/index.php | |||
@@ -25,8 +25,8 @@ header('X-Pingback: http://fourisland.com/xmlrpc.php'); | |||
25 | include('../security/config.php'); | 25 | include('../security/config.php'); |
26 | include('includes/db.php'); | 26 | include('includes/db.php'); |
27 | include('includes/template.php'); | 27 | include('includes/template.php'); |
28 | include('includes/maintenance.php'); | ||
29 | include('includes/session.php'); | 28 | include('includes/session.php'); |
29 | include('includes/maintenance.php'); | ||
30 | include('includes/parsers.php'); | 30 | include('includes/parsers.php'); |
31 | include('includes/xmlrpc/xmlrpc.inc'); | 31 | include('includes/xmlrpc/xmlrpc.inc'); |
32 | include('includes/specialdates.php'); | 32 | include('includes/specialdates.php'); |