backup.php 1.2 KB

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