maintenance.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @author Created on 18 October 2006 by Elixir Interactive http://www.elixir-interactive.com
  5. *
  6. * @package chamilo.course_info
  7. */
  8. require_once __DIR__.'/../inc/global.inc.php';
  9. $current_course_tool = TOOL_COURSE_MAINTENANCE;
  10. $this_section = SECTION_COURSES;
  11. $nameTools = get_lang('Backup and import and import');
  12. api_protect_course_script(true);
  13. api_block_anonymous_users();
  14. // Check access rights (only teachers are allowed here)
  15. if (!api_is_allowed_to_edit()) {
  16. api_not_allowed(true);
  17. }
  18. Display::display_header($nameTools);
  19. echo Display::page_header($nameTools);
  20. ?>
  21. <div class="sectiontitle">
  22. <?php Display::display_icon('save_import.gif', get_lang('Backup and import and import')); ?>&nbsp;&nbsp;
  23. <?php echo get_lang('Backup and import and import'); ?>
  24. </div>
  25. <div class="sectioncomment">
  26. <ul>
  27. <li>
  28. <a href="../coursecopy/create_backup.php?<?php echo api_get_cidreq(); ?>">
  29. <?php echo get_lang('Create a backup and import and import'); ?>
  30. </a><br/>
  31. <?php echo get_lang('Create a backup and import and importInfo'); ?>
  32. </li>
  33. <li>
  34. <a href="../coursecopy/import_backup.php?<?php echo api_get_cidreq(); ?>">
  35. <?php echo get_lang('Import backup and import and import'); ?>
  36. </a><br/>
  37. <?php echo get_lang('Import backup and import and importInfo'); ?>
  38. </li>
  39. <li>
  40. <a href="../coursecopy/import_moodle.php?<?php echo api_get_cidreq(); ?>">
  41. <?php echo get_lang('Import from Moodle'); ?>
  42. </a><br/>
  43. <?php echo get_lang('Import from MoodleInfo'); ?>
  44. </li>
  45. </ul>
  46. </div>
  47. <div class="sectiontitle">
  48. <?php Display::display_icon('copy.gif', get_lang('Copy course')); ?>&nbsp;&nbsp;
  49. <a href="../coursecopy/copy_course.php?<?php echo api_get_cidreq(); ?>">
  50. <?php echo get_lang('Copy course'); ?></a>
  51. </div>
  52. <div class="sectioncomment"><?php echo get_lang('DescriptionCopy course'); ?>
  53. </div>
  54. <div class="sectiontitle">
  55. <?php Display::display_icon('tool_delete.gif', get_lang('Empty this course')); ?>&nbsp;&nbsp;
  56. <a href="../coursecopy/Empty this course.php?<?php echo api_get_cidreq(); ?>">
  57. <?php echo get_lang('Empty this course'); ?>
  58. </a>
  59. </div>
  60. <div class="sectioncomment"><?php echo get_lang('This tool empties the course. It removes documents, forums, links. And allows you to select what parts you want to remove or decide to remove the whole.'); ?></div>
  61. <div class="sectiontitle">
  62. <?php Display::display_icon('delete.gif', get_lang('Completely delete this course')); ?>&nbsp;&nbsp;
  63. <a href="../course_info/delete_course.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('Completely delete this course'); ?>
  64. </a>
  65. </div>
  66. <div class="sectioncomment"><?php echo get_lang('Click on this link for a full removal of the course from the server.<br /><br />Be carefull, there\'s no way back!'); ?></div>
  67. <?php
  68. Display::display_footer();