mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-8590 auth cleanup - part 5; backported from HEAD
This commit is contained in:
parent
4b5fbbed17
commit
154965a441
4 changed files with 8 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
<?php /// LAMS constants
|
<?php /// LAMS constants
|
||||||
|
|
||||||
unset($LAMSCONSTANTS);
|
$LAMSCONSTANTS = new object();
|
||||||
|
|
||||||
$LAMSCONSTANTS->login_request = '/LoginRequest';
|
$LAMSCONSTANTS->login_request = '/LoginRequest';
|
||||||
$LAMSCONSTANTS->param_uid = 'uid';
|
$LAMSCONSTANTS->param_uid = 'uid';
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
<?PHP // $Id$
|
<?PHP // $Id$
|
||||||
|
|
||||||
/// Library of functions and constants for module lams
|
/// Library of functions and constants for module lams
|
||||||
include_once('../../config.php');
|
|
||||||
require_once($CFG->dirroot.'/lib/datalib.php');
|
if (!defined('MOODLE_INTERNAL')) {
|
||||||
require_once($CFG->dirroot.'/lib/moodlelib.php');
|
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
|
||||||
|
}
|
||||||
|
|
||||||
require_once($CFG->dirroot.'/lib/soaplib.php');
|
require_once($CFG->dirroot.'/lib/soaplib.php');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
/// send LAMS learning deisgn list as a string seperated by ":" to client
|
/// 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);
|
$result = lams_get_sequences($USER->username,$courseid);
|
||||||
if(is_string($result)){//some exception happened!
|
if(is_string($result)){//some exception happened!
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
* serverId and serverKey
|
* serverId and serverKey
|
||||||
*/
|
*/
|
||||||
include_once("../../config.php");
|
include_once("../../config.php");
|
||||||
include_once($CFG->dirroot.'/lib/datalib.php');
|
|
||||||
|
|
||||||
if(!isset($CFG->lams_serverid)||!isset($CFG->lams_serverkey))
|
if(!isset($CFG->lams_serverid)||!isset($CFG->lams_serverkey))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue