Go Back   FlashFXP Forums > > > >

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-18-2003, 05:41 PM   #1
oldhouse80
Member
ioFTPD Foundation User
 
Join Date: May 2003
Posts: 37
Lightbulb idea for new lovely itcl script

Hi. i begin saying that i don't know anything about itcl scripting but i hope someone of u can code a script like this, that i have found on a site that i visited.
Here i'm going to explain:
i tried to download a file that was just upped and i got this message

500- - Please try again later Mr Leecher!
500- - Files which are on the server less then 5 minutes
500- -Are not allowed to be downloaded.

I was wondering if u can code a script like this, maybe allowing 2 options:
1) download forbidden for each file with a time limit set by the user.
2) download forbidden untill release is completed.

What do u think of it? I already suggested this in irc and it seems really appreciated, but maybe that not all coders were there to begin working :P
oldhouse80 is offline   Reply With Quote
Old 11-18-2003, 05:44 PM   #2
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

This could be easily coded in TCL but specific for each ZS (For the complete part).

But my question is, why?

Is there any good reason for this script?
neoxed is offline   Reply With Quote
Old 11-18-2003, 05:50 PM   #3
oldhouse80
Member
ioFTPD Foundation User
 
Join Date: May 2003
Posts: 37
Default

Basically to prevent traders from taking useful bw during races.
I can't deluser all of them :P
oldhouse80 is offline   Reply With Quote
Old 11-18-2003, 05:52 PM   #4
-=DoBBeR=-
Senior Member
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 298
Default

Quote:
Originally posted by oldhouse
Basically to prevent traders from taking useful bw during races.
I can't deluser all of them :P
why not?
-=DoBBeR=- is offline   Reply With Quote
Old 11-18-2003, 05:52 PM   #5
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Quote:
Originally posted by NeoXed
This could be easily coded in TCL but specific for each ZS (For the complete part).

But my question is, why?

Is there any good reason for this script?
Compare directory modification time in incoming directories, against the timelimit.
darkone is offline   Reply With Quote
Old 11-18-2003, 06:09 PM   #6
b>d>>s
Senior Member
 
Join Date: Feb 2003
Posts: 488
Default

yeh, just put on [pre] RETR if {[file ...blah age is less than five]} {global ioerror ; set ioerror 2 ; return}


somit like that anyway :/
b>d>>s is offline   Reply With Quote
Old 11-18-2003, 06:55 PM   #7
noob
Junior Member
 
Join Date: Nov 2003
Posts: 25
Default

yes, such a script would be very useful
noob is offline   Reply With Quote
Old 11-19-2003, 02:42 AM   #8
MaistroX
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Jul 2002
Posts: 221
Smile

a script like that could be very usefull
MaistroX is offline   Reply With Quote
Old 01-31-2004, 08:49 PM   #9
oldhouse80
Member
ioFTPD Foundation User
 
Join Date: May 2003
Posts: 37
Default

Now that requests section is open maybe someone could plz work on this?
Thx in advance if u spend some time on this
oldhouse80 is offline   Reply With Quote
Old 01-31-2004, 10:47 PM   #10
cez
Junior Member
 
Join Date: Jan 2003
Posts: 29
Default

Think this should work for ya. Blocks file for x seconds after upload.
Attached Files
File Type: zip dldn-v01.zip (584 Bytes, 34 views)
cez is offline   Reply With Quote
Old 01-31-2004, 11:12 PM   #11
SomeoneWhoCares_2
Member
 
Join Date: Sep 2002
Posts: 87
Default

SomeoneWhoCares_2 is offline   Reply With Quote
Old 02-01-2004, 01:39 AM   #12
SomeoneWhoCares_2
Member
 
Join Date: Sep 2002
Posts: 87
Default

# minumum age (in minutes) a file must have before a user with ratio 0 can download it
set antileech(minage) "60"
# activate this feature
set antileech(ageON) "1"

# complete tag
set antileech(dirtag) "* COMPLET*"
# deny leech users from leeching incomplete releases
set antileech(compON) "1"

# no checks on these dirs
set antileech(****off) {
"Codec"
"Covers"
"Subs"
"Sample"
"Subpack"
"Subtitle"
"VobSubs"
"EXTRAS"
}

# no checks for these file types
set antileech(yesucan) ".nfo .m3u .sfv .txt .jpg .mpg .mpeg .avi"

[FTP_Pre-Command_Events]
retr = TCL ..\scripts\idonthinkso.itcl
SomeoneWhoCares_2 is offline   Reply With Quote
Old 02-01-2004, 06:01 AM   #13
typhon|wk
Member
 
Join Date: Nov 2003
Posts: 55
Default

# minumum age (in minutes) a file must have before a user with ratio 0 can download it
set antileech(minage) "60"
# activate this feature
set antileech(ageON) "1"

great, but is better include a check on groups too

all siteops are on ratio 0

thx
typhon|wk is offline   Reply With Quote
Old 02-01-2004, 11:40 AM   #14
SomeoneWhoCares_2
Member
 
Join Date: Sep 2002
Posts: 87
Default

yaya. thought about exempt flags only after i posted it.. here is the version u want..

Attached Files
File Type: zip idonthinkso.v0.2.zip (1.1 KB, 53 views)
SomeoneWhoCares_2 is offline   Reply With Quote
Old 02-01-2004, 04:54 PM   #15
typhon|wk
Member
 
Join Date: Nov 2003
Posts: 55
Default

Nice thx
typhon|wk is offline   Reply With Quote
Reply

Tags
500-, download, forbidden, itcl, script

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


All times are GMT -5. The time now is 06:43 AM.

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