| @@ 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'])) { |
|
| @@ 6798-6801 (lines=4) @@ | ||
| 6795 | * prints a warning message. |
|
| 6796 | */ |
|
| 6797 | function api_check_archive_dir() { |
|
| 6798 | if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && !is_writable(api_get_path(SYS_ARCHIVE_PATH))) { |
|
| 6799 | $message = Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'),'warning'); |
|
| 6800 | api_not_allowed(true, $message); |
|
| 6801 | } |
|
| 6802 | } |
|
| 6803 | /** |
|
| 6804 | * Returns an array of global configuration settings which should be ignored |
|