course)) { error("Could not find this course!"); } require_login($course->id); if (!isteacher($course->id)) { error("This page is for teachers only"); } unset($SESSION->fromdiscussion); add_to_log($course->id, "forum", "view subscribers", "subscribers.php?id=$forum->id", ""); $strsubscribers = get_string("subscribers", "forum"); $strforums = get_string("forums", "forum"); if ($course->category) { $navigation = "id\">$course->shortname -> id\">$strforums -> id\">$forum->name -> $strsubscribers"; } else { $navigation = "id\">$strforums -> id\">$forum->name -> $strsubscribers"; } print_header("$course->shortname: $strsubscribers", "$course->fullname", "$navigation"); if (! $users = forum_subscribed_users($course, $forum) ) { print_heading(get_string("nosubscribers", "forum")); } else { print_heading(get_string("subscribersto","forum", "'$forum->name'")); echo ""; foreach ($users as $user) { echo ""; } echo "
"; print_user_picture($user->id, $course->id, $user->picture); echo "cellcontent\">"; echo "$user->firstname $user->lastname"; echo "cellcontent\">"; echo "$user->email"; echo ""; echo "id&user=$user->id\">unsubscribe"; echo "
"; } print_footer($course); ?>