1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +02:00

Various updates and fixes ... no doubt there are new bugs but where would the fun be without them?

git-svn-id: file:///svn/phpbb/trunk@4090 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2003-06-06 15:23:50 +00:00
parent 8a09c0d75f
commit d1dd262f83
12 changed files with 222 additions and 181 deletions

View File

@@ -721,37 +721,4 @@ function update_image_dimensions()
break;
}
// ---------
// FUNCTIONS
//
function filelist($rootdir, $dir = '', $type = 'gif|jpg|png')
{
static $images = array();
$dh = opendir($rootdir . $dir);
while ($fname = readdir($dh))
{
if (is_file($rootdir . $dir . '/' . $fname) &&
preg_match('#\.' . $type . '$#i', $fname) &&
filesize($rootdir . $dir . '/' . $fname))
{
$images[] = array('path' => $dir, 'file' => $fname);
}
else if ($fname != '.' && $fname != '..' &&
!is_file($rootdir . $dir . '/' . $fname) &&
!is_link($rootdir . $dir . '/' . $fname))
{
filelist($rootdir, $dir . '/'. $fname, $type);
}
}
closedir($dh);
return $images;
}
//
// FUNCTIONS
// ---------
?>