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 01-28-2003, 03:04 PM   #1
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default New cookies/env vars

How about:
IP - ip of connection
LOGINS - nr of logins of same username
LOGINTIME - logged in at that time
LASTCOMMAND - well that should be obvious
I'll see if I can think of some other cookies/env vars..

Keep up the good work..
FTPServerTools is offline   Reply With Quote
Old 01-29-2003, 02:45 AM   #2
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Added:

%[$hostname]
%[$ip]
%[$ident]
%[$logintime] (login time in seconds)
%[time(format)($logintime)] <= (can be used here)

Should I make it possible to build custom environment with cookies? :]
darkone is offline   Reply With Quote
Old 01-29-2003, 04:31 AM   #3
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

Did you add them as environment vars also??

custom environment with cookies? I am not really clear in what you mean with this. The environment vars I asked for are quite helpfull in making scripts that are non itcl..

If I guess what you mean then it might be quite helpfull. Specially if you can support all ioftpd cookies (apart from the formatting stuff of course).
USER GROUP etc.. already is there but FLAGS TIME WKUP WKDN MNUP MNDN .. would be handy... FREE well that is less important since that can be easily checked.

So could you add env vars:
IP at least? And maybe some of the other ones I suggested?
It would be good I think if most cookies would be available in the environment. Of course all the formatting stuff would be impossible then. hmm although with a little trick they might be possible to be relayed to io.. e.g.
printf("Already %[LOGINS(USER)] logins for %[USER] access not allowed\n");
in io: input is caught (the above line) and translated..
in proggy: getline(line) will then get:
Already 10 logins for dark0n3 access not allowed

Well thats kinda tricky using CreateProcess.. You'd have to make your own redirector.. Nah leave that latest idea.. I see too many problems in it.

But some more env vars would be great.. Also some of the cookies can be in itcl I think as proc's..

e.g.:
set weekstats [wkup mega]

How about that idea? It would make all cookies, tcl procs and vars, and env vars virtually the same (=flexible)
FTPServerTools is offline   Reply With Quote
Old 01-29-2003, 05:50 AM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Heh, i have my own redirector.. how else do you think i'd handle the output (direct output to socket isn't possible)
darkone is offline   Reply With Quote
Old 01-29-2003, 04:14 PM   #5
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Ok, it's all there.. except cookie handling from stdout
darkone is offline   Reply With Quote
Reply

Tags
cookies/env, good, logins, obvious, vars


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


All times are GMT -5. The time now is 01:53 AM.

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