PDA

View Full Version : StormNEW - site new command


St0rm
01-25-2004, 06:51 PM
A nice 'site new' command for ioftpd. Also supports 'site new <number>'. Standard output looks like this, but is modifieable in the .ini:


[R] site new
[R] 200- +---------------------------------------------------+
[R] 200- | Showing 10 latest directories: |
[R] 200- +----+----------------------------------------------+-----------+--------------+
[R] 200- | ## | Directory Name | Owner | Date Created |
[R] 200- +----+----------------------------------------------+-----------+--------------+
[R] 200- | 1 | sdfsdf | ioFTPD | 26-01-2004 |
[R] 200- | 2 | sdgdfahgdfr | ioFTPD | 26-01-2004 |
[R] 200- | 3 | sdgsdaf | ioFTPD | 26-01-2004 |
[R] 200- | 4 | test123 | ioFTPD | 26-01-2004 |
[R] 200- | 5 | safsagdhdfhfh | ioFTPD | 26-01-2004 |
[R] 200- | 6 | ghfsjhtfsdhgfdsgdfsgdflkgjdflgkdfjlgkdfgd... | ioFTPD | 26-01-2004 |
[R] 200- | 7 | sdfsdf | ioFTPD | 26-01-2004 |
[R] 200- | 8 | fghdfh | ioFTPD | 26-01-2004 |
[R] 200- | 9 | dsfhdfh | ioFTPD | 26-01-2004 |
[R] 200- | 10 | dsfh | ioFTPD | 26-01-2004 |
[R] 200- +----+----------------------------------------------+-----------+--------------+
[R] 200 Command successful.



Hope anyone finds this usefull

Edit: Download this script at http://www.ioftpd.com/scripts/

Greetz,

Storm.

The0ne
01-25-2004, 07:34 PM
ah nice alternative script :)

btw how about adding instead of 'date', '30mins , 40mins, to show how old that dir is' instead of date hehe.

St0rm
01-26-2004, 02:57 AM
Thx, might add that later today.

Edit: Calculating when the dir is created is kinda hard with my system, since "date created" is stored in stormnew.dat, and not calculated 'on the fly'.

St0rm
01-28-2004, 03:21 PM
Update: V1.1

This version is compatible with iofptd 5.6.0 and up ONLY. Update was necessary because of the changes in the environment. If you use an older version of ioftpd, use V1.0

ferran
02-20-2004, 08:30 AM
wich is the line i should use to include latest created directories in the server every time a user logs in?

I'm using this but it doesn't work:

%[execute](EXEC ..\scripts\stormnew\stormnew.exe)(new)

yeah i know... shoot me i'm lam3

ferran
02-20-2004, 08:41 AM
found it... :p

%[execute(EXEC ..\scripts\stormnew\stormnew.exe)(new)]

St0rm
02-20-2004, 10:06 AM
Nice, I learned something new today :D

ferran
02-20-2004, 11:31 AM
wel... if you need to learn something else just pm me

i can teach you one or two things more...

;)

r0adrunn3r
03-13-2004, 09:46 AM
Is it possible that the site new command doesnt show the cd1 and cd2 dirs at all?
It works if the cd1 and cd2 folders are empty, but as soon as one file is in there, they are shown in site new command.
thx for your work

greetz

r0adrunn3r

St0rm
03-13-2004, 02:05 PM
I'm gonna rewrite it anyway, so ill fix that then.

luke2k4
04-23-2004, 11:05 AM
hi, what about an update including the time of the rel not only date ? would be n1

greetzs

hot_pit
04-23-2004, 01:34 PM
Originally posted by luke2k4
hi, what about an update including the time of the rel not only date ? would be n1

greetzs

you should read a few posts up ...

PopWeasel
05-21-2004, 11:06 PM
Nice script. :)

I'm gonna rewrite it anyway, so ill fix that then.

Any progress update? Also could you make the header and footer customizable so we can make it fit with our overall site looks. :D
For example:

[R]ÚÄÄÄÄÄÄÄÄÄÄÄà „Ã„Ã„Ã„Ã„Ã„Ã„Ã„Ã„Ã„Ã„Ã„Ã„ ÄÄÄÄÄÄÄÄÄÄÄÄà „Ã„Ã„Ã„Ã„Ã„Ã„Ã„Â¿
[R] Á
[R] l a t e s t d i r s
[R] Â
[R]ÀÄÂÄÄÄÄÂÄÄÄÄà „Ã„Ã„Ã„Ã„Ã„Ã„Ã„Ã‚Ã„Ã„Ã„Ã„ ÄÄÄÄÄÄÄÄÄÄÄÄà „Ã„Ã„Ã„Ã„Ã„Ã‚Ã„Ã™

instead of:

[R] +---------------------------------------------------+
[R] | Showing 10 latest directories: |
[R] +----+----------------------------------------------+

Would be cool if ppl could edit that part..thx. ;)

St0rm
05-23-2004, 10:56 AM
I currently don't have much spare time to code scripts, and I'm working on a bigger (cooler!) project most of that time, so don't expect a rewritten version too soon. :(