Skip to content

Commit

Permalink
MDL-8590 auth cleanup - part 5
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Feb 20, 2007
1 parent 3fe6b72 commit bd35194
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mod/lams/constants.php
@@ -1,6 +1,6 @@
<?php /// LAMS constants

unset($LAMSCONSTANTS);
$LAMSCONSTANTS = new object();

$LAMSCONSTANTS->login_request = '/LoginRequest';
$LAMSCONSTANTS->param_uid = 'uid';
Expand Down
8 changes: 5 additions & 3 deletions mod/lams/lib.php
@@ -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');


Expand Down
3 changes: 2 additions & 1 deletion mod/lams/list.php
Expand Up @@ -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!
Expand Down
1 change: 0 additions & 1 deletion mod/lams/userinfo.php
Expand Up @@ -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))
{
Expand Down

0 comments on commit bd35194

Please sign in to comment.