mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
3152110bea
commit
06981cb97b
1 changed files with 24 additions and 21 deletions
|
@ -320,8 +320,10 @@ class install_install extends module
|
||||||
'LEGEND_EXPLAIN' => $lang['FILES_OPTIONAL_EXPLAIN'],
|
'LEGEND_EXPLAIN' => $lang['FILES_OPTIONAL_EXPLAIN'],
|
||||||
));
|
));
|
||||||
|
|
||||||
// config.php ... let's just warn the user it's not writeable
|
$directories = array('config.'.$phpEx, 'images/avatars/upload/');
|
||||||
$dir = 'config.'.$phpEx;
|
|
||||||
|
foreach ($directories as $dir)
|
||||||
|
{
|
||||||
$write = $exists = true;
|
$write = $exists = true;
|
||||||
if (file_exists($phpbb_root_path . $dir))
|
if (file_exists($phpbb_root_path . $dir))
|
||||||
{
|
{
|
||||||
|
@ -345,6 +347,7 @@ class install_install extends module
|
||||||
'S_EXPLAIN' => false,
|
'S_EXPLAIN' => false,
|
||||||
'S_LEGEND' => false,
|
'S_LEGEND' => false,
|
||||||
));
|
));
|
||||||
|
}
|
||||||
|
|
||||||
// And finally where do we want to go next (well today is taken isn't it :P)
|
// 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) . '" />' : '';
|
$s_hidden_fields = ($img_imagick) ? '<input type="hidden" name="img_imagick" value="' . addslashes($img_imagick) . '" />' : '';
|
||||||
|
|
Loading…
Add table
Reference in a new issue