|
@@ 4421-4429 (lines=9) @@
|
| 4418 |
|
* "Administration > Configuration settings > Security > Permissions for new directories". |
| 4419 |
|
* @return int Returns the permissions in the format "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4420 |
|
*/ |
| 4421 |
|
function api_get_permissions_for_new_directories() { |
| 4422 |
|
static $permissions; |
| 4423 |
|
if (!isset($permissions)) { |
| 4424 |
|
$permissions = trim(api_get_setting('permissions_for_new_directories')); |
| 4425 |
|
// The default value 0777 is according to that in the platform administration panel after fresh system installation. |
| 4426 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0777'); |
| 4427 |
|
} |
| 4428 |
|
return $permissions; |
| 4429 |
|
} |
| 4430 |
|
|
| 4431 |
|
/** |
| 4432 |
|
* Returns the permissions to be assigned to every newly created directory by the web-server. |
|
@@ 4438-4446 (lines=9) @@
|
| 4435 |
|
* @return int Returns the permissions in the format |
| 4436 |
|
* "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4437 |
|
*/ |
| 4438 |
|
function api_get_permissions_for_new_files() { |
| 4439 |
|
static $permissions; |
| 4440 |
|
if (!isset($permissions)) { |
| 4441 |
|
$permissions = trim(api_get_setting('permissions_for_new_files')); |
| 4442 |
|
// The default value 0666 is according to that in the platform administration panel after fresh system installation. |
| 4443 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0666'); |
| 4444 |
|
} |
| 4445 |
|
return $permissions; |
| 4446 |
|
} |
| 4447 |
|
|
| 4448 |
|
/** |
| 4449 |
|
* Deletes a file, or a folder and its contents |