mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
r163
git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@163 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
e981c17281
commit
ddf14adbe0
2 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1;
|
||||||
|
|
||||||
// Increase number of revision after update
|
// Increase number of revision after update
|
||||||
$bb_cfg['tp_version'] = '2.0.2';
|
$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['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
|
$bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger
|
||||||
|
|
|
@ -43,7 +43,7 @@ function user_avatar_delete($avatar_type, $avatar_file)
|
||||||
$avatar_file = basename($avatar_file);
|
$avatar_file = basename($avatar_file);
|
||||||
if ( $avatar_type == USER_AVATAR_UPLOAD && $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);
|
@unlink('./' . $bb_cfg['avatar_path'] . '/' . $avatar_file);
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ function user_avatar_gallery($mode, &$errors, $avatar_filename, $avatar_category
|
||||||
return '';
|
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);
|
return array('user_avatar' => DB()->escape($avatar_category . '/' . $avatar_filename), 'user_avatar_type' => USER_AVATAR_GALLERY);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue