backup.php 1.2 KB

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