|
From: Markus P. <mar...@us...> - 2005-04-25 23:56:33
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17977 Modified Files: index.php Log Message: Fixed a couple of things and added mouseover effect to pagination. Index: index.php =================================================================== RCS file: /cvsroot/mxbb/core/index.php,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** index.php 25 Apr 2005 12:02:42 -0000 1.35 --- index.php 25 Apr 2005 23:56:07 -0000 1.36 *************** *** 85,96 **** $is_auth_ary = page_auth(AUTH_VIEW, $userdata, $page_row['page_auth_view'], $page_row['page_auth_view_group']); ! if ( !$is_auth_ary['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 ( !$is_auth_ary['auth_view'] && !$userdata['session_logged_in'] ) { ! mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=" . mx_this_url(), true)); } --- 85,99 ---- $is_auth_ary = page_auth(AUTH_VIEW, $userdata, $page_row['page_auth_view'], $page_row['page_auth_view_group']); ! if( !$is_auth_ary['auth_view'] ) { ! if( $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); ! } ! else ! { ! mx_redirect(append_sid($mx_root_path . "login.$phpEx?redirect=" . mx_this_url(), true)); ! } } *************** *** 103,107 **** // Initialize template // ! $layouttemplate = new mx_Template($template->root, $board_config, $db); $layouttemplate->set_filenames(array( --- 106,110 ---- // Initialize template // ! $layouttemplate = new mx_Template($template->root); $layouttemplate->set_filenames(array( |