PDA

View Full Version : Cookies in a included file - not working


ThomasH
10-28-2003, 03:55 PM
Using the syntax from the Welcome message, I tried adding freespace info to my master.welcome.msg file, but it was not parsed correctly:

Entry in either file:

D1: %.2[free(g:\)(giga)]GB of 40GB

Output from welcome.msg:

230-D1: 11.54GB of 40GB

Output from master.welcome.msg:
230-D1: %.2[free(g:\)(giga)]GB of 40GB


I'm using this include statement in my welcome.msg file:
%[include(..\text\ftp\master.welcome.msg)(1)]

I hope you can reproduce/fix.
I'm currently running 5.2.10r version, but I discovered this bug already in version 5.1.17r

Thanx for a nice product.



/Thomas :D

Zer0Racer
10-28-2003, 03:58 PM
It's by design. Include doesn't translate cookies. It's to prevent endless loops and stuff.

ThomasH
10-28-2003, 04:26 PM
Hmm, I see.

Is there any way to do a remaining space on current disk, when changing virtual directory?

So it will show how much space is left in that section of the FTP-filesystem?


/Thomas

Zer0Racer
10-28-2003, 04:59 PM
You could add something like this in your text/ftp/stat.msg
[Free: %.1[free($path)(giga)]GB]

ThomasH
10-29-2003, 01:51 PM
Thanx,

Is there any way to have different (and parsed) loginscripts based on the users group?
Or can this only be done according to the users flag (and no parsing) ?

Regards
Thomas :confused: