backup.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. // name of the language file that needs to be included
  10. $language_file = array('exercice', 'coursebackup', 'admin');
  11. // including the global file
  12. include ('../inc/global.inc.php');
  13. // Check access rights (only teachers allowed)
  14. if (!api_is_allowed_to_edit())
  15. {
  16. api_not_allowed(true);
  17. }
  18. // section for the tabs
  19. $this_section=SECTION_COURSES;
  20. // breadcrumbs
  21. $interbreadcrumb[] = array ("url" => "../course_info/maintenance.php", "name" => get_lang('Maintenance'));
  22. // Displaying the header
  23. $nameTools = get_lang('Backup');
  24. Display::display_header($nameTools);
  25. // Display the tool title
  26. api_display_tool_title($nameTools);
  27. /* MAIN CODE */
  28. ?>
  29. <ul>
  30. <li><a href="create_backup.php"><?php echo get_lang('CreateBackup') ?></a><br/>
  31. <?php echo get_lang('CreateBackupInfo') ?>
  32. </li>
  33. <li><a href="import_backup.php"><?php echo get_lang('ImportBackup') ?></a><br/>
  34. <?php echo get_lang('ImportBackupInfo') ?>
  35. </li>
  36. </ul>
  37. <?php
  38. // Display the footer
  39. Display::display_footer();
  40. ?>