Merging fix for bug 2264 & improvements from MOODLE_14_STABLE

This commit is contained in:
defacer
2005-01-12 11:40:46 +00:00
parent 642fd913d3
commit 1a33f699b2
4 changed files with 24 additions and 9 deletions
+1 -1
View File
@@ -62,12 +62,12 @@
$USER = $user;
$USER->loggedin = true;
$USER->sesskey = random_string(10); // for added security, used to check script parameters
$USER->sessionIP = md5(getremoteaddr()); // Store the current IP in the session
$USER->site = $CFG->wwwroot;
$USER->admin = true;
$USER->teacher["$site->id"] = true;
$USER->newadminuser = true;
set_user_sesskey(); // for added security, used to check script parameters
redirect("$CFG->wwwroot/user/edit.php?id=$user->id&course=$site->id");
exit;