|
From: Benjamin C. <bc...@us...> - 2002-03-28 22:14:48
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv12757
Modified Files:
include.php newaccount.php
Log Message:
Cleaned up the forced login
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -r1.103 -r1.104
--- include.php 28 Mar 2002 20:47:06 -0000 1.103
+++ include.php 28 Mar 2002 22:14:44 -0000 1.104
@@ -222,8 +222,7 @@
}
-if (FORCE_LOGIN and !$u and
- !strstr($HTTP_SERVER_VARS['SCRIPT_NAME'], 'newaccount.php')) {
+if (defined('FORCE_LOGIN') and FORCE_LOGIN and !$u and !defined('NO_AUTH')) {
include(INSTALL_PATH.'/templates/'.THEME.'/login.html');
exit;
}
Index: newaccount.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/newaccount.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- newaccount.php 17 Mar 2002 01:44:24 -0000 1.24
+++ newaccount.php 28 Mar 2002 22:14:44 -0000 1.25
@@ -22,6 +22,7 @@
// ------------------------------------------------------------------------
// $Id$
+define('NO_AUTH', 1);
include 'include.php';
function do_form() {
|