| @@ 39-43 (lines=5) @@ | ||
| 36 | $message = ''; |
|
| 37 | ||
| 38 | if (api_is_platform_admin()) { |
|
| 39 | if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && |
|
| 40 | !is_writable(api_get_path(SYS_ARCHIVE_PATH)) |
|
| 41 | ) { |
|
| 42 | $message = Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'), 'warning'); |
|
| 43 | } |
|
| 44 | ||
| 45 | /* ACTION HANDLING */ |
|
| 46 | if (!empty($_POST['Register'])) { |
|
| @@ 6812-6815 (lines=4) @@ | ||
| 6809 | * prints a warning message. |
|
| 6810 | */ |
|
| 6811 | function api_check_archive_dir() { |
|
| 6812 | if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && !is_writable(api_get_path(SYS_ARCHIVE_PATH))) { |
|
| 6813 | $message = Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'),'warning'); |
|
| 6814 | api_not_allowed(true, $message); |
|
| 6815 | } |
|
| 6816 | } |
|
| 6817 | /** |
|
| 6818 | * Returns an array of global configuration settings which should be ignored |
|