|
@@ 4460-4468 (lines=9) @@
|
| 4457 |
|
* "Administration > Configuration settings > Security > Permissions for new directories". |
| 4458 |
|
* @return int Returns the permissions in the format "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4459 |
|
*/ |
| 4460 |
|
function api_get_permissions_for_new_directories() { |
| 4461 |
|
static $permissions; |
| 4462 |
|
if (!isset($permissions)) { |
| 4463 |
|
$permissions = trim(api_get_setting('permissions_for_new_directories')); |
| 4464 |
|
// The default value 0777 is according to that in the platform administration panel after fresh system installation. |
| 4465 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0777'); |
| 4466 |
|
} |
| 4467 |
|
return $permissions; |
| 4468 |
|
} |
| 4469 |
|
|
| 4470 |
|
/** |
| 4471 |
|
* Returns the permissions to be assigned to every newly created directory by the web-server. |
|
@@ 4477-4485 (lines=9) @@
|
| 4474 |
|
* @return int Returns the permissions in the format |
| 4475 |
|
* "Owner-Group-Others, Read-Write-Execute", as an integer value. |
| 4476 |
|
*/ |
| 4477 |
|
function api_get_permissions_for_new_files() { |
| 4478 |
|
static $permissions; |
| 4479 |
|
if (!isset($permissions)) { |
| 4480 |
|
$permissions = trim(api_get_setting('permissions_for_new_files')); |
| 4481 |
|
// The default value 0666 is according to that in the platform |
| 4482 |
|
// administration panel after fresh system installation. |
| 4483 |
|
$permissions = octdec(!empty($permissions) ? $permissions : '0666'); |
| 4484 |
|
} |
| 4485 |
|
return $permissions; |
| 4486 |
|
} |
| 4487 |
|
|
| 4488 |
|
/** |