Go Back   FlashFXP Forums > > > >

bounty's scripts BQUOTA, NEWDIR, BTRIAL, OCSCRIPT, VERSION SCRIPT, IMDB.TCL

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 3.67 average. Display Modes
Old 11-18-2003, 04:05 AM   #136
bounty
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 529
Default Re: Idé

Quote:
Originally posted by ddeca
Just come to think about something...

would be nice if each section could have it's own BANDIR.CFG and BANFILE.CFG


LIKE BAN 2002, 2001, 2000 etc. in /MP3 but not in /DiVX or soo

REGARDS Bounty... love your script and the support u give...

//ddeca
ok it will be added in next release

bandir.cfg & banfile.cfg will be for global sections

to setup a ban(file|dir).cfg for a specified section (ex.: /MP3)
you'll need to create a file called banfile-MP3.cfg or bandir-MP3.cfg and setup them !!

have fun
bounty

PS: new version will come later today
bounty is offline   Reply With Quote
Old 11-18-2003, 05:42 AM   #137
bounty
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 529
Default newdir 3.1.0 out

here we go with a newdir update

DL link & changelog on 1st post

have fun
bounty
bounty is offline   Reply With Quote
Old 11-18-2003, 11:42 AM   #138
romracer
Junior Member
 
Join Date: Oct 2003
Posts: 25
Default

Nice work as always bounty. But you got this release out before I could make my feature request :P I was wondering if it'd be possible to exclude certain paths from dupedir and possibly other restrictions. IE, I have an /archive and I'd like to be able to move from /games into /archive/games without turning off dupedir momentarily. I can't use normal move or rename through flash because they are on separate drives and io does not support this afaik.
romracer is offline   Reply With Quote
Old 11-18-2003, 11:44 AM   #139
ddeca
Member
ioFTPD Foundation User
 
Join Date: Aug 2003
Posts: 73
Default hahahaa...

That was exactly my next request

Soi bump this tread to the TOP again...

Damn cant make the new script work
Site doesnt take any thing... just hangs
ddeca is offline   Reply With Quote
Old 11-18-2003, 12:17 PM   #140
bounty
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 529
Default

Quote:
Originally posted by romracer
Nice work as always bounty. But you got this release out before I could make my feature request :P I was wondering if it'd be possible to exclude certain paths from dupedir and possibly other restrictions. IE, I have an /archive and I'd like to be able to move from /games into /archive/games without turning off dupedir momentarily. I can't use normal move or rename through flash because they are on separate drives and io does not support this afaik.
already done

you can exclude paths mask , dirs masks & file-extension masks from dupedir.log , newdir.log & dupefile.log from init.itcl

look : set ND_NOLOG(ND) , set ND_NOLOG(DIRS) , set ND_NOLOG(FILES)

have fun
bounty
bounty is offline   Reply With Quote
Old 11-18-2003, 01:11 PM   #141
ddeca
Member
ioFTPD Foundation User
 
Join Date: Aug 2003
Posts: 73
Default

First the dupe exlude...

If you upload a DIR to lets say /mp3
then it's logged in DUPEDIR and NEWDIR

Then 2 days later u want to move it move it to /archive
then you cant even if you have set
ND_NOLOG(DIRS) "*/archive/*"
since that file is in DUPEDIR it wont be allowed
What we need is the Dupe check to be disabled on /archive

Hope u understand what i mean ...


And now the new version...

When I install the new version i get this error in systemerror.log
Code:
11-18-2003 19:11:49 "..\scripts\newdir\OnPreMkd.itcl" terminated abnormally
--------------------------- ErrorInfo ----------------------------
can't read "section": no such variable
    while executing
"file exists $ND_PATH/bandir-${section}.cfg"
    (procedure "check_bandir" line 9)
    invoked from within
"check_bandir"
    invoked from within
"if { $ND_DISABLE(bandir) == 0 } {
	check_bandir
}"
    (file "..\scripts\newdir\OnPreMkd.itcl" line 74)
------------------------------------------------------------------
And the transfer hangs..

----EDIT---- got it to work... missed the case sensetive part

so forget that second part of this reply
ddeca is offline   Reply With Quote
Old 11-18-2003, 01:58 PM   #142
bounty
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 529
Default

Code:
can't read "section": no such variable
is fixed in next rls
bounty is offline   Reply With Quote
Old 11-18-2003, 02:06 PM   #143
romracer
Junior Member
 
Join Date: Oct 2003
Posts: 25
Default

Yea, my idea was more along the lines of what ddeca was saying. The current exclude options will exclude certain directories from being placed into the dupe log but what we'd like to see is an option for paths in which to completely ignore dupechecks. IE, NO_NODUPE(DIRS) and put in "/archive/*" and then before all other checks it'd check to see if you were in the path and if so it'd let you mkd and stor regardless of other settings. Not sure if my tcl is up to snuff to make the mods myself but perhaps I'll give it a whirl after work.
romracer is offline   Reply With Quote
Old 11-18-2003, 07:12 PM   #144
stLancer_2
Member
 
