|
@@ 4429-4437 (lines=9) @@
|
| 4426 |
|
* "Administration > Configuration settings > Security > Permissions for new directories". |
| 4427 |
|
* @return int Returns the permissions in the format "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4428 |
|
*/ |
| 4429 |
|
function api_get_permissions_for_new_directories() { |
| 4430 |
|
static $permissions; |
| 4431 |
|
if (!isset($permissions)) { |
| 4432 |
|
$permissions = trim(api_get_setting('permissions_for_new_directories')); |
| 4433 |
|
// The default value 0777 is according to that in the platform administration panel after fresh system installation. |
| 4434 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0777'); |
| 4435 |
|
} |
| 4436 |
|
return $permissions; |
| 4437 |
|
} |
| 4438 |
|
|
| 4439 |
|
/** |
| 4440 |
|
* Returns the permissions to be assigned to every newly created directory by the web-server. |
|
@@ 4446-4454 (lines=9) @@
|
| 4443 |
|
* @return int Returns the permissions in the format |
| 4444 |
|
* "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4445 |
|
*/ |
| 4446 |
|
function api_get_permissions_for_new_files() { |
| 4447 |
|
static $permissions; |
| 4448 |
|
if (!isset($permissions)) { |
| 4449 |
|
$permissions = trim(api_get_setting('permissions_for_new_files')); |
| 4450 |
|
// The default value 0666 is according to that in the platform |
| 4451 |
|
// administration panel after fresh system installation. |
| 4452 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0666'); |
| 4453 |
|
} |
| 4454 |
|
return $permissions; |
| 4455 |
|
} |
| 4456 |
|
|
| 4457 |
|
/** |