backup.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. // $Id: backup.php 11791 2007-03-30 07:14:33Z pcool $
  3. /*
  4. ==============================================================================
  5. Dokeos - elearning and course management software
  6. Copyright (c) 2004 Dokeos S.A.
  7. Copyright (c) 2003 Ghent University (UGent)
  8. Copyright (c) 2001 Universite catholique de Louvain (UCL)
  9. Copyright (c) Bart Mollet (bart.mollet@hogent.be)
  10. For a full list of contributors, see "credits.txt".
  11. The full license can be read in "license.txt".
  12. This program is free software; you can redistribute it and/or
  13. modify it under the terms of the GNU General Public License
  14. as published by the Free Software Foundation; either version 2
  15. of the License, or (at your option) any later version.
  16. See the GNU General Public License for more details.
  17. Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  18. Mail: info@dokeos.com
  19. ==============================================================================
  20. */
  21. /**
  22. * ==============================================================================
  23. * Create a backup.
  24. *
  25. * @author Bart Mollet <bart.mollet@hogent.be>
  26. * @package dokeos.backup
  27. * ==============================================================================
  28. */
  29. // name of the language file that needs to be included
  30. $language_file = array('coursebackup','admin');
  31. // including the global file
  32. include ('../inc/global.inc.php');
  33. // section for the tabs
  34. $this_section=SECTION_COURSES;
  35. // breadcrumbs
  36. $interbreadcrumb[] = array ("url" => "../course_info/maintenance.php", "name" => get_lang('Maintenance'));
  37. // Displaying the header
  38. $nameTools = get_lang('Backup');
  39. Display::display_header($nameTools);
  40. // Display the tool title
  41. api_display_tool_title($nameTools);
  42. // Check access rights (only teachers allowed)
  43. if (!api_is_allowed_to_edit())
  44. {
  45. api_not_allowed();
  46. }
  47. /*
  48. ==============================================================================
  49. MAIN CODE
  50. ==============================================================================
  51. */
  52. ?>
  53. <ul>
  54. <li><a href="create_backup.php"><?php echo get_lang('CreateBackup') ?></a><br/>
  55. <?php echo get_lang('CreateBackupInfo') ?>
  56. </li>
  57. <li><a href="import_backup.php"><?php echo get_lang('ImportBackup') ?></a><br/>
  58. <?php echo get_lang('ImportBackupInfo') ?>
  59. </li>
  60. </ul>
  61. <?php
  62. // Display the footer
  63. Display::display_footer();
  64. ?>