1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-01-19 15:17:16 +01:00

Compression/decompression "libs" and a change to filelist

git-svn-id: file:///svn/phpbb/trunk@4287 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-07-20 14:18:03 +00:00
parent 9e455b613a
commit 22cfe6dddb
2 changed files with 2181 additions and 4 deletions

View File

@ -169,11 +169,9 @@ function filelist($rootdir, $dir = '', $type = 'gif|jpg|jpeg|png')
preg_match('#\.' . $type . '$#i', $fname) &&
filesize($rootdir . $dir . '/' . $fname))
{
$matches[] = array('path' => $dir, 'file' => $fname);
$matches[$dir][] = $fname;
}
else if ($fname != '.' && $fname != '..' &&
!is_file($rootdir . $dir . '/' . $fname) &&
!is_link($rootdir . $dir . '/' . $fname))
else if ($fname{0} != '.' && is_dir($rootdir . $dir . '/' . $fname))
{
filelist($rootdir, $dir . '/'. $fname, $type);
}

File diff suppressed because it is too large Load Diff