From 432c00da9774da47cc17580106bd8d80e93a826d Mon Sep 17 00:00:00 2001 From: CaMer0n <cameron@e107coders.org> Date: Mon, 30 Apr 2007 21:00:10 +0000 Subject: [PATCH] membersonly correction. --- class2.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/class2.php b/class2.php index e62112e9b..a37bcd153 100644 --- a/class2.php +++ b/class2.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/class2.php,v $ -| $Revision: 1.19 $ -| $Date: 2007-04-15 16:07:39 $ -| $Author: lisa_ $ +| $Revision: 1.20 $ +| $Date: 2007-04-30 21:00:10 $ +| $Author: e107coders $ +----------------------------------------------------------------------------+ */ // @@ -665,7 +665,7 @@ $sql->db_Mark_Time('Start: Signup/splash/admin'); define("e_SIGNUP", e_BASE.(file_exists(e_BASE."customsignup.php") ? "customsignup.php" : "signup.php")); define("e_LOGIN", e_BASE.(file_exists(e_BASE."customlogin.php") ? "customlogin.php" : "login.php")); -if ($pref['membersonly_enabled'] && !USER && e_PAGE != e_SIGNUP && e_PAGE != "index.php" && e_PAGE != "fpw.php" && e_PAGE != e_LOGIN && strpos(e_PAGE, "admin") === FALSE && e_PAGE != 'membersonly.php' && e_PAGE != 'sitedown.php') { +if ($pref['membersonly_enabled'] && !USER && e_SELF != SITEURL.e_SIGNUP && e_SELF != SITEURL."index.php" && e_SELF != SITEURL."fpw.php" && e_SELF != SITEURL.e_LOGIN && strpos(e_PAGE, "admin") === FALSE && e_SELF != SITEURL.'membersonly.php' && e_SELF != SITEURL.'sitedown.php') { header("Location: ".e_HTTP."membersonly.php"); exit; }