display_audiorecorder.php 1.0 KB

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