Zeile 20 | Zeile 20 |
---|
$templatelist .= ",usercp_editsig_suspended,usercp_editsig,usercp_avatar_current,usercp_options_timezone_option,usercp_drafts,usercp_options_language,usercp_options_date_format,usercp_profile_website,usercp_latest_subscribed,usercp_warnings"; $templatelist .= ",usercp_avatar,usercp_editlists_userusercp_editlists,usercp_drafts_draft,usercp_usergroups_joingroup,usercp_attachments_none,usercp_avatar_upload,usercp_options_timezone,usercp_usergroups_joinable_usergroup_join"; $templatelist .= ",usercp_warnings_warning,usercp_nav_messenger_tracking,multipage,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start";
|
$templatelist .= ",usercp_editsig_suspended,usercp_editsig,usercp_avatar_current,usercp_options_timezone_option,usercp_drafts,usercp_options_language,usercp_options_date_format,usercp_profile_website,usercp_latest_subscribed,usercp_warnings"; $templatelist .= ",usercp_avatar,usercp_editlists_userusercp_editlists,usercp_drafts_draft,usercp_usergroups_joingroup,usercp_attachments_none,usercp_avatar_upload,usercp_options_timezone,usercp_usergroups_joinable_usergroup_join"; $templatelist .= ",usercp_warnings_warning,usercp_nav_messenger_tracking,multipage,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start";
|
$templatelist .= ",codebuttons,usercp_nav_messenger_compose,usercp_options_language_option,usercp_editlists,usercp_profile_contact_fields_field,usercp_latest_subscribed_threads,usercp_profile_contact_fields,usercp_profile_day";
| $templatelist .= ",codebuttons,usercp_nav_messenger_compose,usercp_options_language_option,usercp_editlists,usercp_profile_contact_fields_field,usercp_latest_subscribed_threads,usercp_profile_contact_fields,usercp_profile_day,usercp_nav_home";
|
$templatelist .= ",usercp_profile_profilefields_select_option,usercp_profile_profilefields_multiselect,usercp_profile_profilefields_select,usercp_profile_profilefields_textarea,usercp_profile_profilefields_radio,usercp_profile_profilefields_checkbox"; $templatelist .= ",usercp_options_tppselect_option,usercp_options_pppselect_option,forumbit_depth2_forum_lastpost_never,forumbit_depth2_forum_lastpost_hidden,usercp_avatar_auto_resize_auto,usercp_avatar_auto_resize_user,usercp_options";
|
$templatelist .= ",usercp_profile_profilefields_select_option,usercp_profile_profilefields_multiselect,usercp_profile_profilefields_select,usercp_profile_profilefields_textarea,usercp_profile_profilefields_radio,usercp_profile_profilefields_checkbox"; $templatelist .= ",usercp_options_tppselect_option,usercp_options_pppselect_option,forumbit_depth2_forum_lastpost_never,forumbit_depth2_forum_lastpost_hidden,usercp_avatar_auto_resize_auto,usercp_avatar_auto_resize_user,usercp_options";
|
$templatelist .= ",usercp_editlists_no_buddies,usercp_editlists_no_ignored,usercp_editlists_no_requests,usercp_editlists_received_requests,usercp_editlists_sent_requests,usercp_drafts_draft_thread,usercp_drafts_draft_forum"; $templatelist .= ",usercp_usergroups_leader_usergroup_memberlist,usercp_usergroups_leader_usergroup_moderaterequests,usercp_usergroups_memberof_usergroup_leaveprimary,usercp_usergroups_memberof_usergroup_display,usercp_email";
| $templatelist .= ",usercp_editlists_no_buddies,usercp_editlists_no_ignored,usercp_editlists_no_requests,usercp_editlists_received_requests,usercp_editlists_sent_requests,usercp_drafts_draft_thread,usercp_drafts_draft_forum,usercp_editlists_user"; $templatelist .= ",usercp_usergroups_leader_usergroup_memberlist,usercp_usergroups_leader_usergroup_moderaterequests,usercp_usergroups_memberof_usergroup_leaveprimary,usercp_usergroups_memberof_usergroup_display,usercp_email,usercp_options_pms";
|
$templatelist .= ",usercp_usergroups_memberof_usergroup_leaveleader,usercp_usergroups_memberof_usergroup_leaveother,usercp_usergroups_memberof_usergroup_leave,usercp_usergroups_joinable_usergroup_description,usercp_options_time_format";
|
$templatelist .= ",usercp_usergroups_memberof_usergroup_leaveleader,usercp_usergroups_memberof_usergroup_leaveother,usercp_usergroups_memberof_usergroup_leave,usercp_usergroups_joinable_usergroup_description,usercp_options_time_format";
|
$templatelist .= ",usercp_editlists_sent_request,usercp_editlists_received_request,usercp_drafts_none,usercp_usergroups_memberof_usergroup_setdisplay,usercp_usergroups_memberof_usergroup_description,usercp_editlists_user";
| $templatelist .= ",usercp_editlists_sent_request,usercp_editlists_received_request,usercp_drafts_none,usercp_usergroups_memberof_usergroup_setdisplay,usercp_usergroups_memberof_usergroup_description,usercp_options_quick_reply";
|
require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
| require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
|
Zeile 70 | Zeile 70 |
---|
if(!$userhandler->verify_signature()) { $error = inline_error($userhandler->get_friendly_errors());
|
if(!$userhandler->verify_signature()) { $error = inline_error($userhandler->get_friendly_errors());
|
| }
if(isset($error) || !empty($mybb->input['preview'])) {
|
$mybb->input['action'] = "editsig"; } }
| $mybb->input['action'] = "editsig"; } }
|
Zeile 594 | Zeile 598 |
---|
if($errors) { $useropts = $userfield;
|
if($errors) { $useropts = $userfield;
|
} else { $useropts = explode("\n", $userfield); }
| } else { $useropts = explode("\n", $userfield); }
|
if(is_array($useropts)) { foreach($useropts as $key => $val)
| if(is_array($useropts)) { foreach($useropts as $key => $val)
|
Zeile 622 | Zeile 626 |
---|
} } elseif($type == "textarea")
|
} } elseif($type == "textarea")
|
{ $value = htmlspecialchars_uni($userfield);
| { $value = htmlspecialchars_uni($userfield);
|
eval("\$code = \"".$templates->get("usercp_profile_profilefields_textarea")."\";"); } else
| eval("\$code = \"".$templates->get("usercp_profile_profilefields_textarea")."\";"); } else
|
Zeile 631 | Zeile 635 |
---|
$value = htmlspecialchars_uni($userfield); $maxlength = ""; if($profilefield['maxlength'] > 0)
|
$value = htmlspecialchars_uni($userfield); $maxlength = ""; if($profilefield['maxlength'] > 0)
|
{
| {
|
$maxlength = " maxlength=\"{$profilefield['maxlength']}\""; }
eval("\$code = \"".$templates->get("usercp_profile_profilefields_text")."\";");
|
$maxlength = " maxlength=\"{$profilefield['maxlength']}\""; }
eval("\$code = \"".$templates->get("usercp_profile_profilefields_text")."\";");
|
}
| }
|
if($profilefield['required'] == 1) {
| if($profilefield['required'] == 1) {
|
Zeile 664 | Zeile 668 |
---|
if($mybb->usergroup['cancustomtitle'] == 1) { if($mybb->usergroup['usertitle'] == "")
|
if($mybb->usergroup['cancustomtitle'] == 1) { if($mybb->usergroup['usertitle'] == "")
|
{
| {
|
$defaulttitle = ''; $usertitles = $cache->read('usertitles');
|
$defaulttitle = ''; $usertitles = $cache->read('usertitles');
|
|
|
foreach($usertitles as $title) { if($title['posts'] <= $mybb->user['postnum'])
| foreach($usertitles as $title) { if($title['posts'] <= $mybb->user['postnum'])
|
Zeile 675 | Zeile 679 |
---|
$defaulttitle = htmlspecialchars_uni($title['title']); break; }
|
$defaulttitle = htmlspecialchars_uni($title['title']); break; }
|
} } else {
| } } else {
|
$defaulttitle = htmlspecialchars_uni($mybb->usergroup['usertitle']); }
| $defaulttitle = htmlspecialchars_uni($mybb->usergroup['usertitle']); }
|
Zeile 693 | Zeile 697 |
---|
{ $newtitle = htmlspecialchars_uni($user['usertitle']); $user['usertitle'] = $mybb->user['usertitle'];
|
{ $newtitle = htmlspecialchars_uni($user['usertitle']); $user['usertitle'] = $mybb->user['usertitle'];
|
} }
$user['usertitle'] = htmlspecialchars_uni($user['usertitle']);
| } }
$user['usertitle'] = htmlspecialchars_uni($user['usertitle']);
|
$currentcustom = $reverttitle = ''; if(!empty($mybb->user['usertitle'])) {
| $currentcustom = $reverttitle = ''; if(!empty($mybb->user['usertitle'])) {
|
Zeile 861 | Zeile 865 |
---|
else { $hideemailcheck = "";
|
else { $hideemailcheck = "";
|
}
| }
|
$no_auto_subscribe_selected = $instant_email_subscribe_selected = $instant_pm_subscribe_selected = $no_subscribe_selected = ''; if(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 1) {
| $no_auto_subscribe_selected = $instant_email_subscribe_selected = $instant_pm_subscribe_selected = $no_subscribe_selected = ''; if(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 1) {
|
Zeile 875 | Zeile 879 |
---|
else if(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 3) { $instant_pm_subscribe_selected = "selected=\"selected\"";
|
else if(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 3) { $instant_pm_subscribe_selected = "selected=\"selected\"";
|
} else
| } else
|
{ $no_auto_subscribe_selected = "selected=\"selected\"";
|
{ $no_auto_subscribe_selected = "selected=\"selected\"";
|
}
| }
|
if(isset($user['showimages']) && $user['showimages'] == 1) { $showimagescheck = "checked=\"checked\"";
|
if(isset($user['showimages']) && $user['showimages'] == 1) { $showimagescheck = "checked=\"checked\"";
|
}
| }
|
else { $showimagescheck = "";
|
else { $showimagescheck = "";
|
}
| }
|
if(isset($user['showvideos']) && $user['showvideos'] == 1)
|
if(isset($user['showvideos']) && $user['showvideos'] == 1)
|
{
| {
|
$showvideoscheck = "checked=\"checked\"";
|
$showvideoscheck = "checked=\"checked\"";
|
} else {
| } else {
|
$showvideoscheck = ""; }
| $showvideoscheck = ""; }
|
Zeile 961 | Zeile 965 |
---|
else if(isset($user['dstcorrection']) && $user['dstcorrection'] == 1) { $dst_enabled_selected = "selected=\"selected\"";
|
else if(isset($user['dstcorrection']) && $user['dstcorrection'] == 1) { $dst_enabled_selected = "selected=\"selected\"";
|
}
| }
|
else { $dst_disabled_selected = "selected=\"selected\"";
| else { $dst_disabled_selected = "selected=\"selected\"";
|
Zeile 1027 | Zeile 1031 |
---|
}
if(isset($user['classicpostbit']) && $user['classicpostbit'] != 0)
|
}
if(isset($user['classicpostbit']) && $user['classicpostbit'] != 0)
|
{
| {
|
$classicpostbitcheck = "checked=\"checked\""; } else { $classicpostbitcheck = '';
|
$classicpostbitcheck = "checked=\"checked\""; } else { $classicpostbitcheck = '';
|
}
| }
|
$date_format_options = $dateformat = ''; foreach($date_formats as $key => $format)
|
$date_format_options = $dateformat = ''; foreach($date_formats as $key => $format)
|
{ $selected = '';
| { $selected = '';
|
if(isset($user['dateformat']) && $user['dateformat'] == $key)
|
if(isset($user['dateformat']) && $user['dateformat'] == $key)
|
{ $selected = " selected=\"selected\""; }
| { $selected = " selected=\"selected\""; }
|
$dateformat = my_date($format, TIME_NOW, "", 0); eval("\$date_format_options .= \"".$templates->get("usercp_options_date_format")."\";");
|
$dateformat = my_date($format, TIME_NOW, "", 0); eval("\$date_format_options .= \"".$templates->get("usercp_options_date_format")."\";");
|
}
| }
|
$time_format_options = $timeformat = ''; foreach($time_formats as $key => $format)
| $time_format_options = $timeformat = ''; foreach($time_formats as $key => $format)
|
Zeile 1059 | Zeile 1063 |
---|
$timeformat = my_date($format, TIME_NOW, "", 0); eval("\$time_format_options .= \"".$templates->get("usercp_options_time_format")."\";");
|
$timeformat = my_date($format, TIME_NOW, "", 0); eval("\$time_format_options .= \"".$templates->get("usercp_options_time_format")."\";");
|
}
| }
|
$tzselect = build_timezone_select("timezoneoffset", $mybb->user['timezone'], true);
|
$tzselect = build_timezone_select("timezoneoffset", $mybb->user['timezone'], true);
|
|
|
$pms_from_buddys = ''; if($mybb->settings['allowbuddyonly'] == 1)
|
$pms_from_buddys = ''; if($mybb->settings['allowbuddyonly'] == 1)
|
{
| {
|
eval("\$pms_from_buddys = \"".$templates->get("usercp_options_pms_from_buddys")."\";");
|
eval("\$pms_from_buddys = \"".$templates->get("usercp_options_pms_from_buddys")."\";");
|
| }
$pms = ''; if($mybb->settings['enablepms'] != 0 && $mybb->usergroup['canusepms'] == 1) { eval("\$pms = \"".$templates->get("usercp_options_pms")."\";"); }
$quick_reply = ''; if($mybb->settings['quickreply'] == 1) { eval("\$quick_reply = \"".$templates->get("usercp_options_quick_reply")."\";");
|
}
$threadview = array('linear' => '', 'threaded' => '');
| }
$threadview = array('linear' => '', 'threaded' => '');
|
Zeile 1126 | Zeile 1142 |
---|
$val = trim($val); $selected = ""; if(isset($user['ppp']) && $user['ppp'] == $val)
|
$val = trim($val); $selected = ""; if(isset($user['ppp']) && $user['ppp'] == $val)
|
{
| {
|
$selected = " selected=\"selected\""; }
|
$selected = " selected=\"selected\""; }
|
|
|
$ppp_option = $lang->sprintf($lang->ppp_option, $val); eval("\$pppoptions .= \"".$templates->get("usercp_options_pppselect_option")."\";"); } } eval("\$pppselect = \"".$templates->get("usercp_options_pppselect")."\";");
|
$ppp_option = $lang->sprintf($lang->ppp_option, $val); eval("\$pppoptions .= \"".$templates->get("usercp_options_pppselect_option")."\";"); } } eval("\$pppselect = \"".$templates->get("usercp_options_pppselect")."\";");
|
}
| }
|
$plugins->run_hooks("usercp_options_end");
|
$plugins->run_hooks("usercp_options_end");
|
|
|
eval("\$editprofile = \"".$templates->get("usercp_options")."\";"); output_page($editprofile); }
| eval("\$editprofile = \"".$templates->get("usercp_options")."\";"); output_page($editprofile); }
|
Zeile 1147 | Zeile 1163 |
---|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
|
|
$errors = array();
$plugins->run_hooks("usercp_do_email_start");
|
$errors = array();
$plugins->run_hooks("usercp_do_email_start");
|
if(validate_password_from_uid($mybb->user['uid'], $mybb->get_input('password')) == false) { $errors[] = $lang->error_invalidpassword; } else { // Set up user handler. require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
| if(validate_password_from_uid($mybb->user['uid'], $mybb->get_input('password')) == false) { $errors[] = $lang->error_invalidpassword; } else { // Set up user handler. require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
|
$user = array( "uid" => $mybb->user['uid'],
| $user = array( "uid" => $mybb->user['uid'],
|
Zeile 1248 | Zeile 1264 |
---|
$plugins->run_hooks("usercp_do_password_start"); if(validate_password_from_uid($mybb->user['uid'], $mybb->get_input('oldpassword')) == false)
|
$plugins->run_hooks("usercp_do_password_start"); if(validate_password_from_uid($mybb->user['uid'], $mybb->get_input('oldpassword')) == false)
|
{ $errors[] = $lang->error_invalidpassword; } else { // Set up user handler. require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
$user = array( "uid" => $mybb->user['uid'],
| { $errors[] = $lang->error_invalidpassword; } else { // Set up user handler. require_once MYBB_ROOT."inc/datahandlers/user.php"; $userhandler = new UserDataHandler("update");
$user = array( "uid" => $mybb->user['uid'],
|
"password" => $mybb->get_input('password'), "password2" => $mybb->get_input('password2') );
| "password" => $mybb->get_input('password'), "password2" => $mybb->get_input('password2') );
|
Zeile 1291 | Zeile 1307 |
---|
}
if($mybb->input['action'] == "password")
|
}
if($mybb->input['action'] == "password")
|
{
| {
|
$plugins->run_hooks("usercp_password");
eval("\$editpassword = \"".$templates->get("usercp_password")."\";");
| $plugins->run_hooks("usercp_password");
eval("\$editpassword = \"".$templates->get("usercp_password")."\";");
|
Zeile 1390 | Zeile 1406 |
---|
else if($mybb->get_input('do') == "email_notification") { $new_notification = 1;
|
else if($mybb->get_input('do') == "email_notification") { $new_notification = 1;
|
}
| }
|
else if($mybb->get_input('do') == "pm_notification") { $new_notification = 2;
| else if($mybb->get_input('do') == "pm_notification") { $new_notification = 2;
|
Zeile 1918 | Zeile 1934 |
---|
$sigpreview = $parser->parse_message($sig, $sig_parser); eval("\$signature = \"".$templates->get($template)."\";");
|
$sigpreview = $parser->parse_message($sig, $sig_parser); eval("\$signature = \"".$templates->get($template)."\";");
|
}
| }
|
// User has a current signature, so let's display it (but show an error message) if($mybb->user['suspendsignature'] && $mybb->user['suspendsigtime'] > TIME_NOW)
| // User has a current signature, so let's display it (but show an error message) if($mybb->user['suspendsignature'] && $mybb->user['suspendsigtime'] > TIME_NOW)
|
Zeile 1935 | Zeile 1951 |
---|
{ $sigsmilies = $lang->on; $smilieinserter = build_clickable_smilies();
|
{ $sigsmilies = $lang->on; $smilieinserter = build_clickable_smilies();
|
}
| }
|
else { $sigsmilies = $lang->off;
|
else { $sigsmilies = $lang->off;
|
}
| }
|
if($mybb->settings['sigmycode'] == 1) { $sigmycode = $lang->on;
|
if($mybb->settings['sigmycode'] == 1) { $sigmycode = $lang->on;
|
}
| }
|
else { $sigmycode = $lang->off;
| else { $sigmycode = $lang->off;
|
Zeile 1951 | Zeile 1967 |
---|
if($mybb->settings['sightml'] == 1) { $sightml = $lang->on;
|
if($mybb->settings['sightml'] == 1) { $sightml = $lang->on;
|
}
| }
|
else { $sightml = $lang->off;
| else { $sightml = $lang->off;
|
Zeile 1976 | Zeile 1992 |
---|
eval("\$editsig = \"".$templates->get("usercp_editsig")."\";"); }
|
eval("\$editsig = \"".$templates->get("usercp_editsig")."\";"); }
|
|
|
output_page($editsig); }
| output_page($editsig); }
|
Zeile 1984 | Zeile 2000 |
---|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
{ // Verify incoming POST request verify_post_check($mybb->get_input('my_post_key'));
|
|
|
$plugins->run_hooks("usercp_do_avatar_start"); require_once MYBB_ROOT."inc/functions_upload.php";
|
$plugins->run_hooks("usercp_do_avatar_start"); require_once MYBB_ROOT."inc/functions_upload.php";
|
|
|
$avatar_error = "";
if(!empty($mybb->input['remove'])) // remove avatar
|
$avatar_error = "";
if(!empty($mybb->input['remove'])) // remove avatar
|
{
| {
|
$updated_avatar = array( "avatar" => "", "avatardimensions" => "",
| $updated_avatar = array( "avatar" => "", "avatardimensions" => "",
|
Zeile 2003 | Zeile 2019 |
---|
elseif($_FILES['avatarupload']['name']) // upload avatar { if($mybb->usergroup['canuploadavatars'] == 0)
|
elseif($_FILES['avatarupload']['name']) // upload avatar { if($mybb->usergroup['canuploadavatars'] == 0)
|
{
| {
|
error_no_permission(); } $avatar = upload_avatar();
| error_no_permission(); } $avatar = upload_avatar();
|
Zeile 2016 | Zeile 2032 |
---|
if($avatar['width'] > 0 && $avatar['height'] > 0) { $avatar_dimensions = $avatar['width']."|".$avatar['height'];
|
if($avatar['width'] > 0 && $avatar['height'] > 0) { $avatar_dimensions = $avatar['width']."|".$avatar['height'];
|
} $updated_avatar = array(
| } $updated_avatar = array(
|
"avatar" => $avatar['avatar'].'?dateline='.TIME_NOW, "avatardimensions" => $avatar_dimensions, "avatartype" => "upload"
| "avatar" => $avatar['avatar'].'?dateline='.TIME_NOW, "avatardimensions" => $avatar_dimensions, "avatartype" => "upload"
|
Zeile 2025 | Zeile 2041 |
---|
$db->update_query("users", $updated_avatar, "uid='".$mybb->user['uid']."'"); } }
|
$db->update_query("users", $updated_avatar, "uid='".$mybb->user['uid']."'"); } }
|
else // remote avatar
| elseif($mybb->settings['allowremoteavatars']) // remote avatar
|
{ $mybb->input['avatarurl'] = trim($mybb->get_input('avatarurl')); if(validate_email_format($mybb->input['avatarurl']) != false)
| { $mybb->input['avatarurl'] = trim($mybb->get_input('avatarurl')); if(validate_email_format($mybb->input['avatarurl']) != false)
|
Zeile 2035 | Zeile 2051 |
---|
// If user image does not exist, or is a higher rating, use the mystery man $email = md5($mybb->input['avatarurl']);
|
// If user image does not exist, or is a higher rating, use the mystery man $email = md5($mybb->input['avatarurl']);
|
|
|
$s = ''; if(!$mybb->settings['maxavatardims']) {
| $s = ''; if(!$mybb->settings['maxavatardims']) {
|
Zeile 2051 | Zeile 2067 |
---|
$rating = $mybb->settings['useravatarrating'];
if(!in_array($rating, $types))
|
$rating = $mybb->settings['useravatarrating'];
if(!in_array($rating, $types))
|
{
| {
|
$rating = 'g'; }
| $rating = 'g'; }
|
Zeile 2125 | Zeile 2141 |
---|
remove_avatars($mybb->user['uid']); } }
|
remove_avatars($mybb->user['uid']); } }
|
| } else // remote avatar, but remote avatars are not allowed { $avatar_error = $lang->error_remote_avatar_not_allowed;
|
}
if(empty($avatar_error))
| }
if(empty($avatar_error))
|
Zeile 2138 | Zeile 2158 |
---|
$avatar_error = inline_error($avatar_error); } }
|
$avatar_error = inline_error($avatar_error); } }
|
|
|
if($mybb->input['action'] == "avatar") { $plugins->run_hooks("usercp_avatar_start");
| if($mybb->input['action'] == "avatar") { $plugins->run_hooks("usercp_avatar_start");
|
Zeile 2150 | Zeile 2170 |
---|
$avatarmsg = "<br /><strong>".$lang->already_uploaded_avatar."</strong>"; } elseif($mybb->user['avatartype'] == "remote" || my_validate_url($mybb->user['avatar']))
|
$avatarmsg = "<br /><strong>".$lang->already_uploaded_avatar."</strong>"; } elseif($mybb->user['avatartype'] == "remote" || my_validate_url($mybb->user['avatar']))
|
{
| {
|
$avatarmsg = "<br /><strong>".$lang->using_remote_avatar."</strong>"; $avatarurl = htmlspecialchars_uni($mybb->user['avatar']); }
| $avatarmsg = "<br /><strong>".$lang->using_remote_avatar."</strong>"; $avatarurl = htmlspecialchars_uni($mybb->user['avatar']); }
|
Zeile 2159 | Zeile 2179 |
---|
eval("\$currentavatar = \"".$templates->get("usercp_avatar_current")."\";");
if($mybb->settings['maxavatardims'] != "")
|
eval("\$currentavatar = \"".$templates->get("usercp_avatar_current")."\";");
if($mybb->settings['maxavatardims'] != "")
|
{
| {
|
list($maxwidth, $maxheight) = explode("x", my_strtolower($mybb->settings['maxavatardims'])); $lang->avatar_note .= "<br />".$lang->sprintf($lang->avatar_note_dimensions, $maxwidth, $maxheight);
|
list($maxwidth, $maxheight) = explode("x", my_strtolower($mybb->settings['maxavatardims'])); $lang->avatar_note .= "<br />".$lang->sprintf($lang->avatar_note_dimensions, $maxwidth, $maxheight);
|
}
| }
|
if($mybb->settings['avatarsize']) { $maxsize = get_friendly_size($mybb->settings['avatarsize']*1024);
| if($mybb->settings['avatarsize']) { $maxsize = get_friendly_size($mybb->settings['avatarsize']*1024);
|
Zeile 2178 | Zeile 2198 |
---|
else if($mybb->settings['avatarresizing'] == "user") { eval("\$auto_resize = \"".$templates->get("usercp_avatar_auto_resize_user")."\";");
|
else if($mybb->settings['avatarresizing'] == "user") { eval("\$auto_resize = \"".$templates->get("usercp_avatar_auto_resize_user")."\";");
|
}
| }
|
$avatarupload = ''; if($mybb->usergroup['canuploadavatars'] == 1)
|
$avatarupload = ''; if($mybb->usergroup['canuploadavatars'] == 1)
|
{
| {
|
eval("\$avatarupload = \"".$templates->get("usercp_avatar_upload")."\";");
|
eval("\$avatarupload = \"".$templates->get("usercp_avatar_upload")."\";");
|
| }
$avatar_remote = ''; if($mybb->settings['allowremoteavatars'] == 1) { eval("\$avatar_remote = \"".$templates->get("usercp_avatar_remote")."\";");
|
}
$removeavatar = '';
| }
$removeavatar = '';
|