Go Back   FlashFXP Forums > Community Chatter > Programming

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread
Old 07-21-2003, 02:21 PM   #1
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default New window messages

AddUser
RenameUser
DeleteUser

AddGroup
RenameGroup
DeleteGroup

What else is needed?
darkone is offline  
Old 07-21-2003, 08:09 PM   #2
Member
 
Join Date: Mar 2003
Posts: 65
Default

couldnt you plz make commands similar to glftpd, like grpadd, grpren etc
Sup3rm4n is offline  
Old 07-21-2003, 08:47 PM   #3
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default

See the forum title; this thread isn't about on site commands.
darkone is offline  
Old 07-22-2003, 04:27 AM   #4
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 558
Default

Anything to change a setting from a user. I would say WriteUser which writes the current user to its file. And ReadUser which reads the user into a common memory block. And as you said (I think) LockUser/UnlockUser.
For example: Suppose I would want user X,Y,Z of group Q to have limited download connections between 08:00 and 18:00
I'd do something like (in ioFTPD.ini)
set scheduler to start at 08:00 to limit on
set scheduler to start at 18:00 to limit off
set event when ioftpd starts to set limit on/off according to time

08:00
for all users in etc\passwd
user=ReadUser();
if user in (X,Y,Z) then {LockUser(user);ChangeSettings(user);WriteUser(use r);UnlockUser();}

Now I can for example set the LIMITS easily and dont have caching problems.
Similar with groups.

Well the rest you can guess..
But you already mentioned something like that before. Basically it would be ideal to have the possibilities of all the build in site commands accessible via an API.

Just my ideas..
I think what you mentioned definitely needs to be in there.
FTPServerTools is offline  
Old 07-23-2003, 07:11 PM   #5
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default

Only lock & unlock are needed (write occurs on unlock, if contents are changed... smart, uhh?) API would be ideal solution; but my time is limited, and there is lots of more important things to be done.
darkone is offline  
Closed Thread
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



All times are GMT -5. The time now is 11:47 AM.