diff --git a/phpBB/profile.php b/phpBB/profile.php index 72c992a0b6..7c7a7f58b3 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -201,7 +201,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) { message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']); } - $profiledata = get_userdata_from_id($HTTP_GET_VARS[POST_USERS_URL]); + $profiledata = get_userdata_from_id(intval($HTTP_GET_VARS[POST_USERS_URL])); $sql = "SELECT * FROM " . RANKS_TABLE . " @@ -347,7 +347,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) $msnm_img = ($profiledata['user_msnm']) ? "\""" : " "; - $yim_img = ($members[$i]['user_yim']) ? "\""" : " "; + $yim_img = ( $profiledata['user_yim'] ) ? "\""" : " "; $search_img = "\"""; $search = "" . $lang['Search_user_posts'] . ""; @@ -391,7 +391,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) "L_CONTACT" => $lang['Contact'], "L_EMAIL_ADDRESS" => $lang['Email_address'], "L_EMAIL" => $lang['Email'], - "L_PM" => $lang['Private_message'], + "L_SEND_PM" => $lang['Send_private_message'], "L_ICQ_NUMBER" => $lang['ICQ'], "L_YAHOO" => $lang['YIM'], "L_AIM" => $lang['AIM'], @@ -465,7 +465,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) { if( $mode == "editprofile" ) { - $user_id = $HTTP_POST_VARS['user_id']; + $user_id = intval($HTTP_POST_VARS['user_id']); $current_email = trim(strip_tags(htmlspecialchars($HTTP_POST_VARS['current_email']))); } $username = (!empty($HTTP_POST_VARS['username'])) ? trim(strip_tags($HTTP_POST_VARS['username'])) : ""; @@ -1327,8 +1327,10 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) } } - $s_hidden_fields = ''; - $s_hidden_vars = ''; + $coppa = ( ( !$HTTP_POST_VARS['coppa'] && !$HTTP_GET_VARS['coppa'] ) || $mode == "register") ? 0 : TRUE; + + $s_hidden_vars = ''; + $s_hidden_vars .= ''; $s_hidden_vars .= ''; $s_hidden_vars .= ''; $s_hidden_vars .= ''; diff --git a/phpBB/templates/subSilver/profile_view_body.tpl b/phpBB/templates/subSilver/profile_view_body.tpl index 62d952d412..20601b2d2e 100644 --- a/phpBB/templates/subSilver/profile_view_body.tpl +++ b/phpBB/templates/subSilver/profile_view_body.tpl @@ -63,19 +63,19 @@ {PM_IMG} - {L_MESSENGER}: + {L_MESSENGER}: {MSN_IMG} - {L_YAHOO}: + {L_YAHOO}: {YIM_IMG} - {L_AIM}: + {L_AIM}: {AIM_IMG} - {L_ICQ_NUMBER}: + {L_ICQ_NUMBER}: {ICQ_STATUS_IMG}{ICQ_ADD_IMG}