display_audiorecorder.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Script opened in an iframe and containing the learning path's table of contents
  5. * @package chamilo.learnpath
  6. * @author Yannick Warnier <ywarnier@beeznest.org>
  7. * @license GNU/GPL
  8. */
  9. //flag to allow for anonymous user - needs to be set before global.inc.php
  10. $use_anonymous = true;
  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. $oLP = unserialize($_SESSION['lpobject']);
  18. if(is_object($oLP)){
  19. $_SESSION['oLP'] = $oLP;
  20. }else{
  21. die('Could not instanciate lp object');
  22. }
  23. }
  24. $lp_theme_css=$_SESSION['oLP']->get_theme();
  25. $scorm_css_header=true;
  26. include_once '../inc/reduced_header.inc.php';
  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_visio','active')=='true'){
  33. include 'audiorecorder.inc.php';
  34. }
  35. echo '</div>';
  36. // end of audiorecorder include
  37. echo '</body></html>';
  38. ?>