diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-24 14:46:35 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-12-24 14:46:35 +0000 |
commit | 03d3a39d3cf0b0837ab6bbabc2f2b9b944cad569 (patch) | |
tree | df73347ea93fc81d610252b22b30fa9fbdd42c92 /phpBB/profile.php | |
parent | 26d26148d93805c511d8015e782d8b077d8cc831 (diff) | |
download | forums-03d3a39d3cf0b0837ab6bbabc2f2b9b944cad569.tar forums-03d3a39d3cf0b0837ab6bbabc2f2b9b944cad569.tar.gz forums-03d3a39d3cf0b0837ab6bbabc2f2b9b944cad569.tar.bz2 forums-03d3a39d3cf0b0837ab6bbabc2f2b9b944cad569.tar.xz forums-03d3a39d3cf0b0837ab6bbabc2f2b9b944cad569.zip |
Minor change, checks for existence of required avatar directories when deciding whether to enable various avatar options.
git-svn-id: file:///svn/phpbb/trunk@1698 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r-- | phpBB/profile.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php index 780951ad8a..b228040397 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -612,7 +612,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) if( !$error ) { $password = md5($password); - $passwd_sql = "user_password = '" . str_replace("\'", "''", $password) . "', "; + $passwd_sql = "user_password = '$password', "; } } } @@ -1402,7 +1402,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) $coppa = ( ( !$HTTP_POST_VARS['coppa'] && !$HTTP_GET_VARS['coppa'] ) || $mode == "register") ? 0 : TRUE; $s_hidden_vars = '<input type="hidden" name="agreed" value="true" /><input type="hidden" name="coppa" value="' . $coppa . '" /><input type="hidden" name="user_id" value="' . $userdata['user_id'] . '" /><input type="hidden" name="current_email" value="' . $userdata['user_email'] . '" />'; - $s_hidden_vars .= '<input type="hidden" name="user_id" value="' . str_replace("\"", """, $user_id) . '" />'; + $s_hidden_vars .= '<input type="hidden" name="user_id" value="' . $user_id . '" />'; $s_hidden_vars .= '<input type="hidden" name="username" value="' . str_replace("\"", """, $username) . '" />'; $s_hidden_vars .= '<input type="hidden" name="email" value="' . str_replace("\"", """, $email) . '" />'; $s_hidden_vars .= '<input type="hidden" name="icq" value="' . str_replace("\"", """, $icq) . '" />'; @@ -1651,15 +1651,17 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) { $template->assign_block_vars("avatarblock", array() ); - if($board_config['allow_avatar_upload']) + if($board_config['allow_avatar_upload'] && file_exists("./" . $board_config['avatar_path']) ) { $template->assign_block_vars("avatarblock.avatarupload", array() ); } + if($board_config['allow_avatar_remote']) { $template->assign_block_vars("avatarblock.avatarremote", array() ); } - if($board_config['allow_avatar_local']) + + if($board_config['allow_avatar_local'] && file_exists("./" . $board_config['avatar_gallery_path']) ) { $template->assign_block_vars("avatarblock.avatargallery", array() ); } |