I'm aware that I might be posting this in the wrong forum, but I'm not geting any help any where else. Well this is some how related to GLink. I would like a global to show the percentage of space used in gmail once users login from GC.
This is what I have so far, can sombody please point me in the right directions.
sub {
my $gmail_id = shift;
my $db = GT::SQL->new("path/to/cgi-bin/mail/data/admin/defs");
my $count = $db->table('users')->count( {
userid => $gmail_id,
users_space_used => 1,
});
return $count;
}
I'm calling it with <%space_used($app_gmail_userid)%>
This global is just giving me a (0)
This is what I have so far, can sombody please point me in the right directions.
sub {
my $gmail_id = shift;
my $db = GT::SQL->new("path/to/cgi-bin/mail/data/admin/defs");
my $count = $db->table('users')->count( {
userid => $gmail_id,
users_space_used => 1,
});
return $count;
}
I'm calling it with <%space_used($app_gmail_userid)%>
This global is just giving me a (0)