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