View Full Version : 'site showlog' addon
mr_F_2
03-07-2004, 11:54 PM
Parses through xferlog to display last ## downloads (or uploads) by (a user or all users) .
the included readme.txt fully explains the script. i attached the file so you don't have to DL the script, but i recommend reading the readme (for examples of script output) if you are at all interested in displaying the xferlog.
i didn't write this script for the public, i wrote it for my site... if you don't see the use or don't like it then that's fine with me...I'm just making it available because somebody might want it.
find it in the scripts section (www.ioftpd.com/scripts)
karmacoma
03-08-2004, 02:44 AM
Nice little script mr_F, i like it a lot!
:p
Zer0Racer
03-08-2004, 07:32 AM
Nice script. Although it crashes and shows 550 Command failed. when I try 'site showlog all' or 'site showlog all 20' or whatever.
And one more thing.. please remove all 'real' release names from the readme.txt.
yep indeed a nice script, good work.
Would be nice if it shows some message if script doesnt find anything on the user in xferlog.
instead of this message...
site showlog ioFTPD
200 Command successful.
mr_F_2
03-08-2004, 11:16 AM
Originally posted by Zer0Racer
Nice script. Although it crashes and shows 550 Command failed. when I try 'site showlog all' or 'site showlog all 20' or whatever.
And one more thing.. please remove all 'real' release names from the readme.txt.
it shouldn't. maybe you put it in the wrong folder? or if you have GCC or MSDEV C++ you can adjust BUFFER to be 2000 or so, maybe 2500 even
readme = cleaned up
odd::: i updated script, added that for you
Dunno what im doing wrong but this script crash when I list downloads from myself. But I can list uploads.
btw I cant list myself(downloads) but everyone else works fine. In other words I can list the other users without the script crashing.
useing cmd:
site showlog username 10
and
site showlog username down
both these commands makes the exe crash. And showing a windows error message.
Cant give u much more info :-/
Dunno if its gona help u anything but just ask if u need me to test something.
mr_F_2
03-22-2004, 07:13 PM
hmm
first off, "down" isn't a valid direction, either "up" or leave direction blank (blank defaults to list downloads).
in trying what you tried i get:
[18:11:03] site showlog testusr 10
[18:11:03] 200-[ 1] testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200-[ 2] testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200-[ 3] testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200 Command successful.
I've probably changed some things since the version you have though. I'll update it on the scripts page and you can try that version, if it still don't work send me your xferlog to nyarr@myrealbox.com
I erased the xferlog and since then Showlog has been working fine. No crash on Master..
Another suggestion that would give some better overview would be to add date/time.
[18:11:03] site showlog testusr 10
[18:11:03] 200-[ 1](04-03/12 17:11:01) testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200-[ 2](04-03/12 17:10:01) testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200-[ 3](04-03/12 17:09:01) testusr DOg_BAnd-MP3-(Promo)-2004-FNT/00-DOg_BAnd-mp3-(promo)-2004-fnt.nfo
[18:11:03] 200 Command successful.
Something like this.
mr_F_2
04-19-2004, 08:22 PM
added: list last ## releases a user has downlaoded
new release mode syntax:
site showlog username -r
or
site showlog username # -r
note: site showlog all -r doesn't work
example:
[L] site showlog mr_F -r
[L] 200-[ 1] mr_F latest_release_downlaoded
[L] 200-[ 2] mr_F xx
[L] 200-[ 3] mr_F oo
[L] 200-[ 4] mr_F yy
[L] 200-[ 5] mr_F zz
[L] 200-[ 6] mr_F relase6.com
[L] 200-[ 7] mr_F wwdie.de.edja-FLT
[L] 200-[ 8] mr_F Az-nR
[L] 200-[ 9] mr_F AYOA-VFA
[L] 200-[10] mr_F oldest_of_10_releases_downloaded
[L] 200 Command successful.
as usual, source code is incldued. get it at the iOFTPD scripts page..
EwarWoo
04-20-2004, 02:48 AM
Nic einteresting little script, cheers for sharing it :D
karmacoma
04-20-2004, 09:20 AM
Very nice update to your script! It works perfectly here.:cool:
Thanks a lot!
Hi mr_F
Your script is truly amazing!
One thing atm I miss about it.
I wonder if it could list all uploads directory's also, just like it can list downloaded directory's (site showlog user 20 -r)
Is this maybe possible or maybe something comming up?
mr_F_2
05-21-2004, 01:06 PM
i'm in BC right now planting trees, i'll add that when i get home in september.
thunk
12-08-2004, 04:43 PM
suddenly getting:
[R] site showlog 50
[R] 550 Command failed.
command failed also with other command line options.
haven't changed anything in config whatsoever.
what can be the reason?
thanks.
mr_F_2
12-08-2004, 05:56 PM
site showlog 50 shouldn't work
unless you have a user named '50'
syntax is 'site showlog <user> #'
ie:
site showlog root 50
site showlog all 50
site showlog root -r
site showlog root 50 -r
etc etc
thunk
12-09-2004, 06:34 AM
yeah ok, i used bad example, but its failing on everything
[R] site showlog all 20
[R] 550 Command failed.
site showlog <user>
command failed
etc
mr_F_2
12-09-2004, 01:37 PM
hmmm
well I can't really tell without your xferlog. But you sending me your xferlog is probably something you don't want to do. But if you do I won't look at anything in it and will only test the application to find out where it's failing.
your call
if you wanna send it PM me
mr_F_2
01-10-2005, 09:06 PM
Wow.. this app just got sexxier
i don't know why i decided to update it, well, i do, i crashed it :( then i figured out how i crashed it :) then when fixing the crash i made it better :)
here's what i did:
fixed: bug where user downloaed file from root causing crash
added: support for some commands (see below)
changed: method of filling the stack
what's really the cool part is you can now do these commands:
site showlog all -r
and
site showlog all -r up
and
site showlog all ## -r
and
site showlog all ## -r up
to list the last (default number) or ## releases downloaded off server by ANY user
along with the previously available commands:
site showlog
site showlog username
site showlog username ##
site showlog username ## up
site showlog all
site showlog all ##
site showlog all ## up
hope you enjoy it , grab it off the scripts page
karmacoma
01-11-2005, 10:15 AM
Nice update! Thanks a lot!
I got some strange thing with my showlog. When 2 ppl download the same thing only 1 of them will show up in site showlog all -r
[13:54:56] [R] site showlog all -r
[13:54:57] [R] 200-[ 1] user__1 Release1
[13:54:57] [R] 200-[ 2] user-2 Release-2
[13:54:57] [R] 200-[ 3] user-2 Release-3
[13:54:57] [R] 200-[ 4] user__1 Release4
[13:54:57] [R] 200-[ 5] user__1 Release5
[13:54:57] [R] 200-[ 6] user__1 Release6
[13:54:57] [R] 200-[ 7] user33 Release7
[13:54:53] [R] site showlog user-2 -r
[13:54:53] [R] 200-[ 1] user-2 Release-2
[13:54:53] [R] 200-[ 2] user-2 Release-3
[13:54:55] [R] site showlog user__1 -r
[13:54:55] [R] 200-[ 1] user__1 Release1
[13:54:55] [R] 200-[ 2] user__1 Release-2
[13:54:55] [R] 200-[ 3] user__1 Release-3
[13:54:55] [R] 200-[ 4] user__1 Release4
[13:54:55] [R] 200-[ 5] user__1 Release5
[13:54:55] [R] 200-[ 6] user__1 Release6
Today both user__1 and user-2 has downloaded Release-2 and Release-3. So now if I type Site showlog log all -r it would show me that both users has downloaded these releases (underlined). But it doesnt. Check the log abow, it only shows that one of these two users has downloaded them.
Ive checked in the xferlog and this is how showlog should look like following:
[13:54:56] [R] site showlog all -r
[13:54:57] [R] 200-[ 1] user__1 Release1
[xx:xx:xx] [R] 200-[ 1] user__1 Release-3
[xx:xx:xx] [R] 200-[ 1] user__1 Release-2
[13:54:57] [R] 200-[ 2] user-2 Release-2
[13:54:57] [R] 200-[ 3] user-2 Release-3
[13:54:57] [R] 200-[ 4] user__1 Release4
[13:54:57] [R] 200-[ 5] user__1 Release5
[13:54:57] [R] 200-[ 6] user__1 Release6
[13:54:57] [R] 200-[ 7] user33 Release7
Hope you do understand what Iam trying to explain. Great script anyway.
btw this is not the first time it has happend.
mr_F_2
04-28-2005, 02:55 PM
thanks odd, i will take a look at it. i have noticed this discrepency several times but forgot shortly after what it was. if i have time i will try to fix it in the next few days but there is a good chance i can't get it done by saturday, which because of my job, means i won't be able to fix it until september. hopefully i find a few minutes then...
mr_F_2
04-28-2005, 05:39 PM
updated, see script page (http://www.ioftpd.com/scripts/script.php?id=71)
Thanks for such a fast update. And it also works :p
wow 9 more releases showed up now that wasnt in there before. Nicely done
inside
04-29-2005, 10:49 PM
good nice update to your script ...
Thx :)
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.