Fixes to check path names properly

This commit is contained in:
moodler
2004-09-29 05:33:00 +00:00
parent c99c3dac32
commit b77f5e7a06
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -53,6 +53,7 @@
} else {
$auth = $config->auth;
}
$auth = clean_filename($auth);
require_once("$CFG->dirroot/auth/$auth/lib.php"); //just to make sure that current authentication functions are loaded
if (! isset($config->guestloginbutton)) {
$config->guestloginbutton = 1;
+4 -1
View File
@@ -3,8 +3,10 @@
// Yes, enrol is correct English spelling.
include("../config.php");
$enrol = (string)parameter('enrol', $CFG->enrol);
require_login();
optional_variable($enrol, $CFG->enrol);
if (!$site = get_site()) {
redirect("index.php");
@@ -14,6 +16,7 @@
error("Only the admin can use this page");
}
$enrol = clean_filename($enrol);
require_once("$CFG->dirroot/enrol/$enrol/enrol.php"); /// Open the class
$enrolment = new enrolment_plugin();
+1
View File
@@ -29,6 +29,7 @@
require_variable($module);
$module = clean_filename($module);
require_once("$CFG->dirroot/mod/$module/lib.php");