Removed save_session() - no longer needed.

This commit is contained in:
moodler 2003-02-27 02:46:37 +00:00
parent 55271c3047
commit 7a361c8b55
8 changed files with 0 additions and 18 deletions

View File

@ -74,7 +74,6 @@
}
$USER->teacher[$newcourseid] = true;
save_session("USER");
redirect("view.php?id=$newcourseid", get_string("changessaved"));
}

View File

@ -38,12 +38,10 @@
}
$USER->student["$id"] = true;
save_session("USER");
if ($SESSION->wantsurl) {
$destination = $SESSION->wantsurl;
unset($SESSION->wantsurl);
save_session("SESSION");
} else {
$destination = "$CFG->wwwroot/course/view.php?id=$id";
}
@ -72,12 +70,10 @@
}
$USER->student["$id"] = true;
save_session("USER");
if ($SESSION->wantsurl) {
$destination = $SESSION->wantsurl;
unset($SESSION->wantsurl);
save_session("SESSION");
} else {
$destination = "$CFG->wwwroot/course/view.php?id=$id";
}

View File

@ -18,7 +18,6 @@
$USER = get_user_info_from_db("id", $USER->realuser);
$USER->loggedin = true;
$USER->site = $CFG->wwwroot;
save_session("USER");
redirect($_SERVER["HTTP_REFERER"]);
exit;
}
@ -42,7 +41,6 @@
$USER->loggedin = true;
$USER->site = $CFG->wwwroot;
$USER->realuser = $teacher_id;
save_session("USER");
set_moodle_cookie($USER->username);
$student_name = "$USER->firstname $USER->lastname";

View File

@ -9,7 +9,6 @@
if (!empty($SESSION->returnpage)) {
$return = $SESSION->returnpage;
unset($SESSION->returnpage);
save_session("SESSION");
redirect($return);
} else {
redirect("view.php?id=$mod->course");
@ -22,7 +21,6 @@
if (isset($SESSION->modform)) { // Variables are stored in the session
$mod = $SESSION->modform;
unset($SESSION->modform);
save_session("SESSION");
} else {
$mod = (object)$_POST;
}
@ -94,7 +92,6 @@
if (!empty($SESSION->returnpage)) {
$return = $SESSION->returnpage;
unset($SESSION->returnpage);
save_session("SESSION");
redirect($return);
} else {
redirect("view.php?id=$mod->course");
@ -192,7 +189,6 @@
if (isset($return)) {
$SESSION->returnpage = "$CFG->wwwroot/mod/$module->name/view.php?id=$cm->id";
save_session("SESSION");
}
$form->coursemodule = $cm->id;
@ -276,7 +272,6 @@
}
unset($SESSION->modform); // Clear any old ones that may be hanging around.
save_session("SESSION");
$modform = "../mod/$module->name/mod.html";

View File

@ -14,7 +14,6 @@
} else {
$USER->topic = $topic;
}
save_session("USER");
}
if (isteacher($course->id) and isset($marker)) {

View File

@ -34,7 +34,6 @@
if ($user->id == $USER->id) {
unset($USER->student["$id"]);
save_session("USER");
redirect("$CFG->wwwroot");
}

View File

@ -33,7 +33,6 @@
} else if ($edit == "off") {
$USER->editing = false;
}
save_session("USER");
}
}
@ -43,11 +42,9 @@
} else if ($help == "off") {
$USER->help = false;
}
save_session("USER");
}
$SESSION->fromdiscussion = "$CFG->wwwroot/course/view.php?id=$course->id";
save_session("SESSION");
if (! $course->category) { // This course is not a real course.
redirect("$CFG->wwwroot/");

View File

@ -11,7 +11,6 @@
} else {
$USER->section = $week;
}
save_session("USER");
}
if ($course->newsitems) {