Fix syntax errors. I wish more people used Eclipse.
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ function cas_authenticate_user_login ($username, $password) {
|
||||
global $CFG;
|
||||
$cas_validate=true;
|
||||
|
||||
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(Integer)$CFG->cas_port,$CFG->cas_baseuri);
|
||||
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(integer)$CFG->cas_port,$CFG->cas_baseuri);
|
||||
phpCAS::setLang($CFG->cas_language);
|
||||
if (!phpCAS::isAuthenticated()){
|
||||
phpCAS::authenticateIfNeeded();
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
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);
|
||||
phpCAS::client($CFG->cas_version,$CFG->cas_hostname,(integer)$CFG->cas_port,$CFG->cas_baseuri);
|
||||
$backurl = $CFG->wwwroot;
|
||||
phpCAS::logout($backurl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user