display_audiorecorder.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. /**
  10. * Code
  11. */
  12. // Flag to allow for anonymous user - needs to be set before global.inc.php.
  13. $use_anonymous = true;
  14. require_once '../inc/global.inc.php';
  15. require_once 'learnpath.class.php';
  16. require_once 'scorm.class.php';
  17. require_once 'aicc.class.php';
  18. if (isset($_SESSION['lpobject'])) {
  19. $oLP = unserialize($_SESSION['lpobject']);
  20. if (is_object($oLP)) {
  21. $_SESSION['oLP'] = $oLP;
  22. } else {
  23. die('Could not instanciate lp object.');
  24. }
  25. }
  26. $lp_theme_css = $_SESSION['oLP']->get_theme();
  27. $scorm_css_header = true;
  28. Display::display_reduced_header();
  29. echo '<body dir="'.api_get_text_direction().'">';
  30. echo '<div id="audiorecorder"> ';
  31. $audio_recorder_studentview = 'true';
  32. $audio_recorder_item_id = $_SESSION['oLP']->current;
  33. if (api_get_setting('service_visio', 'active') == 'true') {
  34. require_once 'audiorecorder.inc.php';
  35. }
  36. echo '</div>';
  37. // end of audiorecorder include
  38. echo '</body></html>';