backup.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Create a backup.
  5. *
  6. * @author Bart Mollet <bart.mollet@hogent.be>
  7. * @package chamilo.backup
  8. */
  9. // Language files that need to be included
  10. $language_file = array('exercice', 'coursebackup', 'admin');
  11. // Including the global initialization file
  12. require '../inc/global.inc.php';
  13. // Check access rights (only teachers allowed)
  14. if (!api_is_allowed_to_edit()) {
  15. api_not_allowed(true);
  16. }
  17. // Section for the tabs
  18. $this_section = SECTION_COURSES;
  19. // Breadcrumbs
  20. $interbreadcrumb[] = array('url' => '../course_info/maintenance.php', 'name' => get_lang('Maintenance'));
  21. // Displaying the header
  22. $nameTools = get_lang('Backup');
  23. Display::display_header($nameTools);
  24. // Display the tool title
  25. api_display_tool_title($nameTools);
  26. /* MAIN CODE */
  27. ?>
  28. <ul>
  29. <li><a href="create_backup.php"><?php echo get_lang('CreateBackup') ?></a><br/>
  30. <?php echo get_lang('CreateBackupInfo'); ?>
  31. </li>
  32. <li><a href="import_backup.php"><?php echo get_lang('ImportBackup') ?></a><br/>
  33. <?php echo get_lang('ImportBackupInfo'); ?>
  34. </li>
  35. </ul>
  36. <?php
  37. // Display the footer
  38. Display::display_footer();