mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue