|
From: OryNider <ory...@us...> - 2008-02-05 04:28:53
|
Update of /cvsroot/mxbb/mx_glance In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7020 Modified Files: Tag: core28x db_install.php db_upgrade.php mx_glance.php Log Message: small bug fix Index: mx_glance.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/mx_glance.php,v retrieving revision 1.9.2.2 retrieving revision 1.9.2.3 diff -C2 -d -r1.9.2.2 -r1.9.2.3 *** mx_glance.php 24 Jan 2008 18:44:36 -0000 1.9.2.2 --- mx_glance.php 5 Feb 2008 04:28:46 -0000 1.9.2.3 *************** *** 6,9 **** --- 6,10 ---- * @copyright (c) 2001-2007 blulegend, Jack Kan, OryNider * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 + * @link http://www.mx-publisher.com * */ *************** *** 501,510 **** $newest_code = ( $unread_topics && $recent_show_new_bullets ) ? '&view=newest' : ''; - //$message_date = $mx_user->format_date($latest_news[$i]['topic_time']); - if ( function_exists( 'create_date' ) ) { $message_date = create_date($board_config['default_dateformat'], $latest_news[$i]['topic_time'], $board_config['board_timezone']); } else { --- 502,513 ---- $newest_code = ( $unread_topics && $recent_show_new_bullets ) ? '&view=newest' : ''; if ( function_exists( 'create_date' ) ) { $message_date = create_date($board_config['default_dateformat'], $latest_news[$i]['topic_time'], $board_config['board_timezone']); } + else if (PORTAL_BACKEND == 'phpbb3') + { + $last_post_time = $mx_user->format_date($latest_news[$i]['topic_time']); + } else { *************** *** 512,516 **** } - if ( function_exists('mx_get_username_string') && (PORTAL_BACKEND == 'phpbb3') ) { --- 515,518 ---- *************** *** 621,625 **** $topic_replies = $latest_news[$i]['topic_replies']; - //$last_post_time = $mx_user->format_date($latest_news[$i]['post_time']); if ( function_exists( 'create_date' ) ) --- 623,626 ---- *************** *** 627,635 **** $last_post_time = create_date($board_config['default_dateformat'], $latest_news[$i]['post_time'], $board_config['board_timezone']); } ! else { - //$last_post_time = phpBB2::create_date($board_config['default_dateformat'], $latest_news[$i]['post_time'], $board_config['board_timezone']); $last_post_time = $mx_user->format_date($latest_news[$i]['topic_last_post_time']); } $recent_news_total_info = count($i); --- 628,639 ---- $last_post_time = create_date($board_config['default_dateformat'], $latest_news[$i]['post_time'], $board_config['board_timezone']); } ! else if (PORTAL_BACKEND == 'phpbb3') { $last_post_time = $mx_user->format_date($latest_news[$i]['topic_last_post_time']); } + else + { + $last_post_time = phpBB2::create_date($board_config['default_dateformat'], $latest_news[$i]['topic_time'], $board_config['board_timezone']); + } $recent_news_total_info = count($i); *************** *** 763,766 **** --- 767,774 ---- $topic_date_time = create_date($board_config['default_dateformat'], $latest_topics[$i]['topic_time'], $board_config['board_timezone']); } + else if (PORTAL_BACKEND == 'phpbb3') + { + $last_post_time = $mx_user->format_date($latest_topics[$i]['topic_time']); + } else { *************** *** 778,787 **** $last_post_time = create_date($board_config['default_dateformat'], $latest_topics[$i]['post_time'], $board_config['board_timezone']); } ! else { - //$last_post_time = phpBB2::create_date($board_config['default_dateformat'], $latest_topics[$i]['post_time'], $board_config['board_timezone']); $last_post_time = $mx_user->format_date($latest_topics[$i]['post_time']); } ! if ( function_exists('mx_get_username_string') && (PORTAL_BACKEND == 'phpbb3') ) --- 786,801 ---- $last_post_time = create_date($board_config['default_dateformat'], $latest_topics[$i]['post_time'], $board_config['board_timezone']); } ! else if (PORTAL_BACKEND == 'phpbb3') { $last_post_time = $mx_user->format_date($latest_topics[$i]['post_time']); } ! else if (PORTAL_BACKEND == 'phpbb3') ! { ! $last_post_time = $mx_user->format_date($latest_topics[$i]['post_time']); ! } ! else ! { ! $last_post_time = phpBB2::create_date($board_config['default_dateformat'], $latest_topics[$i]['post_time'], $board_config['board_timezone']); ! } if ( function_exists('mx_get_username_string') && (PORTAL_BACKEND == 'phpbb3') ) Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/db_install.php,v retrieving revision 1.3.2.3 retrieving revision 1.3.2.4 diff -C2 -d -r1.3.2.3 -r1.3.2.4 *** db_install.php 1 Feb 2008 21:25:17 -0000 1.3.2.3 --- db_install.php 5 Feb 2008 04:28:46 -0000 1.3.2.4 *************** *** 32,36 **** $mx_module_version = '2.4.0'; ! $mx_module_copy = 'mxBB <i> - At A Glance</i> module by blulegend, Jack Kan & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; $message = "<b>This is a fresh install!</b><br/><br/>"; --- 32,36 ---- $mx_module_version = '2.4.0'; ! $mx_module_copy = 'mxBB <i> - At A Glance</i> module by blulegend, Jack Kan & <a href="http://www.mx-publisher.com" target="_blank">Mx Team</a>'; $message = "<b>This is a fresh install!</b><br/><br/>"; *************** *** 39,45 **** $sql[] = "UPDATE " . $mx_table_prefix . "module" . " ! SET module_version = '" . $mx_module_version . "', ! module_copy = '" . $mx_module_copy . "' ! WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); --- 39,45 ---- $sql[] = "UPDATE " . $mx_table_prefix . "module" . " ! SET module_version = '" . $mx_module_version . "', ! module_copy = '" . $mx_module_copy . "' ! WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_glance/db_upgrade.php,v retrieving revision 1.3.2.3 retrieving revision 1.3.2.4 diff -C2 -d -r1.3.2.3 -r1.3.2.4 *** db_upgrade.php 1 Feb 2008 21:25:17 -0000 1.3.2.3 --- db_upgrade.php 5 Feb 2008 04:28:46 -0000 1.3.2.4 *************** *** 32,36 **** $mx_module_version = '2.4.0'; ! $mx_module_copy = 'mxBB <i> - At A Glace</i> module by blulegend, Jack Kan & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; $message = "<b>Upgrading!</b><br/><br/>"; --- 32,36 ---- $mx_module_version = '2.4.0'; ! $mx_module_copy = 'mxBB <i> - At A Glace</i> module by blulegend, Jack Kan & <a href="http://www.mx-publisher.com" target="_blank">Mx Team</a>'; $message = "<b>Upgrading!</b><br/><br/>"; *************** *** 39,45 **** $sql[] = "UPDATE " . $mx_table_prefix . "module" . " ! SET module_version = '" . $mx_module_version . "', ! module_copy = '" . $mx_module_copy . "' ! WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); --- 39,45 ---- $sql[] = "UPDATE " . $mx_table_prefix . "module" . " ! SET module_version = '" . $mx_module_version . "', ! module_copy = '" . $mx_module_copy . "' ! WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); |