ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
storeScorm.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
10 include_once "Services/Context/classes/class.ilContext.php";
12 
13 require_once("Services/Init/classes/class.ilInitialisation.php");
15 
16 include_once 'Modules/ScormAicc/classes/SCORM/class.ilObjSCORMTracking.php';
17 
18 if ((string) $_GET['do'] == "unload") {
19  ilObjSCORMTracking::checkIfAllowed((int) $_GET['package_id'], (int) $_GET['p'], (int) $_GET['hash']);
21 } else {
22  global $ilUser;
23  $data = file_get_contents('php://input');
24  $ilUser->setId($data->p);
25  ilObjSCORMTracking::checkIfAllowed((int) $_GET['package_id'], (int) $data->p, (int) $data->hash);
27 }
$data
Definition: storeScorm.php:23
$_GET["client_id"]
const CONTEXT_SCORM
static initILIAS()
ilias initialisation
$ilUser
Definition: imgupload.php:18
static init($a_type)
Init context by type.
static checkIfAllowed($packageId, $userId, $hash)