mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge chmod changes into trunk
git-svn-id: file:///svn/phpbb/trunk@8781 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -458,16 +458,13 @@ class install_install extends module
|
||||
if (!file_exists(PHPBB_ROOT_PATH . $dir))
|
||||
{
|
||||
@mkdir(PHPBB_ROOT_PATH . $dir, 0777);
|
||||
@chmod(PHPBB_ROOT_PATH . $dir, 0777);
|
||||
phpbb_chmod(PHPBB_ROOT_PATH . $dir, CHMOD_READ | CHMOD_WRITE);
|
||||
}
|
||||
|
||||
// Now really check
|
||||
if (file_exists(PHPBB_ROOT_PATH . $dir) && is_dir(PHPBB_ROOT_PATH . $dir))
|
||||
{
|
||||
if (!@is_writable(PHPBB_ROOT_PATH . $dir))
|
||||
{
|
||||
@chmod(PHPBB_ROOT_PATH . $dir, 0777);
|
||||
}
|
||||
phpbb_chmod(PHPBB_ROOT_PATH . $dir, CHMOD_READ | CHMOD_WRITE);
|
||||
$exists = true;
|
||||
}
|
||||
|
||||
@@ -952,7 +949,8 @@ class install_install extends module
|
||||
|
||||
if ($written)
|
||||
{
|
||||
@chmod(PHPBB_ROOT_PATH . 'config.' . PHP_EXT, 0644);
|
||||
// We may revert back to chmod() if we see problems with users not able to change their config.php file directly
|
||||
phpbb_chmod(PHPBB_ROOT_PATH . 'config.' . PHP_EXT, CHMOD_READ);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user