|
From: Paul S. O. <ps...@us...> - 2001-10-11 22:22:31
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv13260
Modified Files:
profile.php
Log Message:
That stupid broken is_die and filetype ... ran fine under Win2K, failed under Linux, workaround in place
Index: profile.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/profile.php,v
retrieving revision 1.115
retrieving revision 1.116
diff -C2 -r1.115 -r1.116
*** profile.php 2001/10/11 22:01:10 1.115
--- profile.php 2001/10/11 22:22:28 1.116
***************
*** 1260,1264 ****
while( $file = @readdir($dir) )
{
! if( @filetype($file) == "dir" && !preg_match("/\.\.|\./", $file) )
{
$sub_dir = @opendir($board_config['avatar_gallery_path'] . "/" . $file);
--- 1260,1264 ----
while( $file = @readdir($dir) )
{
! if( $file != "." && $file != ".." && !is_file($file) && !is_link($file) )
{
$sub_dir = @opendir($board_config['avatar_gallery_path'] . "/" . $file);
***************
*** 1370,1373 ****
--- 1370,1382 ----
else
{
+ if( $mode == "editprofile" )
+ {
+ if( $user_id != $userdata['user_id'] )
+ {
+ $error = TRUE;
+ $error_msg = $lang['Wrong_Profile'];
+ }
+ }
+
if( !isset($coppa) )
{
|