#!/usr/local/bin/perl # list_who.cgi # Display logged-in users require './user-lib.pl'; %access = &get_module_acl(); $access{'logins'} || &error($text{'who_ecannot'}); &ui_print_header(undef, $text{'who_title'}, ""); @whos = &logged_in_users(); if (@whos) { print "\n"; print " ", " ", " ", "\n"; foreach $w (@whos) { print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; } print "
$text{'who_user'}$text{'who_tty'}$text{'who_when'}$text{'who_from'}
",&html_escape($w->{'user'}),"",&html_escape($w->{'tty'}),"",&html_escape($w->{'when'}),"",$w->{'from'} ? &html_escape($w->{'from'}) : $text{'logins_local'},"

\n"; } else { print "$text{'who_none'}

\n"; } &ui_print_footer("", $text{'index_return'});