MDL-8590 auth cleanup - part 5; backported from HEAD

This commit is contained in:
skodak 2007-02-20 17:31:37 +00:00
parent 4b5fbbed17
commit 154965a441
4 changed files with 8 additions and 6 deletions

View file

@ -1,6 +1,6 @@
<?php /// LAMS constants
unset($LAMSCONSTANTS);
$LAMSCONSTANTS = new object();
$LAMSCONSTANTS->login_request = '/LoginRequest';
$LAMSCONSTANTS->param_uid = 'uid';

View file

@ -1,9 +1,11 @@
<?PHP // $Id$
/// Library of functions and constants for module lams
include_once('../../config.php');
require_once($CFG->dirroot.'/lib/datalib.php');
require_once($CFG->dirroot.'/lib/moodlelib.php');
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
require_once($CFG->dirroot.'/lib/soaplib.php');

View file

@ -2,7 +2,8 @@
/// send LAMS learning deisgn list as a string seperated by ":" to client
include_once("lib.php");
require_once("../../config.php");
require_once("lib.php");
$result = lams_get_sequences($USER->username,$courseid);
if(is_string($result)){//some exception happened!

View file

@ -13,7 +13,6 @@
* serverId and serverKey
*/
include_once("../../config.php");
include_once($CFG->dirroot.'/lib/datalib.php');
if(!isset($CFG->lams_serverid)||!isset($CFG->lams_serverkey))
{