|
From: Jon O. <jon...@us...> - 2005-10-12 15:37:44
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15763 Modified Files: index.php Log Message: Adding IP filter for pages Merged module_def panels and parameters, now usable at the same time Menu navigation fixes for highlights Index: index.php =================================================================== RCS file: /cvsroot/mxbb/core/index.php,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** index.php 2 Oct 2005 21:24:30 -0000 1.44 --- index.php 12 Oct 2005 15:37:32 -0000 1.45 *************** *** 74,77 **** --- 74,82 ---- mx_redirect( append_sid( $mx_root_path . "login.$phpEx?redirect=" . mx_this_url(), true ) ); } + elseif ( !$mx_page->auth_ip ) + { + $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__, ''); + } |