|
From: Jon O. <jon...@us...> - 2008-02-15 22:13:40
|
Update of /cvsroot/mxbb/mx_news/mx_news/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22627 Modified Files: functions.php mx_news_constants.php Log Message: Updated, sync with phpBB2 standalone usage Trailing newlines Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news/includes/functions.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions.php 8 Feb 2008 21:58:20 -0000 1.1 --- functions.php 15 Feb 2008 22:13:36 -0000 1.2 *************** *** 100,108 **** if ( $mode == 'window' ) { ! /* ! $userdata = session_pagestart( $user_ip, $page_id ); ! init_userprefs( $userdata ); ! */ ! $mx_user->init($user_ip, PAGE_INDEX); $gen_simple_header = true; --- 100,112 ---- if ( $mode == 'window' ) { ! if ( !MXBB_MODULE ) ! { ! $userdata = session_pagestart( $user_ip, $page_id ); ! init_userprefs( $userdata ); ! } ! else ! { ! $mx_user->init($user_ip, PAGE_INDEX); ! } $gen_simple_header = true; Index: mx_news_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news/includes/mx_news_constants.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_news_constants.php 8 Feb 2008 21:58:21 -0000 1.1 --- mx_news_constants.php 15 Feb 2008 22:13:36 -0000 1.2 *************** *** 48,71 **** define( 'CHECKBOX', 5 ); ! if ( !MXBB_MODULE || MXBB_27x ) ! { ! $mx_news_module_version = "Simple News Manager v. 1.0.0"; ! $mx_news_module_author = "Jon"; ! } ! else { ! if (is_object($mx_page)) ! { ! // ------------------------------------------------------------------------- ! // Extend User Style with module lang and images ! // Usage: $mx_user->extend(LANG, IMAGES) ! // Switches: ! // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE ! // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE ! // ------------------------------------------------------------------------- ! $mx_user->extend(); ! $mx_page->add_copyright( 'mxBB News Module' ); ! } } ?> \ No newline at end of file --- 48,63 ---- define( 'CHECKBOX', 5 ); ! if (is_object($mx_page)) { ! // ------------------------------------------------------------------------- ! // Extend User Style with module lang and images ! // Usage: $mx_user->extend(LANG, IMAGES) ! // Switches: ! // - LANG: MX_LANG_MAIN (default), MX_LANG_ADMIN, MX_LANG_ALL, MX_LANG_NONE ! // - IMAGES: MX_IMAGES (default), MX_IMAGES_NONE ! // ------------------------------------------------------------------------- ! $mx_user->extend(); ! $mx_page->add_copyright( 'mxBB News Module' ); } ?> \ No newline at end of file |