PDA

View Full Version : Get info if a user got bw limits


odd
11-04-2003, 11:35 AM
Maybe there already is a way to find out if a user have bw limits. If not it would be nice to see if the user got bw limit and what limit the user got in the "site uinfo user"

Like
200-.----------------------------------[uINFO]---------------------------------
200-| |
200-| Login: test Group: ioftpd |
200-| Unfo : Defualt Flags: 3 |
200-| |
200-| Credits: 0MB WkUp: 0KB |
200-| Ratio : Unlimited WkDn: 64KB |
200-| BwLimitUp: 23kb/s BWLimitDn: 0kb/s
200-| |
200-| Ip1. *@* Ip2. |
200-| Ip3. Ip4. |
200-| Ip5. Ip6. |
200-| Ip7. Ip8. |
200-| |
200-'-----------------------------------------------------------------------------'

ADDiCT
11-04-2003, 12:01 PM
(u could use ioGroups as an alternative for site uinfo)

odd
11-04-2003, 12:08 PM
ah thx
Im kinda lost in this script jungle :P

darkone
11-04-2003, 01:48 PM
My compiler says that there's a cookie %[limit()] which takes following stuff as arguments:

INT MessageObject_ConvertLimit(LPSTR szArg)
{
if (! stricmp("dn_speed", szArg)) return 0;
if (! stricmp("up_speed", szArg)) return 1;
if (! stricmp("ftp_logins", szArg)) return 2 + C_FTP;
if (! stricmp("telnet_logins", szArg)) return 2 + C_TELNET;
if (! stricmp("http_logins", szArg)) return 2 + C_HTTP;
return (ULONG)-1;
}

So %[limit(up_speed)] would give you upload speedlimit in kilobytes

odd
11-05-2003, 04:43 AM
Very nice. Thank you.

200-| Ratio : Unlimited WkDn: 0KB
200-| SpeedUP: 15000kb/s SpeedDN: 30kb/s
200-|
200-| Ip1. *@* Ip2.


:banana: