display_audiorecorder.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. require_once('back_compat.inc.php');
  12. require_once('learnpath.class.php');
  13. require_once('scorm.class.php');
  14. require_once('aicc.class.php');
  15. if(isset($_SESSION['lpobject']))
  16. {
  17. //if($debug>0) error_log('New LP - in lp_toc.php - SESSION[lpobject] is defined',0);
  18. $oLP = unserialize($_SESSION['lpobject']);
  19. if(is_object($oLP)){
  20. $_SESSION['oLP'] = $oLP;
  21. }else{
  22. //error_log('New LP - in lp_toc.php - SESSION[lpobject] is not object - dying',0);
  23. die('Could not instanciate lp object');
  24. }
  25. }
  26. $charset = $_SESSION['oLP']->encoding;
  27. echo '<html>
  28. <body>';
  29. echo '<div id="audiorecorder"> ';
  30. // get the audiorecorder.
  31. $audio_recorder_studentview = true;
  32. $audio_recorder_item_id = $_SESSION['oLP']->current;
  33. if(api_get_setting('service_ppt2lp','active')=='true' && api_get_setting('service_ppt2lp','path_to_lzx')!=''){
  34. include('audiorecorder.inc.php');
  35. }
  36. // end of audiorecorder include
  37. echo '</div></body></html>';
  38. ?>