mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
code cleanup - see SC#129; merged from MOODLE_15_STABLE
This commit is contained in:
parent
413884c736
commit
269ecdac44
@ -1,10 +1,16 @@
|
||||
<?php
|
||||
// version $Id$
|
||||
// Page for forbidden access from CAS
|
||||
require_once("../../config.php");
|
||||
require("../../config.php");
|
||||
|
||||
if (!$site = get_site()) {
|
||||
error("No site found!");
|
||||
}
|
||||
|
||||
$loginsite = get_string("loginsite");
|
||||
$errormsg = get_string("auth_cas_invalidcaslogin", "auth");
|
||||
print_header("$site->fullname: $loginsite", "$site->fullname", $loginsite,
|
||||
$focus, "", true, "<div align=right>$langmenu</div>");
|
||||
|
||||
print_header("$site->fullname: $loginsite", "$site->fullname", $loginsite);
|
||||
include("forbidden.html");
|
||||
print_footer();
|
||||
exit;
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?PHP
|
||||
// $Id: lib.php
|
||||
// $Id$
|
||||
// author: romuald Lorthioir
|
||||
//CHANGELOG:
|
||||
//16/03/2005 Use of LDAP Module
|
||||
@ -13,6 +13,7 @@ This Module is using the /auth/cas/index_form.html.
|
||||
This module is using the LDAP Module so you need the /auth/ldap directory.
|
||||
You can see /auth/ldap/lib.php for the other functions.
|
||||
*/
|
||||
defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
|
||||
|
||||
define('AUTH_LDAP_NAME', 'cas'); // for ldap module
|
||||
require_once($CFG->dirroot.'/config.php');
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
// $Id: login.php
|
||||
// $Id$
|
||||
// author: romualdLorthioir $
|
||||
//CHANGELOG:
|
||||
//05.03.2005 replace /login/index.php
|
||||
|
||||
defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
|
||||
|
||||
//Define variables used in page
|
||||
if (!$site = get_site()) {
|
||||
|
@ -1,7 +1,8 @@
|
||||
<?php
|
||||
// logout the user from CAS server (destroy the ticket)
|
||||
global $CFG;
|
||||
require_once($CFG->dirroot.'/config.php');
|
||||
<?php
|
||||
// $Id$
|
||||
// logout the user from CAS server (destroy the ticket)
|
||||
defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.');
|
||||
|
||||
include_once($CFG->dirroot.'/lib/cas/CAS.php');
|
||||
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(Integer)$CFG->cas_port,$CFG->cas_baseuri);
|
||||
$backurl = $CFG->wwwroot;
|
||||
|
Loading…
x
Reference in New Issue
Block a user