Source for file checksession.php
Documentation is available at checksession.php
/* See license terms in /dokeos_license.txt */
* This script gives information to the videoconference scripts (in OpenLaszlo)
* to use the right URL and ports for the videoconference.
require_once('../newscorm/learnpath.class.php');
if($debug> 0) error_log('New LP - Included learnpath',0);
require_once('../newscorm/learnpathItem.class.php');
if($debug> 0) error_log('New LP - Included learnpathItem',0);
require_once('../newscorm/scorm.class.php');
if($debug> 0) error_log('New LP - Included scorm',0);
require_once('../newscorm/scormItem.class.php');
if($debug> 0) error_log('New LP - Included scormItem',0);
require_once('../newscorm/aicc.class.php');
if($debug> 0) error_log('New LP - Included aicc',0);
require_once('../newscorm/aiccItem.class.php');
if($debug> 0) error_log('New LP - Included aiccItem',0);
require ("../../main/inc/global.inc.php");
require_once('get_translation.lib.php');
//$confkey = "0123456789abcdef0123456789abcdef";
require_once (api_get_path(LIBRARY_PATH). "course.lib.php");
printf ('<?xml version="1.0" encoding="UTF-8" ?>');
foreach ($_SESSION['_course'] as $key => $val)
foreach ($_SESSION['_user'] as $key => $val)
if ($key != "auth_source")
if (( $key == "lastName" || $key == "firstName" ) && strlen($val) == 0)
printf('<key>%s</key>', md5($confkey. $challenge));
printf('<challenge>%s</challenge>', $challenge);
printf('<isUploadAllowed>%s</isUploadAllowed>', $isadmin);
printf('<canStartModerator>%s</canStartModerator>',($isadmin== 'true' || $_SESSION["roomType"] == "conference")? 'true': 'false');
printf('<mustStartModerator>%s</mustStartModerator>',($isadmin== 'true' || $_SESSION["roomType"] == "conference")? 'true': 'false');
printf('<portal>%s</portal>', $path);
printf('<roomType>%s</roomType>', $_SESSION['roomType']); // fixme remove +
if(isset ($_SESSION['oLP']))
switch ($_SESSION['whereami'])
$document_id = $_SESSION['oLP']->current;
printf('<studentview>%s</studentview>',$student_view);
printf('<documentid>%s</documentid>',$document_id);
|