1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

added: download notice for people unable to see files attached to posts

changed: put attachment display into a function now called by posting preview and viewtopic (functions_display.php)
fixed: small fix in posting routines, cleanups...


git-svn-id: file:///svn/phpbb/trunk@4139 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2003-06-17 19:34:17 +00:00
parent 86e67daaaa
commit 8107f14852
9 changed files with 398 additions and 407 deletions

View File

@@ -1329,31 +1329,4 @@ function get_supported_image_types()
return ($types);
}
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;
}
?>