Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-10-2005, 07:01 AM   #1
vincenzo
Junior Member
 
Join Date: Jan 2005
Posts: 11
Question Uploaders don't get credits

Hi there,

I am running ioFTPD (latest version) on a server. The sitution that I am in is as like this:

People can download 1000MB a week for example. Therefore I have set the weekly quota to 1000MB, this works excellent.

However when people upload to the server they get additional credits. I don't want them to get these credits, because they are limited for a reason.

Now I have tried to set the ratio to 1:0 but that won't give the proper results. When someone has for example 5MB of credits left and wants to download a 100MB file then normally ioFTPD would report the user 'insufficient credits', however with this ratio put on the people can download anything they want.

I have searched all over the forums, and I could not find a thread with someone in the simillar situation. So I was wondering if someone could tell me how I make sure that this will work the way I want it to.

Maybe it's not possible at all, but I doubt that.

Thanks in advance.
vincenzo is offline   Reply With Quote
Old 10-11-2005, 12:48 PM   #2
vincenzo
Junior Member
 
Join Date: Jan 2005
Posts: 11
Default

No one with ideas?
vincenzo is offline   Reply With Quote
Old 10-11-2005, 01:20 PM   #3
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Don't give them the rights required to upload in the first place?
neoxed is offline   Reply With Quote
Old 10-11-2005, 02:29 PM   #4
_panic_
Senior Member
Ultimate Scripter
 
Join Date: Jul 2005
Posts: 153
Default

Quote:
Originally Posted by neoxed
Don't give them the rights required to upload in the first place?
i think vincenzo wants to permit uploading, but he doesn't want it to apply credit toward downloads.

i'm sorry vincenzo that i haven't had time to study the code to answer your question yet. this is an area of ioftpd that i haven't studied yet and i was hoping someone already knew the answer.

if you can confirm my interpretation above of what you are asking, i'll find some time in the next couple days to study the code and answer your question.
_panic_ is offline   Reply With Quote
Old 10-11-2005, 05:03 PM   #5
ADDiCT
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 517
Default

My idea would be: stick with the 1:1 ratio and use/write a script that, on the OnUploadComplete-event, deducts 'filesize' from his credits. (If i had any decent knowledge of TCL i'd write it myself)
ADDiCT is offline   Reply With Quote
Old 10-12-2005, 12:15 PM   #6
vincenzo
Junior Member
 
Join Date: Jan 2005
Posts: 11
Default

Quote:
Originally Posted by _panic_
i think vincenzo wants to permit uploading, but he doesn't want it to apply credit toward downloads.

i'm sorry vincenzo that i haven't had time to study the code to answer your question yet. this is an area of ioftpd that i haven't studied yet and i was hoping someone already knew the answer.

if you can confirm my interpretation above of what you are asking, i'll find some time in the next couple days to study the code and answer your question.
Exactly! This is what I want...

If you could code something for that, then that would be great!
vincenzo is offline   Reply With Quote
Old 10-12-2005, 12:20 PM   #7
vincenzo
Junior Member
 
Join Date: Jan 2005
Posts: 11
Default

Quote:
Originally Posted by ADDiCT
My idea would be: stick with the 1:1 ratio and use/write a script that, on the OnUploadComplete-event, deducts 'filesize' from his credits. (If i had any decent knowledge of TCL i'd write it myself)
That would do the trick... Unfortunatly I don't have any knowledge of TCL...
vincenzo is offline   Reply With Quote
Old 10-12-2005, 02:55 PM   #8
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

https://secure.inicom.net/portal/ind...product=ioFTPD
jeza is offline   Reply With Quote
Old 10-14-2005, 11:28 AM   #9
vincenzo
Junior Member
 
Join Date: Jan 2005
Posts: 11
Default

I don't have a registered version.

But a friend of mine has, and we have looked at the script and came to the conclusion that this is not it..

We are talking about this one right?

jCreditsKiller.itcl

Stupid thing is.. we couldn't find a descent description except for the one in the ictl file..

Mind you, he did not share this itcl with me, we looked at it on his machine.
vincenzo is offline   Reply With Quote
Old 10-14-2005, 07:52 PM   #10
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

This (that tcl) is what you want.

Config is:
userName:RATIO:SECTION

Example:
vincenzo:3:0

This will remove the credits you got when uploading a file in section 0 (anywhere on your server, unless you changed the default sections settings in ioFTPD.ini) in which you have a 1:3 ratio (again, 1:3 is the default ratio). That means you wouldn't get any credit for uploading files.
Mouton is offline   Reply With Quote
Old 10-15-2005, 09:23 AM   #11
vincenzo
Junior Member
 
Join Date: Jan 2005
Posts: 11
Default

Quote:
Originally Posted by Mouton
This (that tcl) is what you want.

Config is:
userName:RATIO:SECTION

Example:
vincenzo:3:0

This will remove the credits you got when uploading a file in section 0 (anywhere on your server, unless you changed the default sections settings in ioFTPD.ini) in which you have a 1:3 ratio (again, 1:3 is the default ratio). That means you wouldn't get any credit for uploading files.
Thanks for the explaination....

Guess I will have to register myself asap then. Thanks again for the input everyone!
vincenzo is offline   Reply With Quote
Old 10-15-2005, 09:44 AM   #12
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

Quote:
Originally Posted by vincenzo
Thanks for the explaination....

Guess I will have to register myself asap then. Thanks again for the input everyone!
Note: Foundation scripts are only available if you buy a Foundation license. A Standard io registration won't give you access to those scripts atm.
Mouton is offline   Reply With Quote
Reply

Tags
credits, download, people, server, upload

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

Forum Jump


All times are GMT -5. The time now is 05:42 AM.

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