mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
That stupid broken is_die and filetype ... ran fine under Win2K, failed under Linux, workaround in place
git-svn-id: file:///svn/phpbb/trunk@1174 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
dd2033ace0
commit
c0b875aa38
@ -1259,7 +1259,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||
$avatar_images = array();
|
||||
while( $file = @readdir($dir) )
|
||||
{
|
||||
if( @filetype($file) == "dir" && !preg_match("/\.\.|\./", $file) )
|
||||
if( $file != "." && $file != ".." && !is_file($file) && !is_link($file) )
|
||||
{
|
||||
$sub_dir = @opendir($board_config['avatar_gallery_path'] . "/" . $file);
|
||||
|
||||
@ -1369,6 +1369,15 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
|
||||
}
|
||||
else
|
||||
{
|
||||
if( $mode == "editprofile" )
|
||||
{
|
||||
if( $user_id != $userdata['user_id'] )
|
||||
{
|
||||
$error = TRUE;
|
||||
$error_msg = $lang['Wrong_Profile'];
|
||||
}
|
||||
}
|
||||
|
||||
if( !isset($coppa) )
|
||||
{
|
||||
$coppa = FALSE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user