category) { require_login($course->id); } add_to_log($course->id, "user", "view", "view.php?id=$user->id&course=$course->id", "$user->id"); $fullname = "$user->firstname $user->lastname"; $personalprofile = get_string("personalprofile"); $participants = get_string("participants"); $loggedinas = "
".user_login_string($course, $USER)."
"; if ($course->category) { print_header("$personalprofile: $fullname", "$personalprofile: $fullname", "id\">$course->shortname -> id\">$participants -> $fullname", "", "", true, " ", $loggedinas); } else { print_header("$course->fullname: $personalprofile: $fullname", "$course->fullname", "$fullname", "", "", true, " ", $loggedinas); } if ($course->category and ! isguest() ) { if (!isstudent($course->id, $user->id) && !isteacher($course->id, $user->id)) { print_heading(get_string("notenrolled", "", $fullname)); print_footer($course); die; } } if ($user->deleted) { print_heading(get_string("userdeleted")); } echo "";
echo "
|
"; } else if ($CFG->changepassword) { echo " | "; } } if ($course->category and ((isstudent($course->id) and ($user->id == $USER->id) and !isguest()) or (isteacher($course->id) and isstudent($course->id, $user->id))) ) { echo " | "; } if (isteacher($course->id)) { echo " | "; if ($user->id != $USER->id) { echo " | "; } } echo " |
$left
$right