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:
Paul S. Owen 2001-10-11 22:22:28 +00:00
parent dd2033ace0
commit c0b875aa38

View file

@ -1259,7 +1259,7 @@ if( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) )
$avatar_images = array(); $avatar_images = array();
while( $file = @readdir($dir) ) 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); $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 else
{ {
if( $mode == "editprofile" )
{
if( $user_id != $userdata['user_id'] )
{
$error = TRUE;
$error_msg = $lang['Wrong_Profile'];
}
}
if( !isset($coppa) ) if( !isset($coppa) )
{ {
$coppa = FALSE; $coppa = FALSE;