mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
This version has an added advantage ... it works ... I think.
git-svn-id: file:///svn/phpbb/trunk@1931 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c73e80888a
commit
6feb891cee
1 changed files with 7 additions and 9 deletions
|
@ -1288,8 +1288,9 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
$allowsmilies = $userdata['user_allowsmile'];
|
$allowsmilies = $userdata['user_allowsmile'];
|
||||||
$allowviewonline = $userdata['user_allow_viewonline'];
|
$allowviewonline = $userdata['user_allow_viewonline'];
|
||||||
|
|
||||||
$user_avatar = $userdata['user_avatar'];
|
$user_avatar = ( $userdata['user_allowavatar'] ) ? $userdata['user_avatar'] : "";
|
||||||
$user_avatar_type = $userdata['user_avatar_type'];
|
$user_avatar_type = ( $userdata['user_allowavatar'] ) ? $userdata['user_avatar_type'] : USER_AVATAR_NONE;
|
||||||
|
|
||||||
$user_style = $userdata['user_style'];
|
$user_style = $userdata['user_style'];
|
||||||
$user_lang = $userdata['user_lang'];
|
$user_lang = $userdata['user_lang'];
|
||||||
$user_timezone = $userdata['user_timezone'];
|
$user_timezone = $userdata['user_timezone'];
|
||||||
|
@ -1466,25 +1467,22 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||||
|
|
||||||
$signature = preg_replace("/\:[0-9a-z\:]*?\]/si", "]", $signature);
|
$signature = preg_replace("/\:[0-9a-z\:]*?\]/si", "]", $signature);
|
||||||
|
|
||||||
|
$avatar_img = "";
|
||||||
if( $user_avatar_type )
|
if( $user_avatar_type )
|
||||||
{
|
{
|
||||||
switch( $user_avatar_type )
|
switch( $user_avatar_type )
|
||||||
{
|
{
|
||||||
case USER_AVATAR_UPLOAD:
|
case USER_AVATAR_UPLOAD:
|
||||||
$avatar_img = "<img src=\"" . $board_config['avatar_path'] . "/" . $user_avatar . "\" alt=\"\" />";
|
$avatar_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . "/" . $user_avatar . '" alt="" />' : '';
|
||||||
break;
|
break;
|
||||||
case USER_AVATAR_REMOTE:
|
case USER_AVATAR_REMOTE:
|
||||||
$avatar_img = "<img src=\"$user_avatar\" alt=\"\" />";
|
$avatar_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $user_avatar . '" alt="" />' : '';
|
||||||
break;
|
break;
|
||||||
case USER_AVATAR_GALLERY:
|
case USER_AVATAR_GALLERY:
|
||||||
$avatar_img = "<img src=\"" . $board_config['avatar_gallery_path'] . "/" . $user_avatar . "\" alt=\"\" />";
|
$avatar_img = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . "/" . $user_avatar . '" alt="" />' : '';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
$avatar_img = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
$s_hidden_fields = '<input type="hidden" name="mode" value="' . $mode . '" /><input type="hidden" name="agreed" value="true" /><input type="hidden" name="coppa" value="' . $coppa . '" />';
|
$s_hidden_fields = '<input type="hidden" name="mode" value="' . $mode . '" /><input type="hidden" name="agreed" value="true" /><input type="hidden" name="coppa" value="' . $coppa . '" />';
|
||||||
if( $mode == "editprofile" )
|
if( $mode == "editprofile" )
|
||||||
|
|
Loading…
Add table
Reference in a new issue