Go Back   FlashFXP Forums > ioFTPD Forum > ioFTPD > ioFTPD beta > Suggestions

Suggestions Got a new idea or addition which would benefit IOFTPD? Post it here!

Reply
 
Thread Tools Rate Thread
Old 11-04-2003, 10:35 AM   #1
odd
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 281
Default Get info if a user got bw limits

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-'-----------------------------------------------------------------------------'
odd is offline   Reply With Quote
Old 11-04-2003, 11:01 AM   #2
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 521
Default

(u could use ioGroups as an alternative for site uinfo)
ADDiCT is offline   Reply With Quote
Old 11-04-2003, 11:08 AM   #3
odd
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 281
Default

ah thx
Im kinda lost in this script jungle :P
odd is offline   Reply With Quote
Old 11-04-2003, 12:48 PM   #4
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default

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
darkone is offline   Reply With Quote
Old 11-05-2003, 03:43 AM   #5
odd
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 281
Default

Very nice. Thank you.

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


:banana:
odd is offline   Reply With Quote
Reply
Create a free account to browse our forums without ads



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash hangs during transfers slatts General Discussions 5 01-14-2005 06:50 PM


All times are GMT -5. The time now is 08:26 PM.