|
@@ 4689-4697 (lines=9) @@
|
| 4686 |
|
* "Administration > Configuration settings > Security > Permissions for new directories". |
| 4687 |
|
* @return int Returns the permissions in the format "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4688 |
|
*/ |
| 4689 |
|
function api_get_permissions_for_new_directories() { |
| 4690 |
|
static $permissions; |
| 4691 |
|
if (!isset($permissions)) { |
| 4692 |
|
$permissions = trim(api_get_setting('permissions_for_new_directories')); |
| 4693 |
|
// The default value 0777 is according to that in the platform administration panel after fresh system installation. |
| 4694 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0777'); |
| 4695 |
|
} |
| 4696 |
|
return $permissions; |
| 4697 |
|
} |
| 4698 |
|
|
| 4699 |
|
/** |
| 4700 |
|
* Returns the permissions to be assigned to every newly created directory by the web-server. |
|
@@ 4706-4714 (lines=9) @@
|
| 4703 |
|
* @return int Returns the permissions in the format |
| 4704 |
|
* "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4705 |
|
*/ |
| 4706 |
|
function api_get_permissions_for_new_files() { |
| 4707 |
|
static $permissions; |
| 4708 |
|
if (!isset($permissions)) { |
| 4709 |
|
$permissions = trim(api_get_setting('permissions_for_new_files')); |
| 4710 |
|
// The default value 0666 is according to that in the platform administration panel after fresh system installation. |
| 4711 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0666'); |
| 4712 |
|
} |
| 4713 |
|
return $permissions; |
| 4714 |
|
} |
| 4715 |
|
|
| 4716 |
|
/** |
| 4717 |
|
* Deletes a file, or a folder and its contents |