1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

Check permissions on avatar upload folder

git-svn-id: file:///svn/phpbb/trunk@6033 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Graham Eames 2006-06-09 20:34:09 +00:00
parent 3152110bea
commit 06981cb97b

View File

@ -320,8 +320,10 @@ class install_install extends module
'LEGEND_EXPLAIN' => $lang['FILES_OPTIONAL_EXPLAIN'],
));
// config.php ... let's just warn the user it's not writeable
$dir = 'config.'.$phpEx;
$directories = array('config.'.$phpEx, 'images/avatars/upload/');
foreach ($directories as $dir)
{
$write = $exists = true;
if (file_exists($phpbb_root_path . $dir))
{
@ -345,6 +347,7 @@ class install_install extends module
'S_EXPLAIN' => false,
'S_LEGEND' => false,
));
}
// And finally where do we want to go next (well today is taken isn't it :P)
$s_hidden_fields = ($img_imagick) ? '<input type="hidden" name="img_imagick" value="' . addslashes($img_imagick) . '" />' : '';