@@ 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'])) { |
@@ 6718-6721 (lines=4) @@ | ||
6715 | * prints a warning message. |
|
6716 | */ |
|
6717 | function api_check_archive_dir() { |
|
6718 | if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && !is_writable(api_get_path(SYS_ARCHIVE_PATH))) { |
|
6719 | $message = Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'),'warning'); |
|
6720 | api_not_allowed(true, $message); |
|
6721 | } |
|
6722 | } |
|
6723 | /** |
|
6724 | * Returns an array of global configuration settings which should be ignored |