|
@@ 4675-4683 (lines=9) @@
|
| 4672 |
|
* "Administration > Configuration settings > Security > Permissions for new directories". |
| 4673 |
|
* @return int Returns the permissions in the format "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4674 |
|
*/ |
| 4675 |
|
function api_get_permissions_for_new_directories() { |
| 4676 |
|
static $permissions; |
| 4677 |
|
if (!isset($permissions)) { |
| 4678 |
|
$permissions = trim(api_get_setting('permissions_for_new_directories')); |
| 4679 |
|
// The default value 0777 is according to that in the platform administration panel after fresh system installation. |
| 4680 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0777'); |
| 4681 |
|
} |
| 4682 |
|
return $permissions; |
| 4683 |
|
} |
| 4684 |
|
|
| 4685 |
|
/** |
| 4686 |
|
* Returns the permissions to be assigned to every newly created directory by the web-server. |
|
@@ 4692-4700 (lines=9) @@
|
| 4689 |
|
* @return int Returns the permissions in the format |
| 4690 |
|
* "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4691 |
|
*/ |
| 4692 |
|
function api_get_permissions_for_new_files() { |
| 4693 |
|
static $permissions; |
| 4694 |
|
if (!isset($permissions)) { |
| 4695 |
|
$permissions = trim(api_get_setting('permissions_for_new_files')); |
| 4696 |
|
// The default value 0666 is according to that in the platform administration panel after fresh system installation. |
| 4697 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0666'); |
| 4698 |
|
} |
| 4699 |
|
return $permissions; |
| 4700 |
|
} |
| 4701 |
|
|
| 4702 |
|
/** |
| 4703 |
|
* Deletes a file, or a folder and its contents |