dokeos-learnpath
[ class tree: dokeos-learnpath ] [ index: dokeos-learnpath ] [ all elements ]

Source for file lp_toc.php

Documentation is available at lp_toc.php

  1. <?php //$id: $
  2. /**
  3.  * Script opened in an iframe and containing the learning path's table of contents
  4.  * @package dokeos.learnpath
  5.  * @author Yannick Warnier <ywarnier@beeznest.org>
  6.  * @license    GNU/GPL - See Dokeos license directory for details
  7.  */
  8. /**
  9.  * Script
  10.  */
  11. //flag to allow for anonymous user - needs to be set before global.inc.php
  12. $use_anonymous true;
  13. $language_file["scormdocument";
  14. $language_file["scorm";
  15. $language_file["learnpath";
  16. require_once('back_compat.inc.php');
  17. require_once('learnpath.class.php');
  18. require_once('scorm.class.php');
  19. require_once('aicc.class.php');
  20.  
  21. if(isset($_SESSION['lpobject']))
  22. {
  23.     //if($debug>0) error_log('New LP - in lp_toc.php - SESSION[lpobject] is defined',0);
  24.     $oLP unserialize($_SESSION['lpobject']);
  25.     if(is_object($oLP)){
  26.         $_SESSION['oLP'$oLP;
  27.     }else{
  28.         //error_log('New LP - in lp_toc.php - SESSION[lpobject] is not object - dying',0);
  29.         die('Could not instanciate lp object');
  30.     }
  31. }
  32. $charset $_SESSION['oLP']->encoding;
  33. $htmlHeadXtra['<script language="JavaScript" type="text/javascript">
  34.   var dokeos_xajax_handler = window.parent.oxajax;
  35. </script>';
  36. $scorm_css_header=true;
  37. $display_mode='';
  38. $lp_theme_css=$_SESSION['oLP']->get_theme();
  39. include_once('../inc/reduced_header.inc.php');
  40. ?>
  41. <body>
  42.   <?php  echo $_SESSION['oLP']->get_html_toc();?><br/>
  43. </body>
  44. </html>
  45. <?php
  46. if(!empty($_SESSION['oLP'])){
  47.     $_SESSION['lpobject'serialize($_SESSION['oLP']);
  48. }
  49. ?>

Documentation generated on Thu, 12 Jun 2008 14:03:25 -0500 by phpDocumentor 1.4.1