lp_export.php 873 B

12345678910111213141516171819202122
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Script to export the current path as a SCORM zip package.
  5. * This script cannot use the common controller lp_controller.php because we need to keep
  6. * the headers clean of any session prior to output-ing the resulting file.
  7. * As we still need to check the user's credentials (because he might not have access to this file),
  8. * we need to get some ID proof.
  9. * Once the ID is checked with the database info, generate the file, send the corresponding headers
  10. * to force the download and let the user do the rest. This script should not change the screen
  11. * at all, so the user will still be able to continue what he was doing.
  12. * @todo get some ID proof
  13. * @package chamilo.learnpath
  14. * @author Yannick Warnier <ywarnier@beeznest.org>
  15. */
  16. /**
  17. * The script takes three get parameters that enable the export.
  18. */