#!/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 "
$text{'who_user'} | ", "$text{'who_tty'} | ", "$text{'who_when'} | ", "$text{'who_from'} |
",&html_escape($w->{'user'})," | \n"; print "",&html_escape($w->{'tty'})," | \n"; print "",&html_escape($w->{'when'})," | \n"; print "",$w->{'from'} ? &html_escape($w->{'from'}) : $text{'logins_local'}," | \n"; print "
\n"; } &ui_print_footer("", $text{'index_return'});