|
From: FlorinCB <ory...@us...> - 2008-09-30 07:06:37
|
Update of /cvsroot/mxbb/core/modules/mx_phpbb3blocks/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26368/modules/mx_phpbb3blocks/includes Modified Files: mx_functions_display.php Log Message: rewrite for php4 and php6 issues Index: mx_functions_display.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_phpbb3blocks/includes/mx_functions_display.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mx_functions_display.php 7 Sep 2008 02:32:55 -0000 1.6 --- mx_functions_display.php 30 Sep 2008 07:04:52 -0000 1.7 *************** *** 33,37 **** global $db, $phpbb_auth, $mx_user, $template; global $phpbb_root_path, $phpEx, $board_config; ! global $mx_request_vars; $forum_rows = $subforums = $forum_ids = $forum_ids_moderator = $forum_moderators = $active_forum_ary = array(); --- 33,37 ---- global $db, $phpbb_auth, $mx_user, $template; global $phpbb_root_path, $phpEx, $board_config; ! global $mx_request_vars, $phpBB3; $forum_rows = $subforums = $forum_ids = $forum_ids_moderator = $forum_moderators = $active_forum_ary = array(); *************** *** 428,432 **** 'FORUM_IMAGE' => ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $mx_user->lang[$folder_alt] . '" />' : '', 'FORUM_IMAGE_SRC' => ($row['forum_image']) ? $phpbb_root_path . $row['forum_image'] : '', ! 'LAST_POST_SUBJECT' => phpBB3::censor_text($last_post_subject), 'LAST_POST_TIME' => $last_post_time, 'LAST_POSTER' => mx_get_username_string('username', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']), --- 428,432 ---- 'FORUM_IMAGE' => ($row['forum_image']) ? '<img src="' . $phpbb_root_path . $row['forum_image'] . '" alt="' . $mx_user->lang[$folder_alt] . '" />' : '', 'FORUM_IMAGE_SRC' => ($row['forum_image']) ? $phpbb_root_path . $row['forum_image'] : '', ! 'LAST_POST_SUBJECT' => $phpBB3->censor_text($last_post_subject), 'LAST_POST_TIME' => $last_post_time, 'LAST_POSTER' => mx_get_username_string('username', $row['forum_last_poster_id'], $row['forum_last_poster_name'], $row['forum_last_poster_colour']), *************** *** 888,892 **** { global $phpbb_auth, $template, $db, $mx_user; ! global $phpbb_root_path, $phpEx; // Do not display user activity for users having more than 5000 posts... --- 888,892 ---- { global $phpbb_auth, $template, $db, $mx_user; ! global $phpbb_root_path, $phpEx, $phpBB3; // Do not display user activity for users having more than 5000 posts... *************** *** 983,987 **** 'ACTIVE_FORUM_POSTS' => ($active_f_count == 1) ? sprintf($mx_user->lang['USER_POST'], 1) : sprintf($mx_user->lang['USER_POSTS'], $active_f_count), 'ACTIVE_FORUM_PCT' => sprintf($l_active_pct, $active_f_pct), ! 'ACTIVE_TOPIC' => phpBB3::censor_text($active_t_name), 'ACTIVE_TOPIC_POSTS' => ($active_t_count == 1) ? sprintf($mx_user->lang['USER_POST'], 1) : sprintf($mx_user->lang['USER_POSTS'], $active_t_count), 'ACTIVE_TOPIC_PCT' => sprintf($l_active_pct, $active_t_pct), --- 983,987 ---- 'ACTIVE_FORUM_POSTS' => ($active_f_count == 1) ? sprintf($mx_user->lang['USER_POST'], 1) : sprintf($mx_user->lang['USER_POSTS'], $active_f_count), 'ACTIVE_FORUM_PCT' => sprintf($l_active_pct, $active_f_pct), ! 'ACTIVE_TOPIC' => $phpBB3->censor_text($active_t_name), 'ACTIVE_TOPIC_POSTS' => ($active_t_count == 1) ? sprintf($mx_user->lang['USER_POST'], 1) : sprintf($mx_user->lang['USER_POSTS'], $active_t_count), 'ACTIVE_TOPIC_PCT' => sprintf($l_active_pct, $active_t_pct), |