backup.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. // $Id: backup.php 9246 2006-09-25 13:24:53Z bmol $
  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. $langFile = 'coursebackup';
  35. include ('../inc/global.inc.php');
  36. $nameTools = get_lang('Backup');
  37. Display::display_header($nameTools);
  38. api_display_tool_title($nameTools);
  39. if (!api_is_allowed_to_edit())
  40. {
  41. api_not_allowed();
  42. }
  43. /*
  44. ==============================================================================
  45. MAIN CODE
  46. ==============================================================================
  47. */
  48. ?>
  49. <ul>
  50. <li><a href="create_backup.php"><?php echo get_lang('CreateBackup') ?></a><br/>
  51. <?php echo get_lang('CreateBackupInfo') ?>
  52. </li>
  53. <li><a href="import_backup.php"><?php echo get_lang('ImportBackup') ?></a><br/>
  54. <?php echo get_lang('ImportBackupInfo') ?>
  55. </li>
  56. </ul>
  57. <?php
  58. /*
  59. ==============================================================================
  60. FOOTER
  61. ==============================================================================
  62. */
  63. Display::display_footer();
  64. ?>