Browse Source

[svn r12605] Added flag for use as anonymous user

Yannick Warnier 18 years ago
parent
commit
9bf47e1779

+ 3 - 0
main/newscorm/aicc_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
 require_once('back_compat.inc.php');  
 //Load learning path libraries so we can use the objects to define the initial values

+ 4 - 0
main/newscorm/aicc_hacp.php

@@ -36,6 +36,10 @@
 ============================================================================== 
 */ 
 $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
 if(!empty($_REQUEST['aicc_sid']))
 {

+ 4 - 0
main/newscorm/blank.php

@@ -10,6 +10,10 @@
  
 
 $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');
 include_once('../inc/reduced_header.inc.php');
 

+ 4 - 0
main/newscorm/display_audiorecorder.php

@@ -8,6 +8,10 @@
 /**
  * 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('learnpath.class.php');
 require_once('scorm.class.php');

+ 2 - 0
main/newscorm/document.php

@@ -38,6 +38,8 @@
 // name of the language file that needs to be included
 $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');
 include("../learnpath/learnpath_functions.inc.php");

+ 3 - 0
main/newscorm/index.php

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

+ 3 - 0
main/newscorm/lp_api.php

@@ -8,6 +8,9 @@
 /**
  * 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('lp_comm.common.php'); //xajax functions
 //$htmlHeadXtra[] = $xajax->getJavascript('../inc/lib/xajax/')."\n";

+ 3 - 0
main/newscorm/lp_comm.common.php

@@ -9,6 +9,9 @@
 /**
  * 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('learnpath.class.php');
 

+ 2 - 0
main/newscorm/lp_comm.server.php

@@ -9,6 +9,8 @@
 /**
  * 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 
 $language_file[] = 'learnpath';
 require_once('back_compat.inc.php');

+ 3 - 0
main/newscorm/lp_controller.php

@@ -16,6 +16,9 @@ $language_file[] = "scormdocument";
 $language_file[] = "scorm";
 $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
 //session vars containing learning paths
 require_once('learnpath.class.php');

+ 2 - 0
main/newscorm/lp_footer.php

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

+ 2 - 0
main/newscorm/lp_header.php

@@ -7,6 +7,8 @@
 /**
  * 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 
 $language_file[] = "scormdocument";
 require_once('back_compat.inc.php');

+ 2 - 0
main/newscorm/lp_log.php

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

+ 2 - 0
main/newscorm/lp_message.php

@@ -16,6 +16,8 @@
 /**
  * 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 
 $language_file = "learnpath";
 require_once('back_compat.inc.php');

+ 2 - 0
main/newscorm/lp_nav.php

@@ -8,6 +8,8 @@
 /**
  * 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 
 $language_file[] = "scormdocument";
 $language_file[] = "scorm";

+ 2 - 0
main/newscorm/lp_toc.php

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

+ 2 - 0
main/newscorm/lp_upload.php

@@ -7,6 +7,8 @@
 /**
  * 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');
 $course_dir  = api_get_course_path().'/scorm';
 $course_sys_dir = api_get_path(SYS_COURSE_PATH).$course_dir;

+ 2 - 0
main/newscorm/resourcelinker.inc.php

@@ -41,6 +41,8 @@
 
 #$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');
 include(api_get_path(SYS_CODE_PATH).'lang/english/resourcelinker.inc.php');
 if(!empty($_course['language'])){

+ 2 - 0
main/newscorm/resourcelinker.php

@@ -38,6 +38,8 @@
 		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 
 $language_file = 'resourcelinker';
 require_once('back_compat.inc.php');

+ 3 - 1
main/newscorm/scorm_admin.php

@@ -34,13 +34,15 @@
 /**
  * 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
 $language_file = "scormdocument";
 $uncompress=1; //this variable shouldn't be found here (find its usage before removal)
 
 require_once('back_compat.inc.php');
-include("../learnpath/learnpath_functions.inc.php");
+include('learnpath_functions.inc.php');
 include_once('scorm.lib.php');
 
 $is_allowedToEdit = api_is_allowed_to_edit();

+ 2 - 0
main/newscorm/scorm_api.php

@@ -48,6 +48,8 @@
 //    var result = api.LMSInitialize("");
 // 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('learnpath.class.php');