backup.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php
  2. // $Id: backup.php 10204 2006-11-26 20:46:53Z 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. /*
  30. ==============================================================================
  31. INIT SECTION
  32. ==============================================================================
  33. */
  34. // name of the language file that needs to be included
  35. $language_file = 'coursebackup';
  36. include ('../inc/global.inc.php');
  37. $nameTools = get_lang('Backup');
  38. Display::display_header($nameTools);
  39. api_display_tool_title($nameTools);
  40. if (!api_is_allowed_to_edit())
  41. {
  42. api_not_allowed();
  43. }
  44. /*
  45. ==============================================================================
  46. MAIN CODE
  47. ==============================================================================
  48. */
  49. ?>
  50. <ul>
  51. <li><a href="create_backup.php"><?php echo get_lang('CreateBackup') ?></a><br/>
  52. <?php echo get_lang('CreateBackupInfo') ?>
  53. </li>
  54. <li><a href="import_backup.php"><?php echo get_lang('ImportBackup') ?></a><br/>
  55. <?php echo get_lang('ImportBackupInfo') ?>
  56. </li>
  57. </ul>
  58. <?php
  59. /*
  60. ==============================================================================
  61. FOOTER
  62. ==============================================================================
  63. */
  64. Display::display_footer();
  65. ?>