@@ 4600-4608 (lines=9) @@ | ||
4597 | * "Administration > Configuration settings > Security > Permissions for new directories". |
|
4598 | * @return int Returns the permissions in the format "Owner-Group-Others, Read-Write-Execute", as an integer value. |
|
4599 | */ |
|
4600 | function api_get_permissions_for_new_directories() { |
|
4601 | static $permissions; |
|
4602 | if (!isset($permissions)) { |
|
4603 | $permissions = trim(api_get_setting('permissions_for_new_directories')); |
|
4604 | // The default value 0777 is according to that in the platform administration panel after fresh system installation. |
|
4605 | $permissions = octdec(!empty($permissions) ? $permissions : '0777'); |
|
4606 | } |
|
4607 | return $permissions; |
|
4608 | } |
|
4609 | ||
4610 | /** |
|
4611 | * Returns the permissions to be assigned to every newly created directory by the web-server. |
|
@@ 4617-4625 (lines=9) @@ | ||
4614 | * @return int Returns the permissions in the format |
|
4615 | * "Owner-Group-Others, Read-Write-Execute", as an integer value. |
|
4616 | */ |
|
4617 | function api_get_permissions_for_new_files() { |
|
4618 | static $permissions; |
|
4619 | if (!isset($permissions)) { |
|
4620 | $permissions = trim(api_get_setting('permissions_for_new_files')); |
|
4621 | // The default value 0666 is according to that in the platform administration panel after fresh system installation. |
|
4622 | $permissions = octdec(!empty($permissions) ? $permissions : '0666'); |
|
4623 | } |
|
4624 | return $permissions; |
|
4625 | } |
|
4626 | ||
4627 | /** |
|
4628 | * Deletes a file, or a folder and its contents |