mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
- Bug 1301
git-svn-id: file:///svn/phpbb/trunk@5743 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -864,7 +864,7 @@ class acp_attachments
|
||||
$attach_filelist = array();
|
||||
|
||||
$dir = @opendir($phpbb_root_path . $config['upload_path']);
|
||||
while ($file = @readdir($dir))
|
||||
while (($file = @readdir($dir)) !== false)
|
||||
{
|
||||
if (is_file($phpbb_root_path . $config['upload_path'] . '/' . $file) && filesize($phpbb_root_path . $config['upload_path'] . '/' . $file) && $file{0} != '.' && $file != 'index.htm' && !preg_match('#^thumb\_#', $file))
|
||||
{
|
||||
|
@@ -79,7 +79,7 @@ class acp_icons
|
||||
unset($imglist);
|
||||
|
||||
$dir = @opendir($phpbb_root_path . $img_path);
|
||||
while ($file = @readdir($dir))
|
||||
while (($file = @readdir($dir)) !== false)
|
||||
{
|
||||
if (is_file($phpbb_root_path . $img_path . '/' . $file) && preg_match('#\.pak$#i', $file))
|
||||
{
|
||||
|
@@ -875,7 +875,7 @@ class acp_language
|
||||
$new_ary = $iso = array();
|
||||
$dp = opendir("{$phpbb_root_path}language");
|
||||
|
||||
while ($file = readdir($dp))
|
||||
while (($file = readdir($dp)) !== false)
|
||||
{
|
||||
if ($file{0} != '.' && file_exists("{$phpbb_root_path}language/$file/iso.txt"))
|
||||
{
|
||||
|
@@ -287,7 +287,7 @@ class acp_main
|
||||
|
||||
if ($avatar_dir = @opendir($phpbb_root_path . $config['avatar_path']))
|
||||
{
|
||||
while ($file = readdir($avatar_dir))
|
||||
while (($file = readdir($avatar_dir)) !== false)
|
||||
{
|
||||
if ($file{0} != '.')
|
||||
{
|
||||
|
@@ -575,7 +575,7 @@ class acp_modules
|
||||
if (!$module)
|
||||
{
|
||||
$dh = opendir($directory);
|
||||
while ($file = readdir($dh))
|
||||
while (($file = readdir($dh)) !== false)
|
||||
{
|
||||
// Is module?
|
||||
if (preg_match('/^' . $this->module_class . '_.+\.' . $phpEx . '$/', $file))
|
||||
|
@@ -376,7 +376,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||
* @todo grab templates/themes/imagesets from style directories
|
||||
*/
|
||||
$dp = opendir("{$phpbb_root_path}styles");
|
||||
while ($file = readdir($dp))
|
||||
while (($file = readdir($dp)) !== false)
|
||||
{
|
||||
$subpath = ($mode != 'style') ? "$mode/" : '';
|
||||
if ($file{0} != '.' && file_exists("{$phpbb_root_path}styles/$file/$subpath$mode.cfg"))
|
||||
@@ -532,12 +532,12 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||
|
||||
$dir = "{$phpbb_root_path}styles/$imageset_path/imageset";
|
||||
$dp = opendir($dir);
|
||||
while ($file = readdir($dp))
|
||||
while (($file = readdir($dp)) !== false)
|
||||
{
|
||||
if (!is_file($dir . '/' . $file) && !is_link($dir . '/' . $file) && $file{0} != '.' && strtoupper($file) != 'CVS' && !sizeof($imagesetlist['lang']))
|
||||
{
|
||||
$dp2 = opendir("$dir/$file");
|
||||
while ($file2 = readdir($dp2))
|
||||
while (($file2 = readdir($dp2)) !== false)
|
||||
{
|
||||
$imglang = $file;
|
||||
if (preg_match('#\.(?:gif|jpg|png)$#', $file2))
|
||||
|
Reference in New Issue
Block a user