|
From: Benjamin C. <bc...@us...> - 2005-01-22 16:30:35
|
Update of /cvsroot/phpbt/phpbt/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2554/inc Modified Files: auth.php Log Message: Fixes bug #1092270 - Changing the name of the User group breaks the personal options page Index: auth.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/auth.php,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- auth.php 25 Oct 2004 12:07:00 -0000 1.19 +++ auth.php 22 Jan 2005 16:30:26 -0000 1.20 @@ -50,6 +50,13 @@ return false; } } + + function force_auth() { + if (!$this->is_authenticated()) { + show_text('You must be logged in to use this page'); + exit; + } + } function auth_validatelogin() { global $db, $select, $emailpass, $emailsuccess, $uid; @@ -178,7 +185,7 @@ if (!$this->check_auth('group', $group)) { $t->assign('group', $group); - $t->wrap('badgroup.html'); + $t->render('badgroup.html', 'Group Failure'); exit(); } } |