|
From: FlorinCB <ory...@us...> - 2008-09-17 17:56:57
|
Update of /cvsroot/mxbb/mx_music/music_box/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv24128 Modified Files: music_constants.php music_functions.php Log Message: found big bug when phpbb2 Index: music_functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/includes/music_functions.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** music_functions.php 12 Sep 2008 05:17:57 -0000 1.6 --- music_functions.php 18 Sep 2008 00:56:53 -0000 1.7 *************** *** 172,176 **** function music_get_profile_url($mode, $user_id, $username = false, $user_color = false) { ! global $lang, $userdata; switch (PORTAL_BACKEND) --- 172,176 ---- function music_get_profile_url($mode, $user_id, $username = false, $user_color = false) { ! global $lang, $userdata, $phpEx, $theme; switch (PORTAL_BACKEND) *************** *** 194,203 **** { $user_colour = $theme['fontcolor1']; ! $topic_poster_style = 'style="font-weight : bold;"'; } $profile_url = ''; ! $full_url = (($user_id == ANONYMOUS) || ($user_id == MUSIC_GUEST)) ? '<span ' . $topic_poster_style . '>' . $lang['Guest'] . '</span>' : '<span ' . $topic_poster_style . '>' . $username . '</span>'; break; --- 194,203 ---- { $user_colour = $theme['fontcolor1']; ! $user_style = 'style="font-weight : bold;"'; } $profile_url = ''; ! $full_url = (($user_id == ANONYMOUS) || ($user_id == MUSIC_GUEST)) ? '<span ' . $user_style . '>' . $lang['Guest'] . '</span>' : '<span ' . $topic_poster_style . '>' . $username . '</span>'; break; *************** *** 209,213 **** $username = ($username) ? $username : $music_userdata['username']; ! if ($music_userdata['user_level'] == ADMIN) { $user_color = $theme['fontcolor3']; --- 209,213 ---- $username = ($username) ? $username : $music_userdata['username']; ! if ($music_userdata['user_level'] == ADMIN) { $user_color = $theme['fontcolor3']; *************** *** 222,226 **** { $user_colour = $theme['fontcolor1']; ! $topic_poster_style = 'style="font-weight : bold;"'; } --- 222,226 ---- { $user_colour = $theme['fontcolor1']; ! $user_style = 'style="font-weight : bold;"'; } *************** *** 228,233 **** if ($user_id && $user_id != ANONYMOUS) { ! $profile_url = mx3_append_sid(PHPBB_URL . "profile.$phpEx", 'mode=viewprofile&u=' . (int) $user_id); ! $full_url = '<a href="' . $profile_url . '"><span ' . $topic_poster_style . '>' . $username . '</span></a>'; } else --- 228,233 ---- if ($user_id && $user_id != ANONYMOUS) { ! $profile_url = mx_append_sid(PHPBB_URL . "profile.$phpEx?mode=viewprofile&u=" . (int) $user_id); ! $full_url = '<a href="' . $profile_url . '"><span ' . $user_style. '>' . $username . '</span></a>'; } else Index: music_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music_box/includes/music_constants.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** music_constants.php 9 Sep 2008 03:28:44 -0000 1.8 --- music_constants.php 18 Sep 2008 00:56:53 -0000 1.9 *************** *** 16,21 **** if ( !MXBB_MODULE ) { ! define('PORTAL_URL', $portal_config['portal_url']); ! define('PHPBB_URL', PORTAL_URL); $mx_table_prefix = $table_prefix; --- 16,23 ---- if ( !MXBB_MODULE ) { ! $this_phpbb_url = str_replace("//", "/", $portal_config['portal_url'] . '/'); ! ! define('PORTAL_URL', $this_phpbb_url); ! define('PHPBB_URL', $this_phpbb_url); $mx_table_prefix = $table_prefix; |