Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-29-2006, 03:23 AM   #31
Elladan
Junior Member
FlashFXP Beta Tester
ioFTPD Foundation User
 
Join Date: Jul 2005
Posts: 21
Default

I'm missing "incomplete" symlinks in root dir and I'd also like to have "latest" symlinks configurable per section.. (like 5 latest symlinks for mp3 and 3 symlinks for movies)

... and yeah. %speed in halfway would be nice
Elladan is offline   Reply With Quote
Old 08-30-2006, 09:51 AM   #32
LordM
Senior Member
ioFTPD Foundation User
 
LordM's Avatar
 
Join Date: Jul 2005
Location: Germany
Posts: 138
Default

And it would be nice, if the rules system could be described a lil bit. I don't know if it is a lot to write, but I am sure someone would write it, if he knew, how for example rules.cfg has to look like.

At least I would do it, if you tell me, how it works harm
__________________
I'm using:

ioFTPD 7.7.2
ioNiNJA BETA Stable v0.8.9.6
LordM is offline   Reply With Quote
Old 09-19-2006, 11:53 AM   #33
helenoksen
Member
ioFTPD Foundation User
 
Join Date: Oct 2005
Posts: 75
Default

Quote:
Originally Posted by Harm
4) STATS per section
It will probably be in the next version (unless it comes with the next ioFTPD). It's amazing nobody has requested this before as it has always been like that.
Note that SITE USER username gives stats per section already.
how's it going with this? any progress? still waiting for ioftpd 1.0?

also i got a question regarding an older version of iob and i was hoping you would have an answer harm. It's like this:

this if from iobanana.tcl:

# Stats sections (for trial/quota and such)
set ioBvar(sections) "0"

this was never implemented right? like you said in a previous post?

im referring to this piece of code:
HTML Code:
"quota123" {
			set user [lindex $args 1]
			putlog "$ioBvar(sections)"
			set status [catch {set ee [::ftp::Quote $ioBvar(ftp) SITE BSTATS MONTHUP USER $user 1 "\"$ioBvar(sections)\""]} result]
"\"$ioBvar(sections)\"" doesnt seem to have any effect. I tried running some combinations of the site bstats cmd in my ftp client and it doesnt seem to work.

for instance if i want to count the quota for a user in ONLY section DEFAULT (0) and not the other sections, eg REQUEST (8), SPEED (7). site bstats monthup user someuser 1 "0" gives me the monthup stat for that user but for all sections, incl speed + request. It should give me the stats for ONLY that section (0).

HTML Code:
site bstats monthup user someuser 1 "0"
200-1;someuser;TRiAL;2487
So my question is, is this not implemented in ioBanana yet? is it just there, in the tcl file, for future use or what? And i presume its the same thing with ioBv2?

example from ioftpd.ini:
HTML Code:
[Sections]
REQUEST					= 0 8 /REQUEST/*
SPEED					= 0 7 /SPEED/*
DEFAULT					= 0 0 *
iosharedb
io 5.8.5r
iobananav20

Thanks,

helenoksen
helenoksen is offline   Reply With Quote
Old 10-03-2006, 11:06 AM   #34
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

helenoksen: That's right, there were a few issues with the per sections stats in ioBanana v20.

Correct me if I'm wrong but it's actually working when you're using ioB2.
Harm is offline   Reply With Quote
Old 10-03-2006, 04:34 PM   #35
helenoksen
Member
ioFTPD Foundation User
 
Join Date: Oct 2005
Posts: 75
Default

hello harm and thanks for the reply. The problem with ioB2 is the quota command !quota:

HTML Code:
proc ioB:mnquota {nick uhost hand chan args} {
global ioBlog ioBmsg ioBquota ioBtrial ioBvar
if {$ioBvar(silent)} {return}
ioB:hidden $chan
set args [split [ioB:filter [join $args]]]
set ee ""; set ioBvar(ftperror) ""
switch [lindex $args 0] {
	"quota" {
		set name [lindex $args 1]
		set status [catch {set ee [::ftp::Quote $ioBvar(ftp) SITE BSTATS USER MONTHUP 200 "\"$ioBvar(sections)\""]} result]
in the older version of iob, which looks like this:

HTML Code:
"quota123" {
			set user [lindex $args 1]
			set status [catch {set ee [::ftp::Quote $ioBvar(ftp) SITE BSTATS MONTHUP USER $user 1 "\"$ioBvar(sections)\""]} result]
iob only retrieves ONE user for this command. In ioB2 however, the script fetches 200 (!!) users, just to be able to get the stats of ONE user. Isnt that a waste of resources? I've tested this with iosharedb some time ago (via ftp raw cmds (SITE BSTATS USER MONTHUP 200 etc)) and it takes way too long to show the stats.

i got three questions:

1. can u make a small update for ioBananav20 with that section stuff i talked about in my ealier post?

2. what is the reason you chose to change it to 200 intead 1? Im just curious

3. is anyone else experiencing this with iosharedb and ioB2?

thanks,

h
helenoksen is offline   Reply With Quote
Old 10-05-2006, 02:35 PM   #36
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

1. No, I won't (and can't) update ioBanana v20

2. This is because you cannot specify an username to SITE BSTATS yet. I'm well aware that the stats (as well as the raceinfo files) are the functions that have the more room for improvement in ioB2.

3. There are 2 ways to fix this issue:
- request the stats directly from the database. This would break the whole purpose of the user module and is everything but portable.
- wait for the documentation of the module interface and create a working shared db module (this can take some time).
Harm is offline   Reply With Quote
Old 11-26-2006, 04:00 PM   #37
LordM
Senior Member
ioFTPD Foundation User
 
LordM's Avatar
 
Join Date: Jul 2005
Location: Germany
Posts: 138
Default

I came up to a feature, that doesn't work. Request from IRC (as a trusted user) just makes my windrop use up to 100% CPU and nothing else. No reply, no debug.

Special info: harm: that also occours with ioB2 R2beta1

Fixxed with help of harm in next version
________________________________________--

On some MP3 files, ioB2 doesn't put out the bitrate on announcement of receiving mp3. I looked into banana-info and it gave me that:

SITE SHOWBANANA
[...]
G:/ftp/mp3/another_bad-mp3_file.mp3 is corrupt or is not a standard MP3 file.
[...]

But the file(it takes the first one uploaded), is 192kBps cbr.
__________________
I'm using:

ioFTPD 7.7.2
ioNiNJA BETA Stable v0.8.9.6

Last edited by LordM; 01-25-2007 at 03:59 AM.
LordM is offline   Reply With Quote
Old 02-25-2007, 07:31 PM   #38
panzerfaust
Senior Member
ioFTPD Foundation User
 
Join Date: Jun 2003
Posts: 112
Default

please fix the announce of imdb, since they have changed the layout quite a bit. thank you in advance.


when i am down to requesting things, i might as well request support for the new preset -V2 etc, ioB doesnt seem to handle this very good, can u perhaps look into that as well harm?
panzerfaust is offline   Reply With Quote
Reply

Tags
double, force, multiple, trial, 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 Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:26 PM.

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