display_audiorecorder.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php //$id: $
  2. /**
  3. * Script opened in an iframe and containing the learning path's table of contents
  4. * @package dokeos.learnpath
  5. * @author Yannick Warnier <ywarnier@beeznest.org>
  6. * @license GNU/GPL - See Dokeos license directory for details
  7. */
  8. /**
  9. * Script
  10. */
  11. //flag to allow for anonymous user - needs to be set before global.inc.php
  12. $use_anonymous = true;
  13. require_once('back_compat.inc.php');
  14. require_once('learnpath.class.php');
  15. require_once('scorm.class.php');
  16. require_once('aicc.class.php');
  17. if(isset($_SESSION['lpobject']))
  18. {
  19. //if($debug>0) error_log('New LP - in lp_toc.php - SESSION[lpobject] is defined',0);
  20. $oLP = unserialize($_SESSION['lpobject']);
  21. if(is_object($oLP)){
  22. $_SESSION['oLP'] = $oLP;
  23. }else{
  24. //error_log('New LP - in lp_toc.php - SESSION[lpobject] is not object - dying',0);
  25. die('Could not instanciate lp object');
  26. }
  27. }
  28. $charset = $_SESSION['oLP']->encoding;
  29. echo '<html>
  30. <body>';
  31. echo '<div id="audiorecorder"> ';
  32. $audio_recorder_studentview = 'true';
  33. $audio_recorder_item_id = $_SESSION['oLP']->current;
  34. if(api_get_setting('service_ppt2lp','active')=='true' && api_get_setting('service_ppt2lp','path_to_lzx')!=''){
  35. include('audiorecorder.inc.php');
  36. }
  37. // end of audiorecorder include
  38. echo '</div></body></html>';
  39. ?>