Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/newscorm/lp_export.php

22 lines
873 B

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