|
From: Jon O. <jon...@us...> - 2007-09-09 20:35:04
|
Update of /cvsroot/mxbb/mx_profilecp/profilcp/def In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29558 Modified Files: def_userfuncs.php def_userfuncs_album.php def_userfuncs_std.php Log Message: for 2.9.x Index: def_userfuncs.php =================================================================== RCS file: /cvsroot/mxbb/mx_profilecp/profilcp/def/def_userfuncs.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** def_userfuncs.php 5 Apr 2006 23:04:42 -0000 1.4 --- def_userfuncs.php 9 Sep 2007 20:34:01 -0000 1.5 *************** *** 353,361 **** { case 'DATE': ! $txt = !empty($view_userdata[$field_name]) ? create_date($lang['DATE_FORMAT'], $view_userdata[$field_name], $userdata['user_timezone']) : ''; $img .= isset($images[$field_data['image']]) ? '<img src="' . $images[$field_data['image']] . '" border="0" alt="' . $alt . '" title="' . $title . '" />' : ''; break; case 'DATETIME': ! $txt = !empty($view_userdata[$field_name]) ? create_date($userdata['user_dateformat'], $view_userdata[$field_name], $userdata['user_timezone']) : ''; $img .= isset($images[$field_data['image']]) ? '<img src="' . $images[$field_data['image']] . '" border="0" alt="' . $alt . '" title="' . $title . '" />' : ''; break; --- 353,361 ---- { case 'DATE': ! $txt = !empty($view_userdata[$field_name]) ? phpBB2::create_date($lang['DATE_FORMAT'], $view_userdata[$field_name], $userdata['user_timezone']) : ''; $img .= isset($images[$field_data['image']]) ? '<img src="' . $images[$field_data['image']] . '" border="0" alt="' . $alt . '" title="' . $title . '" />' : ''; break; case 'DATETIME': ! $txt = !empty($view_userdata[$field_name]) ? phpBB2::create_date($userdata['user_dateformat'], $view_userdata[$field_name], $userdata['user_timezone']) : ''; $img .= isset($images[$field_data['image']]) ? '<img src="' . $images[$field_data['image']] . '" border="0" alt="' . $alt . '" title="' . $title . '" />' : ''; break; *************** *** 364,368 **** if ( !empty($view_userdata[$field_name]) ) { ! $temp_url = $pm_display ? append_sid("./privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : ''; $txt = create_birthday_date($lang['DATE_FORMAT'], $view_userdata[$field_name], $userdata['user_timezone']); $img = ( ( intval(substr($view_userdata[$field_name], 4, 4)) == date('md', time()) ) ? ( $pm_display ? '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_birthday'] . '" border="0" align="absbottom" alt="' . $lang['Happy_birthday'] . '" title="' . $lang['Happy_birthday'] . '" /></a>' : '<img src="' . $images['profilecp_icon_birthday'] . '" border="0" align="absbottom" alt="' . $lang['Happy_birthday'] . '" title="' . $lang['Happy_birthday'] . '" />' ) : '' ); --- 364,368 ---- if ( !empty($view_userdata[$field_name]) ) { ! $temp_url = $pm_display ? mx_append_sid("./privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : ''; $txt = create_birthday_date($lang['DATE_FORMAT'], $view_userdata[$field_name], $userdata['user_timezone']); $img = ( ( intval(substr($view_userdata[$field_name], 4, 4)) == date('md', time()) ) ? ( $pm_display ? '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_birthday'] . '" border="0" align="absbottom" alt="' . $lang['Happy_birthday'] . '" title="' . $lang['Happy_birthday'] . '" /></a>' : '<img src="' . $images['profilecp_icon_birthday'] . '" border="0" align="absbottom" alt="' . $lang['Happy_birthday'] . '" title="' . $lang['Happy_birthday'] . '" />' ) : '' ); Index: def_userfuncs_album.php =================================================================== RCS file: /cvsroot/mxbb/mx_profilecp/profilcp/def/def_userfuncs_album.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** def_userfuncs_album.php 18 Jun 2006 10:47:13 -0000 1.5 --- def_userfuncs_album.php 9 Sep 2007 20:34:01 -0000 1.6 *************** *** 59,63 **** if (!$userdata['session_logged_in']) { ! redirect(append_sid("login.$phpEx?redirect=album_by.$phpEx&user_id=$user_id")); } } --- 59,63 ---- if (!$userdata['session_logged_in']) { ! mx_redirect(mx_append_sid("login.$phpEx?redirect=album_by.$phpEx&user_id=$user_id")); } } *************** *** 129,133 **** ! $temp_url = append_sid($mx_root_path ."index.$phpEx?page=".$smartor_page_id."&user_id=" . $view_userdata['user_id']); $txt = '<a href="' . $temp_url . '" title="' . $number_gals . $lang['gal_pic_in'] . $lang['gallery'] . '">' . $number_gals . $lang['gal_pic'] . '</a>'; $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_gallery'] . '" alt="' . $number_gals . $lang['gal_pic'] . '" title="' . $number_gals . $lang['gal_pic_in']. $lang['gallery'] . '" border="0" /></a>'; --- 129,133 ---- ! $temp_url = mx_append_sid($mx_root_path ."index.$phpEx?page=".$smartor_page_id."&user_id=" . $view_userdata['user_id']); $txt = '<a href="' . $temp_url . '" title="' . $number_gals . $lang['gal_pic_in'] . $lang['gallery'] . '">' . $number_gals . $lang['gal_pic'] . '</a>'; $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_gallery'] . '" alt="' . $number_gals . $lang['gal_pic'] . '" title="' . $number_gals . $lang['gal_pic_in']. $lang['gallery'] . '" border="0" /></a>'; *************** *** 222,226 **** if (!$userdata['session_logged_in']) { ! redirect(append_sid("login.$phpEx?redirect=album_by.$phpEx&user_id=$user_id")); } } --- 222,226 ---- if (!$userdata['session_logged_in']) { ! mx_redirect(mx_append_sid("login.$phpEx?redirect=album_by.$phpEx&user_id=$user_id")); } } *************** *** 251,255 **** if ( $total_pics > 0 ) { ! $temp_url = append_sid("./album_by.$phpEx?user_id=" . $view_userdata['user_id']); $txt = '<a href="' . $temp_url . '" title="' . $total_pics . $lang['pics_up'] . '">' . $total_pics . '</a>'; //$img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_gallery'] . '" alt="' . $number_gals . $lang['gal_pic'] . '" title="' . $number_gals . $lang['gal_pic_in']. $lang['gallery'] . '" border="0" /></a>'; --- 251,255 ---- if ( $total_pics > 0 ) { ! $temp_url = mx_append_sid("./album_by.$phpEx?user_id=" . $view_userdata['user_id']); $txt = '<a href="' . $temp_url . '" title="' . $total_pics . $lang['pics_up'] . '">' . $total_pics . '</a>'; //$img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_gallery'] . '" alt="' . $number_gals . $lang['gal_pic'] . '" title="' . $number_gals . $lang['gal_pic_in']. $lang['gallery'] . '" border="0" /></a>'; Index: def_userfuncs_std.php =================================================================== RCS file: /cvsroot/mxbb/mx_profilecp/profilcp/def/def_userfuncs_std.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** def_userfuncs_std.php 5 Apr 2006 23:04:42 -0000 1.5 --- def_userfuncs_std.php 9 Sep 2007 20:34:01 -0000 1.6 *************** *** 91,96 **** if ( $view_userdata['user_my_friend'] ) { ! // $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=remove" . $from); ! $temp_url = append_sid(this_profile_mxurl("mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=remove" . $from)); $title = $lang['Remove_from_friend_list']; $icon = $images['profilecp_icon_friend_remove']; --- 91,96 ---- if ( $view_userdata['user_my_friend'] ) { ! // $temp_url = mx_append_sid("./profile.$phpEx?mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=remove" . $from); ! $temp_url = mx_append_sid(this_profile_mxurl("mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=remove" . $from)); $title = $lang['Remove_from_friend_list']; $icon = $images['profilecp_icon_friend_remove']; *************** *** 100,105 **** else if ( !$view_userdata['user_my_ignore'] ) { ! // $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=add" . $from); ! $temp_url = append_sid(this_profile_mxurl("mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=add" . $from)); $title = $lang['Add_to_friend_list']; $icon = $images['profilecp_icon_friend_add']; --- 100,105 ---- else if ( !$view_userdata['user_my_ignore'] ) { ! // $temp_url = mx_append_sid("./profile.$phpEx?mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=add" . $from); ! $temp_url = mx_append_sid(this_profile_mxurl("mode=buddy&sub=friend&b=" . $view_userdata['user_id'] . "&set=add" . $from)); $title = $lang['Add_to_friend_list']; $icon = $images['profilecp_icon_friend_add']; *************** *** 134,139 **** if ( $view_userdata['user_my_friend'] ) { ! // $temp_url = append_sid( "./profile.$phpEx?mode=" . $mode . "&sub=$sub&b=" . $view_userdata['user_id'] . "&set=" . ( $view_userdata['user_my_visible'] ? 'inv' : 'vis') ); ! $temp_url = append_sid( this_profile_mxurl("mode=" . $mode . "&sub=$sub&b=" . $view_userdata['user_id']) . "&set=" . ( $view_userdata['user_my_visible'] ? 'inv' : 'vis') ); $title = $view_userdata['user_my_visible'] ? $lang['Always_visible'] : $lang['Not_always_visible']; $icon = $view_userdata['user_my_visible'] ? $images['profilecp_icon_visible'] : $images['profilecp_icon_not_visible']; --- 134,139 ---- if ( $view_userdata['user_my_friend'] ) { ! // $temp_url = mx_append_sid( "./profile.$phpEx?mode=" . $mode . "&sub=$sub&b=" . $view_userdata['user_id'] . "&set=" . ( $view_userdata['user_my_visible'] ? 'inv' : 'vis') ); ! $temp_url = mx_append_sid( this_profile_mxurl("mode=" . $mode . "&sub=$sub&b=" . $view_userdata['user_id']) . "&set=" . ( $view_userdata['user_my_visible'] ? 'inv' : 'vis') ); $title = $view_userdata['user_my_visible'] ? $lang['Always_visible'] : $lang['Not_always_visible']; $icon = $view_userdata['user_my_visible'] ? $images['profilecp_icon_visible'] : $images['profilecp_icon_not_visible']; *************** *** 184,189 **** if ( $view_userdata['user_my_ignore'] ) { ! // $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=remove" . $from); ! $temp_url = append_sid(this_profile_mxurl("mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=remove" . $from)); $title = $lang['Remove_from_ignore_list']; $icon = $images['profilecp_icon_ignore_remove']; --- 184,189 ---- if ( $view_userdata['user_my_ignore'] ) { ! // $temp_url = mx_append_sid("./profile.$phpEx?mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=remove" . $from); ! $temp_url = mx_append_sid(this_profile_mxurl("mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=remove" . $from)); $title = $lang['Remove_from_ignore_list']; $icon = $images['profilecp_icon_ignore_remove']; *************** *** 193,198 **** else if (!is_admin($userdata) && !is_admin($view_userdata) && (get_user_level($userdata) != MOD) && (get_user_level($view_userdata) != MOD) && !$view_userdata['user_my_friend']) { ! // $temp_url = append_sid("./profile.$phpEx?mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=add" . $from); ! $temp_url = append_sid(this_profile_mxurl("mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=add" . $from)); $title = $lang['Add_to_ignore_list']; $icon = $images['profilecp_icon_ignore_add']; --- 193,198 ---- else if (!is_admin($userdata) && !is_admin($view_userdata) && (get_user_level($userdata) != MOD) && (get_user_level($view_userdata) != MOD) && !$view_userdata['user_my_friend']) { ! // $temp_url = mx_append_sid("./profile.$phpEx?mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=add" . $from); ! $temp_url = mx_append_sid(this_profile_mxurl("mode=buddy&sub=ignore&b=" . $view_userdata['user_id'] . "&set=add" . $from)); $title = $lang['Add_to_ignore_list']; $icon = $images['profilecp_icon_ignore_add']; *************** *** 227,232 **** if ( $view_userdata['user_id'] != ANONYMOUS ) { ! // $temp_url = append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']); ! $temp_url = append_sid(this_profile_mxurl("mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id'])); $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_profile'] . '" border="0" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" /></a>'; } --- 227,232 ---- if ( $view_userdata['user_id'] != ANONYMOUS ) { ! // $temp_url = mx_append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']); ! $temp_url = mx_append_sid(this_profile_mxurl("mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id'])); $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_profile'] . '" border="0" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" /></a>'; } *************** *** 254,259 **** if ( $view_userdata['user_id'] != ANONYMOUS ) { ! // $temp_url = append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']); ! $temp_url = append_sid(this_profile_mxurl("mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id'])); $txt = '<a href="' . $temp_url . '" title="' . $lang['Read_profile'] . '" class="' . get_user_level_class($view_userdata['user_level'], 'gen', $view_userdata) . '">' . $username . '</a>'; $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_profile'] . '" border="0" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" /></a>'; --- 254,259 ---- if ( $view_userdata['user_id'] != ANONYMOUS ) { ! // $temp_url = mx_append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']); ! $temp_url = mx_append_sid(this_profile_mxurl("mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id'])); $txt = '<a href="' . $temp_url . '" title="' . $lang['Read_profile'] . '" class="' . get_user_level_class($view_userdata['user_level'], 'gen', $view_userdata) . '">' . $username . '</a>'; $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_profile'] . '" border="0" alt="' . $lang['Read_profile'] . '" title="' . $lang['Read_profile'] . '" /></a>'; *************** *** 284,289 **** if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) && ($userdata['user_id'] != ANONYMOUS) ) { ! $temp_url = append_sid($phpbb_root_path . "privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']); ! // $temp_url = append_sid("./privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']); $txt = '<a href="' . $temp_url . '" title="' . $lang['Send_private_message'] . '">' . $lang['Send_private_message'] . '</a>'; $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>'; --- 284,289 ---- if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) && ($userdata['user_id'] != ANONYMOUS) ) { ! $temp_url = mx_append_sid($phpbb_root_path . "privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']); ! // $temp_url = mx_append_sid("./privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']); $txt = '<a href="' . $temp_url . '" title="' . $lang['Send_private_message'] . '">' . $lang['Send_private_message'] . '</a>'; $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>'; *************** *** 317,322 **** if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) ) { ! // $temp_url = ( $board_config['board_email_form'] ) ? append_sid("./profile.$phpEx?mode=email&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : 'mailto:' . $view_userdata[$field_name]; ! $temp_url = ( $board_config['board_email_form'] ) ? append_sid(this_profile_mxurl("mode=email&" . POST_USERS_URL . '=' . $view_userdata['user_id'])) : 'mailto:' . $view_userdata[$field_name]; $txt_title = ( is_admin($userdata) || $user_maps[$map_name]['fields'][$field_name]['img'] || $board_config['board_email_form'] ) ? $lang['Send_email'] : $view_userdata[$field_name]; --- 317,322 ---- if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) ) { ! // $temp_url = ( $board_config['board_email_form'] ) ? mx_append_sid("./profile.$phpEx?mode=email&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : 'mailto:' . $view_userdata[$field_name]; ! $temp_url = ( $board_config['board_email_form'] ) ? mx_append_sid(this_profile_mxurl("mode=email&" . POST_USERS_URL . '=' . $view_userdata['user_id'])) : 'mailto:' . $view_userdata[$field_name]; $txt_title = ( is_admin($userdata) || $user_maps[$map_name]['fields'][$field_name]['img'] || $board_config['board_email_form'] ) ? $lang['Send_email'] : $view_userdata[$field_name]; *************** *** 351,355 **** $icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $view_userdata[$field_name] . '"><img src="' . $images['profilecp_icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $view_userdata[$field_name] . '" border="0" /></a>'; $txt = '<a href="' . $temp_url . '" title="' . $view_userdata[$field_name] . '" title="' . $view_userdata[$field_name] . '">' . $lang['ICQ'] . '</a>'; ! $img = '<table cellspacing="0" cellpadding="0" border="0"><tr><td><script language="JavaScript" type="text/javascript"><!-- if ( navigator.userAgent.toLowerCase().indexOf(\'mozilla\') != -1 && navigator.userAgent.indexOf(\'5.\') == -1 && navigator.userAgent.indexOf(\'6.\') == -1 ) document.write(\'' . $icq_img . '\'); --- 351,355 ---- $icq_img = '<a href="http://wwp.icq.com/scripts/search.dll?to=' . $view_userdata[$field_name] . '"><img src="' . $images['profilecp_icon_icq'] . '" alt="' . $lang['ICQ'] . '" title="' . $view_userdata[$field_name] . '" border="0" /></a>'; $txt = '<a href="' . $temp_url . '" title="' . $view_userdata[$field_name] . '" title="' . $view_userdata[$field_name] . '">' . $lang['ICQ'] . '</a>'; ! $img = '<table cellspacing="0" cellpadding="0" border="0"><tr><td><script language="JavaScript" type="text/javascript"><!-- if ( navigator.userAgent.toLowerCase().indexOf(\'mozilla\') != -1 && navigator.userAgent.indexOf(\'5.\') == -1 && navigator.userAgent.indexOf(\'6.\') == -1 ) document.write(\'' . $icq_img . '\'); *************** *** 426,431 **** if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) ) { ! // $temp_url = (substr($map_name, 0, 6) == 'PHPBB.') ? append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : 'mailto:' . $view_userdata[$field_name]; ! $temp_url = (substr($map_name, 0, 6) == 'PHPBB.') ? append_sid(this_profile_mxurl("mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id'])) : 'mailto:' . $view_userdata[$field_name]; $txt = '<a href="' . $temp_url . '" title="' . $view_userdata[$field_name] . '">' . $lang['MSNM'] . '</a>'; $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $view_userdata[$field_name] . '" border="0" /></a>'; --- 426,431 ---- if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) ) { ! // $temp_url = (substr($map_name, 0, 6) == 'PHPBB.') ? mx_append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : 'mailto:' . $view_userdata[$field_name]; ! $temp_url = (substr($map_name, 0, 6) == 'PHPBB.') ? mx_append_sid(this_profile_mxurl("mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id'])) : 'mailto:' . $view_userdata[$field_name]; $txt = '<a href="' . $temp_url . '" title="' . $view_userdata[$field_name] . '">' . $lang['MSNM'] . '</a>'; $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_msnm'] . '" alt="' . $lang['MSNM'] . '" title="' . $view_userdata[$field_name] . '" border="0" /></a>'; *************** *** 457,461 **** if ( $view_userdata[$field_name] == $offset ) { ! $txt = $value . ' (' . create_date($userdata['user_dateformat'], time(), $view_userdata['user_timezone']) . ')'; $img = '<img src="' . $images['tz_' . $offset] . '" border="0" alt="' . $value . '" title="' . $txt .'" />'; break; --- 457,461 ---- if ( $view_userdata[$field_name] == $offset ) { ! $txt = $value . ' (' . phpBB2::create_date($userdata['user_dateformat'], time(), $view_userdata['user_timezone']) . ')'; $img = '<img src="' . $images['tz_' . $offset] . '" border="0" alt="' . $value . '" title="' . $txt .'" />'; break; *************** *** 558,563 **** if ( !empty($view_userdata['user_birthday']) && ($view_userdata['user_id'] != ANONYMOUS) ) { ! // $temp_url = $pm_display ? append_sid("./privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : ''; ! $temp_url = $pm_display ? append_sid($phpbb_root_path . "privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : ''; $img = ( intval(substr($view_userdata['user_birthday'], 4, 4)) == date('md', time()) ) ? ( $pm_display ? '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_birthday'] . '" border="0" alt="' . $lang['Happy_birthday'] . '" title="' . $lang['Happy_birthday'] . '" /></a>' : '<img src="' . $images['profilecp_icon_birthday'] . '" border="0" alt="' . $lang['Happy_birthday'] . '" title="' . $lang['Happy_birthday'] . '" />') : ''; $txt = date('Y', time()) - intval(substr($view_userdata['user_birthday'], 0, 4)); --- 558,563 ---- if ( !empty($view_userdata['user_birthday']) && ($view_userdata['user_id'] != ANONYMOUS) ) { ! // $temp_url = $pm_display ? mx_append_sid("./privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : ''; ! $temp_url = $pm_display ? mx_append_sid($phpbb_root_path . "privmsg.$phpEx?mode=post&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : ''; $img = ( intval(substr($view_userdata['user_birthday'], 4, 4)) == date('md', time()) ) ? ( $pm_display ? '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_birthday'] . '" border="0" alt="' . $lang['Happy_birthday'] . '" title="' . $lang['Happy_birthday'] . '" /></a>' : '<img src="' . $images['profilecp_icon_birthday'] . '" border="0" alt="' . $lang['Happy_birthday'] . '" title="' . $lang['Happy_birthday'] . '" />') : ''; $txt = date('Y', time()) - intval(substr($view_userdata['user_birthday'], 0, 4)); *************** *** 650,654 **** { $user_sig = $view_userdata[$field_name]; ! $user_sig_bbcode_uid = $view_userdata[$field_name . '_bbcode_uid']; if ( !$board_config['allow_html'] && $userdata['user_allowhtml']) { --- 650,654 ---- { $user_sig = $view_userdata[$field_name]; ! $user_sig_bbcode_uid = $view_userdata[$field_name . '_bbcode_uid']; if ( !$board_config['allow_html'] && $userdata['user_allowhtml']) { *************** *** 691,695 **** if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) ) { ! $txt = create_date($lang['DATE_FORMAT'], $view_userdata[$field_name], $userdata['user_timezone']); if ( substr($map_name, 0, 4) == 'PCP.' ) { --- 691,695 ---- if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) ) { ! $txt = phpBB2::create_date($lang['DATE_FORMAT'], $view_userdata[$field_name], $userdata['user_timezone']); if ( substr($map_name, 0, 4) == 'PCP.' ) { *************** *** 718,723 **** if ( !empty($view_userdata['user_posts']) && ($view_userdata['user_id'] != ANONYMOUS) ) { ! // $temp_url = append_sid("./search.$phpEx?search_author=" . urlencode($view_userdata['username']) . "&showresults=posts"); ! $temp_url = append_sid($phpbb_root_path . "search.$phpEx?search_author=" . urlencode($view_userdata['username']) . "&showresults=posts"); $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_search'] . '" alt="' . sprintf($lang['Search_user_posts'], $view_userdata['username']) . '" title="' . sprintf($lang['Search_user_posts'], $view_userdata['username']) . '" border="0" /></a>'; if ( !$user_maps[$map_name]['fields'][$field_name]['img'] ) --- 718,723 ---- if ( !empty($view_userdata['user_posts']) && ($view_userdata['user_id'] != ANONYMOUS) ) { ! // $temp_url = mx_append_sid("./search.$phpEx?search_author=" . urlencode($view_userdata['username']) . "&showresults=posts"); ! $temp_url = mx_append_sid($phpbb_root_path . "search.$phpEx?search_author=" . urlencode($view_userdata['username']) . "&showresults=posts"); $img = '<a href="' . $temp_url . '"><img src="' . $images['profilecp_icon_search'] . '" alt="' . sprintf($lang['Search_user_posts'], $view_userdata['username']) . '" title="' . sprintf($lang['Search_user_posts'], $view_userdata['username']) . '" border="0" /></a>'; if ( !$user_maps[$map_name]['fields'][$field_name]['img'] ) *************** *** 727,731 **** $posts_per_day = $view_userdata['user_posts'] / max(1, round( (time() - $view_userdata['user_regdate']) / 86400 )); ! $total_posts = get_db_stat('postcount'); $percentage = ( $total_posts ) ? ( ($view_userdata['user_posts'] * 100) / $total_posts ) : 0; $txt .= ( empty($txt) ? '' : '<br />' ) . sprintf('[' . $lang['User_post_stats'] . ']', $view_userdata['user_posts'], $percentage, $posts_per_day); --- 727,731 ---- $posts_per_day = $view_userdata['user_posts'] / max(1, round( (time() - $view_userdata['user_regdate']) / 86400 )); ! $total_posts = phpBB2::get_db_stat('postcount'); $percentage = ( $total_posts ) ? ( ($view_userdata['user_posts'] * 100) / $total_posts ) : 0; $txt .= ( empty($txt) ? '' : '<br />' ) . sprintf('[' . $lang['User_post_stats'] . ']', $view_userdata['user_posts'], $percentage, $posts_per_day); *************** *** 789,793 **** $orig_word = array(); $replacement_word = array(); ! obtain_word_list($orig_word, $replacement_word); // get the info --- 789,793 ---- $orig_word = array(); $replacement_word = array(); ! phpBB2::obtain_word_list($orig_word, $replacement_word); // get the info *************** *** 803,808 **** { // topic ! // $temp_url = append_sid("./viewtopic.$phpEx?" . POST_TOPIC_URL . "=$most_active_topic_id"); ! $temp_url = append_sid($phpbb_root_path . "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$most_active_topic_id"); $txt = '<a href="' . $temp_url . '" class="topictitle">' . $most_active_topic_title . '</a>'; $txt .= '<br /><span class="genmed">' . sprintf( '[' . $lang['Most_active_topic_stat'] . ']', $most_active_topic_posts, ( ($most_active_topic_posts*100) / $most_active_topic_posts_total ), ( ($most_active_topic_posts*100) / $most_active_topic_posts_total_forum ) ) . '</span>'; --- 803,808 ---- { // topic ! // $temp_url = mx_append_sid("./viewtopic.$phpEx?" . POST_TOPIC_URL . "=$most_active_topic_id"); ! $temp_url = mx_append_sid($phpbb_root_path . "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$most_active_topic_id"); $txt = '<a href="' . $temp_url . '" class="topictitle">' . $most_active_topic_title . '</a>'; $txt .= '<br /><span class="genmed">' . sprintf( '[' . $lang['Most_active_topic_stat'] . ']', $most_active_topic_posts, ( ($most_active_topic_posts*100) / $most_active_topic_posts_total ), ( ($most_active_topic_posts*100) / $most_active_topic_posts_total_forum ) ) . '</span>'; *************** *** 836,840 **** $most_active_forum_posts = 0; $most_active_forum_posts_total = 0; ! $total_posts = get_db_stat('postcount'); $is_auth = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata); --- 836,840 ---- $most_active_forum_posts = 0; $most_active_forum_posts_total = 0; ! $total_posts = phpBB2::get_db_stat('postcount'); $is_auth = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata); *************** *** 874,879 **** { // forum ! // $temp_url = append_sid("./viewforum.$phpEx?" . POST_FORUM_URL . "=$most_active_forum_id"); ! $temp_url = append_sid($phpbb_root_path . "viewforum.$phpEx?" . POST_FORUM_URL . "=$most_active_forum_id"); $txt = '<a href="' . $temp_url . '" class="topictitle">' . $most_active_forum_name . '</a>'; $txt .= '<br /><span class="genmed">' . sprintf( '[' . $lang['Most_active_forum_stat'] . ']', $most_active_forum_posts, ( ($most_active_forum_posts*100) / $most_active_forum_posts_total ), ( ($most_active_forum_posts*100) / $total_posts ) ) . '</span>'; --- 874,879 ---- { // forum ! // $temp_url = mx_append_sid("./viewforum.$phpEx?" . POST_FORUM_URL . "=$most_active_forum_id"); ! $temp_url = mx_append_sid($phpbb_root_path . "viewforum.$phpEx?" . POST_FORUM_URL . "=$most_active_forum_id"); $txt = '<a href="' . $temp_url . '" class="topictitle">' . $most_active_forum_name . '</a>'; $txt .= '<br /><span class="genmed">' . sprintf( '[' . $lang['Most_active_forum_stat'] . ']', $most_active_forum_posts, ( ($most_active_forum_posts*100) / $most_active_forum_posts_total ), ( ($most_active_forum_posts*100) / $total_posts ) ) . '</span>'; *************** *** 903,907 **** $sav_tpl = ''; $is_ok = ''; ! if ( $view_userdata['user_id'] != ANONYMOUS ) { --- 903,907 ---- $sav_tpl = ''; $is_ok = ''; ! if ( $view_userdata['user_id'] != ANONYMOUS ) { *************** *** 917,938 **** // groupes ! $sql = "SELECT ! g.group_id, ! g.group_name, ! g.group_description, ! g.group_type ! FROM ! " . USER_GROUP_TABLE . " l, ! " . GROUPS_TABLE . " g ! WHERE l.user_pending = 0 ! AND g.group_single_user = 0 AND l.user_id = " . $view_userdata['user_id'] . " ! AND g.group_id = l.group_id ! ORDER BY ! g.group_name, g.group_id"; ! if ( !$result = $db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not read groups', '', __LINE__, __FILE__, $sql); } $groups = array(); --- 917,938 ---- // groupes ! $sql = "SELECT ! g.group_id, ! g.group_name, ! g.group_description, ! g.group_type ! FROM ! " . USER_GROUP_TABLE . " l, ! " . GROUPS_TABLE . " g ! WHERE l.user_pending = 0 ! AND g.group_single_user = 0 AND l.user_id = " . $view_userdata['user_id'] . " ! AND g.group_id = l.group_id ! ORDER BY ! g.group_name, g.group_id"; ! if ( !$result = $db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, 'Could not read groups', '', __LINE__, __FILE__, $sql); } $groups = array(); *************** *** 949,953 **** ); $nb = 0; ! if (count($groups) > 0) { --- 949,953 ---- ); $nb = 0; ! if (count($groups) > 0) { *************** *** 966,971 **** { $group_id = $groups[$ii]['group_id']; ! $sql = "SELECT * FROM " . USER_GROUP_TABLE . " ! WHERE group_id = $group_id AND user_id = " . $userdata['user_id'] . " AND user_pending=0"; --- 966,971 ---- { $group_id = $groups[$ii]['group_id']; ! $sql = "SELECT * FROM " . USER_GROUP_TABLE . " ! WHERE group_id = $group_id AND user_id = " . $userdata['user_id'] . " AND user_pending=0"; *************** *** 982,987 **** $nb++; $class = !$class; ! // $u_group_name = append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . '=' . $groups[$i]['group_id']); ! $u_group_name = append_sid($phpbb_root_path . "groupcp.$phpEx?" . POST_GROUPS_URL . '=' . $groups[$ii]['group_id']); $l_group_name = $groups[$ii]['group_name']; $l_group_desc = $groups[$ii]['group_description']; --- 982,987 ---- $nb++; $class = !$class; ! // $u_group_name = mx_append_sid("groupcp.$phpEx?" . POST_GROUPS_URL . '=' . $groups[$i]['group_id']); ! $u_group_name = mx_append_sid($phpbb_root_path . "groupcp.$phpEx?" . POST_GROUPS_URL . '=' . $groups[$ii]['group_id']); $l_group_name = $groups[$ii]['group_name']; $l_group_desc = $groups[$ii]['group_description']; *************** *** 1006,1010 **** // $template->assign_var_from_handle('_box', '_box_groups'); // $txt = $template->_tpldata['.'][0]['_box']; ! $txt = '<a href="' . $u_group_name . '" title="' . $l_group_name . '">' . $l_group_name . '</a>'; --- 1006,1010 ---- // $template->assign_var_from_handle('_box', '_box_groups'); // $txt = $template->_tpldata['.'][0]['_box']; ! $txt = '<a href="' . $u_group_name . '" title="' . $l_group_name . '">' . $l_group_name . '</a>'; |