lp_export.php 858 B

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