[svn r12605] Added flag for use as anonymous user

skala
Yannick Warnier 18 years ago
parent 07e56f7788
commit 9bf47e1779
  1. 3
      main/newscorm/aicc_api.php
  2. 4
      main/newscorm/aicc_hacp.php
  3. 4
      main/newscorm/blank.php
  4. 4
      main/newscorm/display_audiorecorder.php
  5. 2
      main/newscorm/document.php
  6. 3
      main/newscorm/index.php
  7. 3
      main/newscorm/lp_api.php
  8. 3
      main/newscorm/lp_comm.common.php
  9. 2
      main/newscorm/lp_comm.server.php
  10. 3
      main/newscorm/lp_controller.php
  11. 2
      main/newscorm/lp_footer.php
  12. 2
      main/newscorm/lp_header.php
  13. 2
      main/newscorm/lp_log.php
  14. 2
      main/newscorm/lp_message.php
  15. 2
      main/newscorm/lp_nav.php
  16. 2
      main/newscorm/lp_toc.php
  17. 2
      main/newscorm/lp_upload.php
  18. 2
      main/newscorm/resourcelinker.inc.php
  19. 2
      main/newscorm/resourcelinker.php
  20. 4
      main/newscorm/scorm_admin.php
  21. 2
      main/newscorm/scorm_api.php

@ -27,6 +27,9 @@
============================================================================== ==============================================================================
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
//Load common libraries using a compatibility script to bridge between 1.6 and 1.8 //Load common libraries using a compatibility script to bridge between 1.6 and 1.8
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');
//Load learning path libraries so we can use the objects to define the initial values //Load learning path libraries so we can use the objects to define the initial values