Join Date: Aug 2003
Posts: 58
Default

Quote:
Originally posted by ddeca
First the dupe exlude...

If you upload a DIR to lets say /mp3
then it's logged in DUPEDIR and NEWDIR

Then 2 days later u want to move it move it to /archive
then you cant even if you have set
ND_NOLOG(DIRS) "*/archive/*"
since that file is in DUPEDIR it wont be allowed
What we need is the Dupe check to be disabled on /archive

Hope u understand what i mean ...


And now the new version...

When I install the new version i get this error in systemerror.log
Code:
11-18-2003 19:11:49 "..\scripts\newdir\OnPreMkd.itcl" terminated abnormally
--------------------------- ErrorInfo ----------------------------
can't read "section": no such variable
    while executing
"file exists $ND_PATH/bandir-${section}.cfg"
    (procedure "check_bandir" line 9)
    invoked from within
"check_bandir"
    invoked from within
"if { $ND_DISABLE(bandir) == 0 } {
	check_bandir
}"
    (file "..\scripts\newdir\OnPreMkd.itcl" line 74)
------------------------------------------------------------------
And the transfer hangs..

----EDIT---- got it to work... missed the case sensetive part

so forget that second part of this reply
my temp fix is add a line in my init.tcl:
Code:
# setup here your VFS sections (except hidden sections like PRE)
set ND_SECTIONS "bla1 bla2 bla3"
set sections "bla1 bla2 bla3"
and then the 3.1.0 works fine here.
stLancer_2 is offline   Reply With Quote
Old 11-19-2003, 03:57 AM   #145
bounty
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 529
Default newdir 3.1.1 out

here we go


DL link & changelog on 1st post like always

have fun
bounty
bounty is offline   Reply With Quote
Old 11-19-2003, 04:26 AM   #146
Zer0Racer
Senior Member
ioFTPD Scripter
 
Join Date: Oct 2002
Posts: 703
Default

And remember to restart ioFTPD after upgrading newdir (init.itcl). Changes in init.itcl are read at startup.
Zer0Racer is offline   Reply With Quote
Old 11-19-2003, 11:17 PM   #147
romracer
Junior Member
 
Join Date: Oct 2003
Posts: 25
Default

Oh nice work as always bounty. Much appreciated. I think I found one bug though. I modified the premkd to print out some debug info so I could figure out exactly what was going on.

Code:
[L] /
[L] */archive/*
The first one is the variable pwd the second is the values read from ND_NODUPECHECK. The problem being if I try to do MKD /archive/APPZ/Some.Program from within / I'll get an error saying the dir is duplicate. If I CD to archive first though it works fine. I think what should happen is the script should compare the dir you are trying to make against the variable ND_NODUPECHECK as opposed to pwd. But whether you compare against only the first dir or if you compare the whole MKD statement is another story. Hopefully this makes sense. You can find me on irc if not.

Edit: Also it seems I have to use
Code:
set ND_NODUPECHECK "archive"
for it to work properly with a pwd of /archive. If I set it to */archive/* like the example admin, it doesn't work.
romracer is offline   Reply With Quote
Old 11-20-2003, 07:15 PM   #148
bounty
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 529
Default newdir 3.2.0 out

here is a major update for newdir script

DL link & changelog on 1st post

have fun
bounty
bounty is offline   Reply With Quote
Old 11-22-2003, 02:18 PM   #149
ddeca
Member
ioFTPD Foundation User
 
Join Date: Aug 2003
Posts: 73
Default

Damn nice ... you are the best...

Now i got a suggestion for an update...

Dont know if it is possible but here goes...

In ioZ there is an option to ban genres from the server (we talking MP3 now )...

All it does is receving the file and check what genre and then deletes or send a warn to irc ..
This goes for all files in that release... so files are still beeing uploaded.. ( this is my main goal to stop)

What i want/need is when ioZ checked the first file and finds that it is in banned genre/group it announce it in ioftpd.log
and then i want NEWDIR to add that path (dir) in to a log file like bandir.log

and then on next pre "OnPreStor.itcl" it check if path is in bandir.log and if so it announce to ftp (as dupe announce)
that "This is a banned genre in this release" or something and then rejecting the rest of the files..

This way files that are banned dont take up any BandWidth
And make curring awhole lot easyier
I know get better currys.. its just i always looking for the best easiest and most functiunal way to sort problems..
and making it MORE FUN and EASY to do stuff...

Then if a dir in releasedir can be made that says banned GENRE going to be nuked within 20 min and 20 min later it renames the name to [Nuked]-releasenamedir that would RULE but not that importent..


//ddeca
ddeca is offline   Reply With Quote
Old 11-22-2003, 04:00 PM   #150
bounty
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 529
Default

hmm i'm sorry but i don't understand what are you looking about
bounty is offline   Reply With Quote
Reply

Tags
bounty, dupechecker, fun, link, m8s

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
GuildFTPd command set (import) Jesper Custom Commands 4 07-29-2011 12:41 AM


All times are GMT -5. The time now is 10:56 AM.

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