mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
9e455b613a
commit
22cfe6dddb
2 changed files with 2181 additions and 4 deletions
|
@ -169,11 +169,9 @@ function filelist($rootdir, $dir = '', $type = 'gif|jpg|jpeg|png')
|
||||||
preg_match('#\.' . $type . '$#i', $fname) &&
|
preg_match('#\.' . $type . '$#i', $fname) &&
|
||||||
filesize($rootdir . $dir . '/' . $fname))
|
filesize($rootdir . $dir . '/' . $fname))
|
||||||
{
|
{
|
||||||
$matches[] = array('path' => $dir, 'file' => $fname);
|
$matches[$dir][] = $fname;
|
||||||
}
|
}
|
||||||
else if ($fname != '.' && $fname != '..' &&
|
else if ($fname{0} != '.' && is_dir($rootdir . $dir . '/' . $fname))
|
||||||
!is_file($rootdir . $dir . '/' . $fname) &&
|
|
||||||
!is_link($rootdir . $dir . '/' . $fname))
|
|
||||||
{
|
{
|
||||||
filelist($rootdir, $dir . '/'. $fname, $type);
|
filelist($rootdir, $dir . '/'. $fname, $type);
|
||||||
}
|
}
|
||||||
|
|
2179
phpBB/includes/functions_compress.php
Normal file
2179
phpBB/includes/functions_compress.php
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue