| @@ 41-47 (lines=7) @@ | ||
| 38 | ||
| 39 | // Displaying the header |
|
| 40 | if (api_is_platform_admin()) { |
|
| 41 | if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && |
|
| 42 | !is_writable(api_get_path(SYS_ARCHIVE_PATH)) |
|
| 43 | ) { |
|
| 44 | Display::addFlash( |
|
| 45 | Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'), 'warning') |
|
| 46 | ); |
|
| 47 | } |
|
| 48 | ||
| 49 | /* ACTION HANDLING */ |
|
| 50 | if (!empty($_POST['Register'])) { |
|
| @@ 6576-6579 (lines=4) @@ | ||
| 6573 | * prints a warning message. |
|
| 6574 | */ |
|
| 6575 | function api_check_archive_dir() { |
|
| 6576 | if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && !is_writable(api_get_path(SYS_ARCHIVE_PATH))) { |
|
| 6577 | $message = Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'),'warning'); |
|
| 6578 | api_not_allowed(true, $message); |
|
| 6579 | } |
|
| 6580 | } |
|
| 6581 | /** |
|
| 6582 | * Returns an array of global configuration settings which should be ignored |
|