backup.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. // $Id: backup.php 12219 2007-05-01 18:46:59Z yannoo $
  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('exercice', 'coursebackup', 'admin');
  31. // including the global file
  32. include ('../inc/global.inc.php');
  33. // Check access rights (only teachers allowed)
  34. if (!api_is_allowed_to_edit())
  35. {
  36. api_not_allowed(true);
  37. }
  38. // section for the tabs
  39. $this_section=SECTION_COURSES;
  40. // breadcrumbs
  41. $interbreadcrumb[] = array ("url" => "../course_info/maintenance.php", "name" => get_lang('Maintenance'));
  42. // Displaying the header
  43. $nameTools = get_lang('Backup');
  44. Display::display_header($nameTools);
  45. // Display the tool title
  46. api_display_tool_title($nameTools);
  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. ?>