mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
A fair amount of additional working or semi-working stuff ... template stored db source (when appropriate), switch theme/templates between DB/filesystem (if available), import, upload templates, imagesets, themes (if available ... i.e. no safe mode), etc. still a fair amount of stuff to do but getting there ... take care using this, backup any themes/templates/imagesets before fiddling and let me know of issues
git-svn-id: file:///svn/phpbb/trunk@4343 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -165,15 +165,13 @@ function filelist($rootdir, $dir = '', $type = 'gif|jpg|jpeg|png')
|
||||
|
||||
while ($fname = readdir($dh))
|
||||
{
|
||||
if (is_file($rootdir . $dir . '/' . $fname) &&
|
||||
preg_match('#\.' . $type . '$#i', $fname) &&
|
||||
filesize($rootdir . $dir . '/' . $fname))
|
||||
if (is_file("$rootdir$dir/$fname") && filesize("$rootdir$dir/$fname") && preg_match('#\.' . $type . '$#i', $fname))
|
||||
{
|
||||
$matches[$dir][] = $fname;
|
||||
}
|
||||
else if ($fname{0} != '.' && is_dir($rootdir . $dir . '/' . $fname))
|
||||
else if ($fname{0} != '.' && is_dir("$rootdir$dir/$fname"))
|
||||
{
|
||||
$matches += filelist($rootdir, $dir . '/'. $fname, $type);
|
||||
$matches += filelist($rootdir, "$dir/$fname", $type);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user