upload.scorm.php 779 B

123456789101112131415161718192021222324
  1. <?php //$id: $
  2. /**
  3. * Process part of the SCORM sub-process for upload. This script MUST BE included by upload/index.php
  4. * as it prepares most of the variables needed here.
  5. * @package dokeos.upload
  6. * @author Yannick Warnier <ywarnier@beeznest.org>
  7. */
  8. /**
  9. * Process the SCORM package and return to the SCORM tool
  10. */
  11. $language_file = "scorm";
  12. $cwdir = getcwd();
  13. require('../newscorm/lp_upload.php');
  14. //reinit current working directory as many functions in upload change it
  15. chdir($cwdir);
  16. $error = api_failure::get_last_failure();
  17. if($error=='not_a_learning_path')
  18. {
  19. $msg = urlencode(get_lang('UnknownPackageFormat'));
  20. }else{
  21. $msg = urlencode(get_lang('UplUploadSucceeded'));
  22. }
  23. header('location: ../newscorm/lp_controller.php?action=list&dialog_box='.$msg);
  24. ?>