@@ 37-43 (lines=7) @@ | ||
34 | ||
35 | // Displaying the header |
|
36 | if (api_is_platform_admin()) { |
|
37 | if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && |
|
38 | !is_writable(api_get_path(SYS_ARCHIVE_PATH)) |
|
39 | ) { |
|
40 | Display::addFlash( |
|
41 | Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'), 'warning') |
|
42 | ); |
|
43 | } |
|
44 | ||
45 | /* ACTION HANDLING */ |
|
46 | if (!empty($_POST['Register'])) { |
@@ 6616-6619 (lines=4) @@ | ||
6613 | * prints a warning message. |
|
6614 | */ |
|
6615 | function api_check_archive_dir() { |
|
6616 | if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && !is_writable(api_get_path(SYS_ARCHIVE_PATH))) { |
|
6617 | $message = Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'),'warning'); |
|
6618 | api_not_allowed(true, $message); |
|
6619 | } |
|
6620 | } |
|
6621 | /** |
|
6622 | * Returns an array of global configuration settings which should be ignored |