display_audiorecorder.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. use ChamiloSession as Session;
  4. /**
  5. * Script opened in an iframe and containing the learning path's table of contents
  6. * @package chamilo.learnpath
  7. * @author Yannick Warnier <ywarnier@beeznest.org>
  8. * @license GNU/GPL
  9. */
  10. // Flag to allow for anonymous user - needs to be set before global.inc.php.
  11. $use_anonymous = true;
  12. $lpFromSession = Session::read('lpobject');
  13. if (isset($lpFromSession)) {
  14. /** @var learnpath $oLP */
  15. $oLP = unserialize($lpFromSession);
  16. if (is_object($oLP)) {
  17. Session::write('oLP', $oLP);
  18. } else {
  19. die('Could not instanciate lp object.');
  20. }
  21. }
  22. $lp_theme_css = $oLP->get_theme();
  23. $scorm_css_header = true;
  24. Display::display_reduced_header();
  25. echo '<body dir="'.api_get_text_direction().'">';
  26. echo '<div id="audiorecorder"> ';
  27. $audio_recorder_studentview = 'true';
  28. $audio_recorder_item_id = $oLP->current;
  29. if (api_get_setting('service_visio', 'active') == 'true') {
  30. require_once 'audiorecorder.inc.php';
  31. }
  32. echo '</div>';
  33. // end of audiorecorder include
  34. echo '</body></html>';