--- loncom/auth/lonroles.pm 2001/11/29 19:12:44 1.31
+++ loncom/auth/lonroles.pm 2002/02/01 12:54:51 1.34
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# User Roles Screen
#
-# $Id: lonroles.pm,v 1.31 2001/11/29 19:12:44 www Exp $
+# $Id: lonroles.pm,v 1.34 2002/02/01 12:54:51 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -27,14 +27,21 @@
#
# (Directory Indexer
# (Login Screen
+# YEAR=1999
# 5/21/99,5/22,5/25,5/26,5/31,6/2,6/10,7/12,7/14 Gerd Kortemeyer)
# 11/23 Gerd Kortemeyer)
+# YEAR=2000
# 1/14,03/06,06/01,07/22,07/24,07/25,
# 09/04,09/06,09/28,09/29,09/30,10/2,10/5,10/26,10/28,
# 12/08,12/28,
+# YEAR=2001
# 01/15/01 Gerd Kortemeyer
# 02/27/01 Scott Harrison
# 03/02,05/03,05/25,05/30,06/01,07/06,08/06 Gerd Kortemeyer
+# 12/21 Scott Harrison
+# 12/29 Gerd Kortemeyer
+#
+###
package Apache::lonroles;
@@ -58,6 +65,10 @@ sub handler {
# ================================================================== Roles Init
if ($ENV{'form.selectrole'}) {
+ if ($ENV{'request.course.id'}) {
+ my %temp=('logout_'.$ENV{'request.course.id'} => time);
+ &Apache::lonnet::put('email_status',\%temp);
+ }
&Apache::lonnet::appenv("request.course.id" => '',
"request.course.fn" => '',
"request.course.uri" => '',
@@ -297,6 +308,9 @@ ENDHEADER
$twhere='Currently not available';
$ENV{'course.'.$tcourseid.'.description'}=$twhere;
}
+ if ($trole ne 'st') {
+ $twhere.="
Domain:".$tdom;
+ }
}
}
} elsif ($tdom) {
@@ -379,7 +393,7 @@ ENDHEADER
$twhere='/';
}
$r->print("\n