--- loncom/cgi/userstatus.pl 2009/01/09 07:06:27 1.19 +++ loncom/cgi/userstatus.pl 2010/03/23 12:01:49 1.20 @@ -1,7 +1,7 @@ #!/usr/bin/perl $|=1; # User Status -# $Id: userstatus.pl,v 1.19 2009/01/09 07:06:27 raeburn Exp $ +# $Id: userstatus.pl,v 1.20 2010/03/23 12:01:49 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -121,7 +121,13 @@ sub main { unless ($oneline) { my $now = time(); - print ''."\n". + print ''."\n". + ''."\n"."\n". + ''."\n". + ''."\n". + 'LON-CAPA '.$lt{'usrs'}.''."\n". + ''."\n". + ''."\n". "

$lt{'usrs'} ".&Apache::lonlocal::locallocaltime($now).'

'; } @@ -154,18 +160,18 @@ sub main { } if (!$justsummary) { $users{$userclass}{$filename} .= - ''. + '
'. '

'.$userinfo{'environment.lastname'}.', '. $userinfo{'environment.firstname'}.' '. $userinfo{'environment.middlename'}.' '. $userinfo{'environment.generation'}." (". - $userinfo{'user.name'}."\@".$userinfo{'user.domain'}. + $userinfo{'user.name'}.":".$userinfo{'user.domain'}. ")

\n". "

$filename

". "$lt{'login'}: ". &Apache::lonlocal::locallocaltime($userinfo{'user.login.time'}). " $lt{'Browser'}: ".$userinfo{'browser.type'}. - " $lt{'on'} ".$userinfo{'browser.os'}."$lt{'Client'}:". + " $lt{'on'} ".$userinfo{'browser.os'}." $lt{'Client'}:". $userinfo{'request.host'}."
\n$lt{'role'}: ". $userinfo{'request.role'}." "; } @@ -191,7 +197,7 @@ sub main { "
$lt{'ltra'}: ".&Apache::lonlocal::locallocaltime($mtime). " (".$since." $lt{'secs'})
$lt{'lacc'}: ". &Apache::lonlocal::locallocaltime($atime)." (".$sinceacc." $lt{'secs'})". - "
"; + "
"; } } untie(%userinfo); @@ -219,7 +225,7 @@ sub main { &show('OS',\%lt,%usercount); # print "\n"; - print "$lt{'load'}: ".$loadavg; + print "$lt{'load'}: ".$loadavg; print ""; } else { foreach my $l1 (sort keys %usercount) { @@ -259,7 +265,7 @@ sub showact { my ($cat,$ltref,%usercount)=@_; print("

$ltref->{$cat}

\n"); - print("
"); + print(""); foreach my $type (sort(keys(%{$usercount{$cat}}))) { @@ -272,7 +278,8 @@ sub showact { } print(""); print($temp); + print(''); } - print("
 "); print(join("",('Any',@actl))); print("
$count
\n"); + print("
\n"); }