Adding message if archive is not writable see #3729

skala
Julio Montoya 14 years ago
parent 12daedbd9d
commit cb8fdfeb14
  1. 6
      main/admin/index.php

@ -7,7 +7,7 @@
*/ */
// Language files that need to be included. // Language files that need to be included.
$language_file = array('admin', 'tracking'); $language_file = array('admin', 'tracking','coursebackup');
// Resetting the course id. // Resetting the course id.
$cidReset = true; $cidReset = true;
@ -32,6 +32,10 @@ if (api_is_platform_admin()) {
if (is_dir(api_get_path(SYS_CODE_PATH).'install/') && is_readable(api_get_path(SYS_CODE_PATH).'install/index.php')) { if (is_dir(api_get_path(SYS_CODE_PATH).'install/') && is_readable(api_get_path(SYS_CODE_PATH).'install/index.php')) {
$message = Display::return_message(get_lang('InstallDirAccessibleSecurityThreat'),'warning'); $message = Display::return_message(get_lang('InstallDirAccessibleSecurityThreat'),'warning');
} }
if (is_dir(api_get_path(SYS_ARCHIVE_PATH)) && !is_writable(api_get_path(SYS_ARCHIVE_PATH))) {
$message = Display::return_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin'),'warning');
}
/* ACTION HANDLING */ /* ACTION HANDLING */
if (!empty($_POST['Register'])) { if (!empty($_POST['Register'])) {
register_site(); register_site();

Loading…
Cancel
Save