Go Back   FlashFXP Forums > > > >

Harm's scripts ioBanana, Readd script, ioVote

Reply
 
Thread Tools Rating: Thread Rating: 10 votes, 3.40 average. Display Modes
Old 11-17-2003, 06:11 PM   #1
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default ioREADD v0.6

Some users asked for a readd script for ioFTPD, so here it is.

This is a first version and it's probably not as fast as it could be.
And it might (must ?) have some bugs or missing features.

Feel free to report bugs or wishes.


Usage:
======

Users are now automaticaly added to the readd database when
they are deleted.
Users that are already present in the readd database can't be
added using the 'SITE ADDUSER' and 'SITE GADDUSER'
commands.
Users with a '!' in their username can't be added (due to some
itcl issues with such usernames).
Users readded are logged to SysOp.log.

New site commands:
SITE READDS lists all users in the readd database.
SITE READD <user> readds the user.
SITE PURGE <user> remove the user from the readd database.
SITE SETDELMSG <user> <message> replaces the default message
displayed to deleted users when they login with this one for
this user.

Changelog:
==========
v0.6
Added a message for deleted users next time they login.
Added custom login messages for deleted users.
Merged all site commands scripts into one itcl file.
Fixed security issues.
Special thanks to b>d>>s and B0unty.

:banana:
Harm is offline   Reply With Quote
Old 11-17-2003, 06:48 PM   #2
MaistroX
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Jul 2002
Posts: 221
Thumbs up

Super nice !
MaistroX is offline   Reply With Quote
Old 11-17-2003, 07:11 PM   #3
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

Latest version is v0.6.

It is available to foundation members.
Harm is offline   Reply With Quote
Old 11-17-2003, 07:54 PM   #4
Pharaoh
Senior Member
ioFTPD Registered User
 
Join Date: Sep 2003
Posts: 117
Question

What does this script do mate?
Pharaoh is offline   Reply With Quote
Old 11-17-2003, 09:59 PM   #5
stLancer_2
Member
 
Join Date: Aug 2003
Posts: 58
Default

waiting for this script so long, thx verymuch, but i found a small bug, if you don't put an empty ReaddIdTable file in \etc, it will cause error... maybe need to add a line in your script to check the file is there.

Code:
if { ! [file exists etc/ReaddIdTable] } { set newid [open etc/ReaddIdTable a] ; close $newid }

stLancer_2 is offline   Reply With Quote
Old 11-18-2003, 03:57 AM   #6
-=DoBBeR=-
Senior Member
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 298
Default

harm u are the man =)) I'll try this script out as soon as I get back from univerity later 2day..
-=DoBBeR=- is offline   Reply With Quote
Old 11-18-2003, 10:50 AM   #7
-=DoBBeR=-
Senior Member
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 298
Default

5. Edit user/pass/port in readd.itcl carefully.
Note: the user needs the '1' flag.

hmm, cant find this in readd.tcl, and when I do site deluser testuser it connection just hangs, nothing happends..

edit: created the ReaddIdTable file, and now it works
-=DoBBeR=- is offline   Reply With Quote
Old 11-18-2003, 11:14 AM   #8
MaistroX
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Jul 2002
Posts: 221
Lightbulb

have same problem, tryed both with ffxp and with ioGui (should be same thing, both hangs.

from ioGui ->

16:56:02 > deluser xxxxx
16:56:16 > CID LISTBOT


then nothing.
MaistroX is offline   Reply With Quote
Old 11-18-2003, 12:20 PM   #9
-=DoBBeR=-
Senior Member
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 298
Default

try creating an empty ReaddIdTable in ..\etc
that made it work just fine here..
-=DoBBeR=- is offline   Reply With Quote
Old 11-18-2003, 12:55 PM   #10
MaistroX
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Jul 2002
Posts: 221
Question

Quote:
Originally posted by -=DoBBeR=-
try creating an empty ReaddIdTable in ..\etc
that made it work just fine here..
how u mean a dir or...?
MaistroX is offline   Reply With Quote
Old 11-18-2003, 01:51 PM   #11
-=DoBBeR=-
Senior Member
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 298
Default

a file =)
-=DoBBeR=- is offline   Reply With Quote
Old 11-18-2003, 02:44 PM   #12
MaistroX
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Jul 2002
Posts: 221
Thumbs up

Worked like a charm, THX!

=



20:43:17 > deluser *****
20:43:17 200-User successfully added to the readd database.
20:43:17 200 User '*****' successfully deleted.
MaistroX is offline   Reply With Quote
Old 11-25-2003, 06:49 PM   #13
-=DoBBeR=-
Senior Member
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 298
Default

11-26-2003 00:00:29 "..\scripts\readd\reset.itcl" terminated abnormally
--------------------------- ErrorInfo ----------------------------
extra characters after close-brace
while compiling
"if {[string match "*monthdn*" "$lined"]"
("while" body line 6)
while compiling
"while {![eof $infile]} {
gets $infile lined
if {![string match "*monthdn*" "$lined"]} {
puts $outfile "$lined"
}
if {[string mat..."
("if" then script line 4)
while compiling
"if {[string equal "month" [l

I get that crap in a file called SystemError.log, and it does the same thing every night.
-=DoBBeR=- is offline   Reply With Quote
Old 11-26-2003, 01:05 AM   #14
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

I noticed that yesterday and i'm currently testing the fix.
I'll most probably update it this afternoon or tomorrow.
Harm is offline   Reply With Quote
Old 11-29-2003, 03:48 AM   #15
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

This bug and one other related to non existant users are fixed in v0.4.
Harm is offline   Reply With Quote
Reply

Tags
added, database, readd, site, users

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
Download grinding to a halt bruceh General Discussion 6 09-07-2004 08:29 AM


All times are GMT -5. The time now is 10:16 AM.

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