From ddf14adbe00f012828ffb28510f01ec5e9d5b195 Mon Sep 17 00:00:00 2001 From: pherum83 Date: Tue, 26 Jul 2011 23:38:57 +0000 Subject: [PATCH] r163 git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@163 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/config.php | 2 +- upload/includes/ucp/usercp_avatar.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/upload/config.php b/upload/config.php index b6b091d50..24eab5555 100644 --- a/upload/config.php +++ b/upload/config.php @@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1; // Increase number of revision after update $bb_cfg['tp_version'] = '2.0.2'; -$bb_cfg['tp_release_state'] = 'TP II r162'; +$bb_cfg['tp_release_state'] = 'TP II r163'; $bb_cfg['tp_release_date'] = '27-07-2011'; $bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger diff --git a/upload/includes/ucp/usercp_avatar.php b/upload/includes/ucp/usercp_avatar.php index d07cb403c..e4e8ab6ed 100644 --- a/upload/includes/ucp/usercp_avatar.php +++ b/upload/includes/ucp/usercp_avatar.php @@ -43,7 +43,7 @@ function user_avatar_delete($avatar_type, $avatar_file) $avatar_file = basename($avatar_file); if ( $avatar_type == USER_AVATAR_UPLOAD && $avatar_file != '' ) { - if ( @file_exists(BB_ROOT ('./' . $bb_cfg['avatar_path'] . '/' . $avatar_file)) ) + if ( @file_exists(@phpbb_realpath('./' . $bb_cfg['avatar_path'] . '/' . $avatar_file)) ) { @unlink('./' . $bb_cfg['avatar_path'] . '/' . $avatar_file); } @@ -68,7 +68,7 @@ function user_avatar_gallery($mode, &$errors, $avatar_filename, $avatar_category return ''; } - if ( file_exists(BB_ROOT ($bb_cfg['avatar_gallery_path'] . '/' . $avatar_category . '/' . $avatar_filename)) && ($mode == 'editprofile') ) + if ( file_exists(@phpbb_realpath($bb_cfg['avatar_gallery_path'] . '/' . $avatar_category . '/' . $avatar_filename)) && ($mode == 'editprofile') ) { return array('user_avatar' => DB()->escape($avatar_category . '/' . $avatar_filename), 'user_avatar_type' => USER_AVATAR_GALLERY); }