Home : Products : Gossamer Mail : Discussion :

Products: Gossamer Mail: Discussion: Re: [anup123] How to get # of users connected to mail?: Edit Log

Here is the list of edits for this post
Re: [anup123] How to get # of users connected to mail?
Here's a global to get the total number of users logged in
Code:
sub {
$DB->table('session')->count();
}

And here's a global to get the number of users logged into the same domain as you
Code:
sub {
my $tags = shift;
require GT::SQL::Condition;
$DB->table('session')->count(
GT::SQL::Condition->new(
session_user_id => LIKE => '%@' . $tags->{domain}
)
);
}

Adrian

Last edited by:

Jagerman: Jul 30, 2003, 7:14 PM

Edit Log: