From d27a3784c81f0c582e43655509e806978b7e65e4 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Wed, 3 Jun 2009 09:36:05 -0400 Subject: Allowed admin user to use site during maintenance --- includes/maintenance.php | 2 +- 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); $getconfig3 = mysql_fetch_array($getconfig2); if ($getconfig3['value'] == '1') { - if ($_SERVER['REMOTE_ADDR'] != '127.0.0.1') + if (($_SERVER['REMOTE_ADDR'] != '127.0.0.1') && (!isAdmin())) { $template = new FITemplate('maintenance'); $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'); include('../security/config.php'); include('includes/db.php'); include('includes/template.php'); -include('includes/maintenance.php'); include('includes/session.php'); +include('includes/maintenance.php'); include('includes/parsers.php'); include('includes/xmlrpc/xmlrpc.inc'); include('includes/specialdates.php'); -- cgit 1.4.1