From e19c852d38c8f65db3fb29e38f22677ed2e0914d Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 16 Mar 2001 04:04:08 +0000 Subject: [PATCH] Replace 707 with 770 - I think this is all of them --- phpgwapi/inc/class.common.inc.php | 12 ++++++------ phpgwapi/inc/class.vfs.inc.php | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 3921593e72..4eac8cfdb1 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -1081,7 +1081,7 @@ . ',
' . lang('Please x by hand',lang('delete')) . '

' . lang('To correct this error for the future you will need to properly set the') . '
' . lang('permissions to the files/users directory') - . '
' . lang('On *nix systems please type: x','chmod 707 ' + . '
' . lang('On *nix systems please type: x','chmod 770 ' . $phpgw_info['server']['files_dir'] . '/users/'); break; case 35: $s .= lang('Account has been updated') . '

' @@ -1091,7 +1091,7 @@ lang('rename')) . '

' . lang('To correct this error for the future you will need to properly set the') . '
' . lang('permissions to the files/users directory') - . '
' . lang('On *nix systems please type: x','chmod 707 ' + . '
' . lang('On *nix systems please type: x','chmod 770 ' . $phpgw_info['server']['files_dir'] . '/users/'); break; case 36: $s .= lang('Account has been created') . '

' @@ -1101,7 +1101,7 @@ lang('create')) . '

' . lang('To correct this error for the future you will need to properly set the') . '
' . lang('permissions to the files/users directory') - . '
' . lang('On *nix systems please type: x','chmod 707 ' + . '
' . lang('On *nix systems please type: x','chmod 770 ' . $phpgw_info['server']['files_dir'] . '/users/'); break; case 37: $s .= lang('Group has been added') . '

' @@ -1110,7 +1110,7 @@ lang('create')) . '

' . lang('To correct this error for the future you will need to properly set the') . '
' . lang('permissions to the files/users directory') - . '
' . lang('On *nix systems please type: x','chmod 707 ' + . '
' . lang('On *nix systems please type: x','chmod 770 ' . $phpgw_info['server']['files_dir'] . '/groups/'); break; case 38: $s .= lang('Group has been deleted') . '

' @@ -1119,7 +1119,7 @@ lang('delete')) . '

' . lang('To correct this error for the future you will need to properly set the') . '
' . lang('permissions to the files/users directory') - . '
' . lang('On *nix systems please type: x','chmod 707 ' + . '
' . lang('On *nix systems please type: x','chmod 770 ' . $phpgw_info['server']['files_dir'] . '/groups/'); break; case 39: $s .= lang('Group has been updated') . '

' @@ -1128,7 +1128,7 @@ lang('rename')) . '

' . lang('To correct this error for the future you will need to properly set the') . '
' . lang('permissions to the files/users directory') - . '
' . lang('On *nix systems please type: x','chmod 707 ' + . '
' . lang('On *nix systems please type: x','chmod 770 ' . $phpgw_info['server']['files_dir'] . '/groups/'); break; case 40: $s .= lang('You have not entered a\nBrief Description').'.'; diff --git a/phpgwapi/inc/class.vfs.inc.php b/phpgwapi/inc/class.vfs.inc.php index 030b8af8ae..599584c8fd 100644 --- a/phpgwapi/inc/class.vfs.inc.php +++ b/phpgwapi/inc/class.vfs.inc.php @@ -320,7 +320,7 @@ global $phpgw_info; $path = $this->getabsolutepath($dir); umask(000); - if (!mkdir($path, 01707)) { + if (!mkdir($path, 01770)) { return False; }else{ return True; @@ -340,7 +340,7 @@ if (!$this->mkdir ($path)) { $msg = "To correct this error you will need to properly set the " . "permissions to the files/users directory.
" - ."On *nix systems please type: chmod 707 "; + ."On *nix systems please type: chmod 770 "; if ($type = "user"){ $msg .= $phpgw_info["server"]["files_dir"] . "/users/";