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 02-16-2004, 03:38 PM   #1
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default [REQ]- user was last online!!!

with siterings its harder to keep up with some users.. so i wonder if its possible to make a script that shows user inactivity...

Example:

site inactivity all

user1 was last online 4 weeks ago
user2 was last online 1 week ago
user3 was last online 5 weeks ago


something like that...



thanx in advance
rAWfOX is offline   Reply With Quote
Old 02-16-2004, 04:18 PM   #2
ferran
Member
FlashFXP Registered User
ioFTPD Foundation User
 
Join Date: Jul 2003
Posts: 54
Thumbs up yes

that would be a great script yeah...
ferran is offline   Reply With Quote
Old 02-16-2004, 05:45 PM   #3
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

isn't that kinda what quota scripts are used for ? remove users who aren't active ..?
Mouton is offline   Reply With Quote
Old 02-17-2004, 01:22 AM   #4
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default

Quote:
Originally posted by Mouton
isn't that kinda what quota scripts are used for ? remove users who aren't active ..?
well yeah but some sites dosnt use quota
rAWfOX is offline   Reply With Quote
Old 02-17-2004, 02:16 AM   #5
thewarden
Senior Member
 
Join Date: Jan 2003
Posts: 194
Default

Not all sites run quota or delete people for the various reasons many other sites do.

That item would be a nice addition for some SysOps who simply want to know when a person was last on...

Yes - you could view the date stamps...

But a list would be nice.
thewarden is offline   Reply With Quote
Old 02-17-2004, 06:20 AM   #6
_rage_ thegod
Member
 
Join Date: Jan 2004
Posts: 40
Default

yep, would be a usefull script. i do use quota on my sites, but still, this'd be quite interesting to see when people have been last online.
_rage_ thegod is offline   Reply With Quote
Old 02-17-2004, 12:32 PM   #7
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

a pretty simple itcl OnFtpLogin would do it.
open somefile.dat, search for username in it, if found, change timestamp following username, if not found, add new line <username> <timestamp> at the end of file...
same for query... except display timestamp...
Mouton is offline   Reply With Quote
Old 02-17-2004, 03:59 PM   #8
St0rm
Disabled
 
Join Date: Nov 2003
Posts: 105
Default

Quote:
[R] site activity all
[R] 200- ioFTPD was last seen at 02-17-2004
[R] 200- storm was last seen at 02-17-2004
Working on it, almost finished. Will post it when I'm done.
St0rm is offline   Reply With Quote
Old 02-17-2004, 04:47 PM   #9
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

i hope u don't work on sysop.log...
ppl have a tendency to erase their .log for no apparent reason and then asking why this or that doesn't work anymore, and "they have done nothing"!
Mouton is offline   Reply With Quote
Old 02-17-2004, 04:50 PM   #10
St0rm
Disabled
 
Join Date: Nov 2003
Posts: 105
Default

I'm using a seperate log for the script. Easier to parse and won't be big anyway (max number of lines would be the number of users on the site).
St0rm is offline   Reply With Quote
Old 02-17-2004, 05:35 PM   #11
St0rm
Disabled
 
Join Date: Nov 2003
Posts: 105
Default

Done. See http://www.ioftpd.com/board/showthre...&threadid=2680

Enjoy.
St0rm is offline   Reply With Quote
Reply

Tags
ago, inactivity, online, user, weeks

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
Flash hangs during transfers slatts General Discussion 5 01-14-2005 07:50 PM


All times are GMT -5. The time now is 11:09 PM.

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