|
|
@ -96,21 +96,21 @@ if (Security::check_token('post') && ( |
|
|
|
$cr->set_file_option($_POST['same_file_name_option']); |
|
|
|
$cr->set_file_option($_POST['same_file_name_option']); |
|
|
|
$cr->restore(); |
|
|
|
$cr->restore(); |
|
|
|
Display::display_normal_message(get_lang('ImportFinished')); |
|
|
|
Display::display_normal_message(get_lang('ImportFinished')); |
|
|
|
echo '<a class="btn" href="' . api_get_path(WEB_COURSE_PATH) . api_get_course_path() . '/index.php">' . get_lang('CourseHomepage') . '</a>'; |
|
|
|
echo '<a class="btn btn-default" href="' . api_get_path(WEB_COURSE_PATH) . api_get_course_path() . '/index.php">' . get_lang('CourseHomepage') . '</a>'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (!$error) { |
|
|
|
if (!$error) { |
|
|
|
Display::display_warning_message(get_lang('NoResourcesInBackupFile')); |
|
|
|
Display::display_warning_message(get_lang('NoResourcesInBackupFile')); |
|
|
|
echo '<a class="btn" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
|
|
echo '<a class="btn btn-default" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
|
|
} elseif ($filename === false) { |
|
|
|
} elseif ($filename === false) { |
|
|
|
Display::display_error_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin')); |
|
|
|
Display::display_error_message(get_lang('ArchivesDirectoryNotWriteableContactAdmin')); |
|
|
|
echo '<a class="btn" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
|
|
echo '<a class="btn btn-default" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if ($filename == '') { |
|
|
|
if ($filename == '') { |
|
|
|
Display::display_error_message(get_lang('SelectBackupFile')); |
|
|
|
Display::display_error_message(get_lang('SelectBackupFile')); |
|
|
|
echo '<a class="btn" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
|
|
echo '<a class="btn btn-default" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
Display::display_error_message(get_lang('UploadError')); |
|
|
|
Display::display_error_message(get_lang('UploadError')); |
|
|
|
echo '<a class="btn" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
|
|
echo '<a class="btn btn-default" href="import_backup.php?' . api_get_cidreq() . '">' . get_lang('TryAgain') . '</a>'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|