display_audiorecorder.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. $oLP = unserialize($_SESSION['lpobject']);
  17. if (is_object($oLP)) {
  18. $_SESSION['oLP'] = $oLP;
  19. } else {
  20. die('Could not instanciate lp object.');
  21. }
  22. }
  23. $lp_theme_css = $_SESSION['oLP']->get_theme();
  24. $scorm_css_header = true;
  25. Display::display_reduced_header();
  26. echo '<body dir="'.api_get_text_direction().'">';
  27. echo '<div id="audiorecorder"> ';
  28. $audio_recorder_studentview = 'true';
  29. $audio_recorder_item_id = $_SESSION['oLP']->current;
  30. if (api_get_setting('service_visio', 'active') == 'true') {
  31. require_once 'audiorecorder.inc.php';
  32. }
  33. echo '</div>';
  34. // end of audiorecorder include
  35. echo '</body></html>';