Go Back   FlashFXP Forums > > > >

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

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-04-2003, 11:35 AM   #1
odd
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 273
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, 12:01 PM   #2
ADDiCT
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 517
Default

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

ah thx
Im kinda lost in this script jungle :P
odd is offline   Reply With Quote
Old 11-04-2003, 01:48 PM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
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, 04:43 AM   #5
odd
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 273
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

Tags
0kb, 200-|, limit, limits, user

Thread Tools
Display Modes 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

Forum Jump

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


All times are GMT -5. The time now is 05:50 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)