# quota-lib.pl # Functions for getting user quotas do '../web-lib.pl'; &init_config(); &switch_to_remote_user(); require '../ui-lib.pl'; if ($gconfig{'os_type'} =~ /^\S+\-linux$/) { do "linux-lib.pl"; } else { do "$gconfig{'os_type'}-lib.pl"; } # print_limit(amount, no-blocks) sub print_limit { if ($_[0] == 0) { print "$text{'quota_unlimited'}\n"; } elsif ($bsize && !$_[1]) { print "",&nice_size($_[0]*$bsize),""; } else { print "$_[0]\n"; } } sub print_grace { print "",($_[0] || "
"),"\n"; } 1;