Skip to content

Commit

Permalink
Print better loggedin info at the top of the page
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed May 26, 2003
1 parent 8df45f4 commit 02e44e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 4 additions & 2 deletions user/index.php
Expand Up @@ -19,13 +19,15 @@

add_to_log($course->id, "user", "view all", "index.php?id=$course->id", "");

$loggedinas = "<p class=\"logininfo\">".user_login_string($course, $USER)."</p>";

if ($course->category) {
print_header("$course->shortname: ".get_string("participants"), "$course->fullname",
"<A HREF=../course/view.php?id=$course->id>$course->shortname</A> -> ".
get_string("participants"), "");
get_string("participants"), "", "", true, "&nbsp;", $loggedinas);
} else {
print_header("$course->shortname: ".get_string("participants"), "$course->fullname",
get_string("participants"), "");
get_string("participants"), "", "", true, "&nbsp;", $loggedinas);
}

$string->email = get_string("email");
Expand Down
8 changes: 6 additions & 2 deletions user/view.php
Expand Up @@ -29,12 +29,16 @@
$personalprofile = get_string("personalprofile");
$participants = get_string("participants");

$loggedinas = "<p class=\"logininfo\">".user_login_string($course, $USER)."</p>";

if ($course->category) {
print_header("$personalprofile: $fullname", "$personalprofile: $fullname",
"<A HREF=\"../course/view.php?id=$course->id\">$course->shortname</A> ->
<A HREF=\"index.php?id=$course->id\">$participants</A> -> $fullname", "");
<A HREF=\"index.php?id=$course->id\">$participants</A> -> $fullname",
"", "", true, "&nbsp;", $loggedinas);
} else {
print_header("$course->fullname: $personalprofile: $fullname", "$course->fullname", "$fullname", "");
print_header("$course->fullname: $personalprofile: $fullname", "$course->fullname",
"$fullname", "", "", true, "&nbsp;", $loggedinas);
}

if ($course->category and ! isguest() ) {
Expand Down

0 comments on commit 02e44e7

Please sign in to comment.