|
From: Jon O. <jon...@us...> - 2007-08-12 22:29:22
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22995 Modified Files: Tag: core28x index.php Log Message: Page auth and overall_header blockCP Index: index.php =================================================================== RCS file: /cvsroot/mxbb/core/index.php,v retrieving revision 1.70 retrieving revision 1.70.2.1 diff -C2 -d -r1.70 -r1.70.2.1 *** index.php 22 Jul 2007 20:59:56 -0000 1.70 --- index.php 12 Aug 2007 22:29:18 -0000 1.70.2.1 *************** *** 70,79 **** // Page Auth and IP filter // ! if ( !$mx_page->auth_view && $userdata['session_logged_in'] ) { $message = empty( $lang['Page_Not_Authorised'] ) ? "Sorry, but you don't have privilege to access this page." : $lang['Page_Not_Authorised']; mx_message_die(GENERAL_MESSAGE, $message, '', __LINE__, __FILE__, ''); } ! elseif ( !$mx_page->auth_view && !$userdata['session_logged_in'] ) { mx_redirect( append_sid( "login.$phpEx?redirect=" . 'index.php?page=' . $page_id, true ) ); --- 70,79 ---- // Page Auth and IP filter // ! if ( !($mx_page->auth_view || $mx_page->auth_mod) && $userdata['session_logged_in'] ) { $message = empty( $lang['Page_Not_Authorised'] ) ? "Sorry, but you don't have privilege to access this page." : $lang['Page_Not_Authorised']; mx_message_die(GENERAL_MESSAGE, $message, '', __LINE__, __FILE__, ''); } ! elseif ( !($mx_page->auth_view || $mx_page->auth_mod) && !$userdata['session_logged_in'] ) { mx_redirect( append_sid( "login.$phpEx?redirect=" . 'index.php?page=' . $page_id, true ) ); |