backup.php 1.3 KB

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