|
From: Jon O. <jon...@us...> - 2006-12-16 16:37:28
|
Update of /cvsroot/mxbb/core/includes In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28428/includes Modified Files: mx_constants.php mx_functions_phpbb.php mx_functions_style.php Log Message: viewonline bug in adminCP solved Index: mx_functions_style.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_style.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** mx_functions_style.php 22 Aug 2006 20:21:50 -0000 1.8 --- mx_functions_style.php 16 Dec 2006 16:37:23 -0000 1.9 *************** *** 246,250 **** { global $userdata; ! $userdata = session_pagestart($user_ip, - ( 1000 + $page_id )); // Use native phpBB 2.0.x session handling $this->is_admin = $userdata['user_level'] == ADMIN && $userdata['session_logged_in']; } --- 246,250 ---- { global $userdata; ! $userdata = session_pagestart($user_ip, - ( MX_PORTAL_PAGES_OFFSET + $page_id )); // Use native phpBB 2.0.x session handling $this->is_admin = $userdata['user_level'] == ADMIN && $userdata['session_logged_in']; } Index: mx_functions_phpbb.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_functions_phpbb.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** mx_functions_phpbb.php 28 Aug 2006 21:10:52 -0000 1.27 --- mx_functions_phpbb.php 16 Dec 2006 16:37:23 -0000 1.28 *************** *** 481,485 **** // Compute Page Identifier // ! $page_id = MX_PORTAL_PAGES_OFFSET - $session_page; // --- 481,485 ---- // Compute Page Identifier // ! $page_id = - $session_page - MX_PORTAL_PAGES_OFFSET; // *************** *** 493,497 **** { return array( ! $lang['Page'] . ': ' . $mx_pages_data[$i]['page_name'], PORTAL_URL . "index.$phpEx?page=" . $mx_pages_data[$i]['page_id'] ); --- 493,497 ---- { return array( ! $mx_pages_data[$i]['page_name'], PORTAL_URL . "index.$phpEx?page=" . $mx_pages_data[$i]['page_id'] ); Index: mx_constants.php =================================================================== RCS file: /cvsroot/mxbb/core/includes/mx_constants.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** mx_constants.php 26 Jun 2006 21:32:22 -0000 1.22 --- mx_constants.php 16 Dec 2006 16:37:23 -0000 1.23 *************** *** 24,28 **** * @access private */ ! define('MX_PORTAL_PAGES_OFFSET', -1000); /** --- 24,28 ---- * @access private */ ! define('MX_PORTAL_PAGES_OFFSET', 1000); /** |