display_audiorecorder.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. $audio_recorder_studentview = 'true';
  31. $audio_recorder_item_id = $_SESSION['oLP']->current;
  32. if(api_get_setting('service_ppt2lp','active')=='true' && api_get_setting('service_ppt2lp','path_to_lzx')!=''){
  33. include('audiorecorder.inc.php');
  34. }
  35. // end of audiorecorder include
  36. echo '</div></body></html>';
  37. ?>