|
@@ 4500-4508 (lines=9) @@
|
| 4497 |
|
* "Administration > Configuration settings > Security > Permissions for new directories". |
| 4498 |
|
* @return int Returns the permissions in the format "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4499 |
|
*/ |
| 4500 |
|
function api_get_permissions_for_new_directories() { |
| 4501 |
|
static $permissions; |
| 4502 |
|
if (!isset($permissions)) { |
| 4503 |
|
$permissions = trim(api_get_setting('permissions_for_new_directories')); |
| 4504 |
|
// The default value 0777 is according to that in the platform administration panel after fresh system installation. |
| 4505 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0777'); |
| 4506 |
|
} |
| 4507 |
|
return $permissions; |
| 4508 |
|
} |
| 4509 |
|
|
| 4510 |
|
/** |
| 4511 |
|
* Returns the permissions to be assigned to every newly created directory by the web-server. |
|
@@ 4517-4525 (lines=9) @@
|
| 4514 |
|
* @return int Returns the permissions in the format |
| 4515 |
|
* "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4516 |
|
*/ |
| 4517 |
|
function api_get_permissions_for_new_files() { |
| 4518 |
|
static $permissions; |
| 4519 |
|
if (!isset($permissions)) { |
| 4520 |
|
$permissions = trim(api_get_setting('permissions_for_new_files')); |
| 4521 |
|
// The default value 0666 is according to that in the platform |
| 4522 |
|
// administration panel after fresh system installation. |
| 4523 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0666'); |
| 4524 |
|
} |
| 4525 |
|
return $permissions; |
| 4526 |
|
} |
| 4527 |
|
|
| 4528 |
|
/** |