4 # show all registered users
6 # Copyright (c) 2001 Dirk Koopman G1TLH
11 my ($self, $line) = @_;
12 return (1, $self->msg('e5')) unless $self->priv >= 9;
19 $line =~ s/[^\w\-\/]+//g;
23 @out = $self->spawn_cmd(sub {
28 my ($action, $count, $key, $data) = (0,0,0,0);
29 eval qq{for (\$action = DXUser::R_FIRST, \$count = 0; !\$DXUser::dbm->seq(\$key, \$data, \$action); \$action = DXUser::R_NEXT) {
30 if (\$data =~ m{registered}) {
31 if (!\$line || (\$line && \$key =~ /^$line/)) {
32 my \$u = DXUser::get_current(\$key);
33 if (\$u && \$u->registered) {
41 foreach my $call (@val) {
43 push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
49 push @l, "" while @l < 5;
50 push @out, sprintf "%-12s %-12s %-12s %-12s %-12s", @l;
54 push @out, , $self->msg('rec', $count);