@ -36,6 +36,10 @@
============================================================================== ==============================================================================
*/ */
$debug = 0; $debug = 0;
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
//Use session ID as provided by the request //Use session ID as provided by the request
if(!empty($_REQUEST['aicc_sid'])) if(!empty($_REQUEST['aicc_sid']))
{ {

@ -10,6 +10,10 @@
$language_file[] = "learnpath"; $language_file[] = "learnpath";
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
require('../inc/global.inc.php'); require('../inc/global.inc.php');
include_once('../inc/reduced_header.inc.php'); include_once('../inc/reduced_header.inc.php');

@ -8,6 +8,10 @@
/** /**
* Script * Script
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');
require_once('learnpath.class.php'); require_once('learnpath.class.php');
require_once('scorm.class.php'); require_once('scorm.class.php');

@ -38,6 +38,8 @@
// name of the language file that needs to be included // name of the language file that needs to be included
$language_file = "scormdocument"; $language_file = "scormdocument";
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
require('back_compat.inc.php'); require('back_compat.inc.php');
include("../learnpath/learnpath_functions.inc.php"); include("../learnpath/learnpath_functions.inc.php");

@ -8,6 +8,9 @@
* Script * Script
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
require('back_compat.inc.php'); require('back_compat.inc.php');
header('location: lp_controller.php?'.api_get_cidReq().'&action=list'); header('location: lp_controller.php?'.api_get_cidReq().'&action=list');
?> ?>

@ -8,6 +8,9 @@
/** /**
* Script * Script
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');
//require_once('lp_comm.common.php'); //xajax functions //require_once('lp_comm.common.php'); //xajax functions
//$htmlHeadXtra[] = $xajax->getJavascript('../inc/lib/xajax/')."\n"; //$htmlHeadXtra[] = $xajax->getJavascript('../inc/lib/xajax/')."\n";

@ -9,6 +9,9 @@
/** /**
* Script * Script
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');
require_once('learnpath.class.php'); require_once('learnpath.class.php');

@ -9,6 +9,8 @@
/** /**
* Script * Script
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
// name of the language file that needs to be included // name of the language file that needs to be included
$language_file[] = 'learnpath'; $language_file[] = 'learnpath';
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');

@ -16,6 +16,9 @@ $language_file[] = "scormdocument";
$language_file[] = "scorm"; $language_file[] = "scorm";
$language_file[] = "learnpath"; $language_file[] = "learnpath";
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
//include class definitions before session_start() to ensure availability when touching //include class definitions before session_start() to ensure availability when touching
//session vars containing learning paths //session vars containing learning paths
require_once('learnpath.class.php'); require_once('learnpath.class.php');

@ -7,6 +7,8 @@
/** /**
* Script * Script
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');
include_once('../inc/reduced_header.inc.php'); include_once('../inc/reduced_header.inc.php');
Display::display_footer(); Display::display_footer();

@ -7,6 +7,8 @@
/** /**
* Script * Script
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
// name of the language file that needs to be included // name of the language file that needs to be included
$language_file[] = "scormdocument"; $language_file[] = "scormdocument";
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');

@ -16,6 +16,8 @@
/** /**
* Script * Script
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');
$charset = 'ISO-8859-1'; $charset = 'ISO-8859-1';
$htmlHeadXtra[] = '<script language="javascript"> $htmlHeadXtra[] = '<script language="javascript">

@ -16,6 +16,8 @@
/** /**
* Script * Script
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
// name of the language file that needs to be included // name of the language file that needs to be included
$language_file = "learnpath"; $language_file = "learnpath";
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');

@ -8,6 +8,8 @@
/** /**
* Script * Script
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
// name of the language file that needs to be included // name of the language file that needs to be included
$language_file[] = "scormdocument"; $language_file[] = "scormdocument";
$language_file[] = "scorm"; $language_file[] = "scorm";

@ -8,6 +8,8 @@
/** /**
* Script * Script
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
$language_file[] = "scormdocument"; $language_file[] = "scormdocument";
$language_file[] = "scorm"; $language_file[] = "scorm";
$language_file[] = "learnpath"; $language_file[] = "learnpath";

@ -7,6 +7,8 @@
/** /**
* Script initialisations * Script initialisations
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');
$course_dir = api_get_course_path().'/scorm'; $course_dir = api_get_course_path().'/scorm';
$course_sys_dir = api_get_path(SYS_COURSE_PATH).$course_dir; $course_sys_dir = api_get_path(SYS_COURSE_PATH).$course_dir;

@ -41,6 +41,8 @@
#$language_file = "resourcelinker"; #$language_file = "resourcelinker";
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');
include(api_get_path(SYS_CODE_PATH).'lang/english/resourcelinker.inc.php'); include(api_get_path(SYS_CODE_PATH).'lang/english/resourcelinker.inc.php');
if(!empty($_course['language'])){ if(!empty($_course['language'])){

@ -38,6 +38,8 @@
INIT SECTION INIT SECTION
============================================================================== ==============================================================================
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
// name of the language file that needs to be included // name of the language file that needs to be included
$language_file = 'resourcelinker'; $language_file = 'resourcelinker';
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');

@ -34,13 +34,15 @@
/** /**
* Script init * Script init
*/ */
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
// name of the language file that needs to be included // name of the language file that needs to be included
$language_file = "scormdocument"; $language_file = "scormdocument";
$uncompress=1; //this variable shouldn't be found here (find its usage before removal) $uncompress=1; //this variable shouldn't be found here (find its usage before removal)
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');
include("../learnpath/learnpath_functions.inc.php"); include('learnpath_functions.inc.php');
include_once('scorm.lib.php'); include_once('scorm.lib.php');
$is_allowedToEdit = api_is_allowed_to_edit(); $is_allowedToEdit = api_is_allowed_to_edit();

@ -48,6 +48,8 @@
// var result = api.LMSInitialize(""); // var result = api.LMSInitialize("");
// get the error response : you are not authorized to call this function // get the error response : you are not authorized to call this function
//flag to allow for anonymous user - needs to be set before global.inc.php
$use_anonymous = true;
require_once('back_compat.inc.php'); require_once('back_compat.inc.php');
require_once('learnpath.class.php'); require_once('learnpath.class.php');

Loading…
Cancel
Save