PDA

View Full Version : want to make a script but need


McOwnage
31-03-2006, 08:14
the variables ie $banuser = ban user $kickuser = kickuser $password = password ect... does anyone have this info

also i looked for an irc script/bot I would Like one that can log the ip of people that join (registered and unregisterd) is there one? or what are the variables to log this I do not want to have to look up the server logs every time i want to see peoples ip or better yet is there a program that I can just log in and it will get the server logs then edit out everthing but usernames/ip

Cyrus
31-03-2006, 16:31
the variables ie $banuser = ban user $kickuser = kickuser $password = password ect... does anyone have this info
But you do know how "programming" is spelled?

McOwnage
31-03-2006, 20:38
But you do know how "programming" is spelled?


Well excuse me for making a mistake. I am sorry I offended a person that needs to point out other peoples mistakes to make themselfs feel good.

Brain
31-03-2006, 20:52
I think what DarkCyrus was insinuating is that you might want to catch up on some documentation, perhaps even an introductory book to PHP or Perl.

McOwnage
01-04-2006, 00:01
I think what DarkCyrus was insinuating is that you might want to catch up on some documentation, perhaps even an introductory book to PHP or Perl.

well maybe he should have said that intead of trying to belittle me

Brain
01-04-2006, 04:11
Trying to belittle someone as debonair as yourself is futile.

Nicoleise
04-04-2006, 21:02
Just to add a touch of constructiveness to this thread.

You asked about the posibilities to log peoples IP adresses, etc. That's easilier done via the server.ini file.

You change :
[log]
access_r=0
access_u=0
channel_registerred=0
channel_unregisterred=0
sa=0
chat=0
kick_server=0
kick_channel=0


You simply remove the 0 and put a 1 in it's place. 1 means that TS will log these events, 0 means it wont.

What they mean :
access_r = log when registrered members to the server joins/leaves the server
access_c = log when unregistrered guests joins/leaves the server
channel_registrered = logs when registrered members changes channels
channel_unregistrered = logs when unregistrered guests changes channels
sa = logs the actions performed by any serveradmin on the server, E.G. making a channel
chat = logs all written communication on the server.
kick_server = logs when people get kicked from the server
kick_channel = logs when people get kicked from a channel



The logs will be found in the server.log file. Here is an example of a typical log, so you can see, if it's something you wanna have or not.


03-04-06 22:08:25,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xx.xxx.xxx, Nick: xxxxxxxxxxxxxx, Version: 2.0.32.60]
03-04-06 22:08:34,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: xxxxxxxxxxxxxx]
03-04-06 22:08:38,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xx.xxx.xxx, Nick: xxxxxxxxxxxxxx, LoginName: xxxxx, DBID: x, Version: 2.0.32.60]
03-04-06 22:10:16,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: xxxxxxxxxxxxxx, LoginName: xxxxx, DBID: x]
03-04-06 22:13:09,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xx.xxx.xxx, Nick: xxxxxxxxxxxxxx, LoginName: xxxxx, DBID: x, Version: 2.0.32.60]
03-04-06 22:46:30,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: xxxxxxxxxxxxxx, LoginName: xxxxx, DBID: x]
03-04-06 22:49:59,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xx.xxx.xxx, Nick: xxxxxxxxxxxxxx, LoginName: xxxxx, DBID: x, Version: 2.0.32.60]
03-04-06 22:50:57,ALL,Info,ChatLog, SID: 1 [to channel: xxxxx Lobby, from xxxxxxxxxxxxxx] YOU THERE?
04-04-06 00:26:59,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xxx.xxx.xxx, Nick: xxxxxxxxxx, LoginName: xxxxxx, DBID: x, Version: 2.0.32.60]
04-04-06 03:44:48,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: xxxxxxxxxx, LoginName: xxxxxx, DBID: x]
04-04-06 03:45:26,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xxx.xxx.xxx, Nick: xxxxxxxxxx, LoginName: xxxxxx, DBID: x, Version: 2.0.32.60]
04-04-06 04:00:31,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: xxxxxxxxxxxxxx, LoginName: xxxxx, DBID: x]
04-04-06 04:07:23,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xx.xxx.xxx, Nick: xxxxxxxxxxxxxx, LoginName: xxxxx, DBID: x, Version: 2.0.32.60]
04-04-06 04:27:31,ALL,Info,ChatLog, SID: 1 [to channel: AA - BridgeCrossing - Assault, from xxxxxxxxxx] who is the gayest guy in this channel... first one to talk is the gayest mofo i ever known!!!!!!!!!!!!!!!!!!
04-04-06 04:29:23,ALL,Info,ServerKickLog, SID: 1 [PlayerName: xxxxxxxxxx, LoginName: xxxxxx, DBID: x] got kicked from server by [PlayerName: xxxxxxxxxxxxxxxx, LoginName: xxxxxxx, DBID: x], reason: Now... Log back on with your real name, I gave you an account just for that, homo.
04-04-06 04:29:24,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: xxxxxxxxxx, LoginName: xxxxxx, DBID: x]
04-04-06 04:29:36,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xxx.xxx.xxx, Nick: xxxxxxxxxx, LoginName: xxxxxx, DBID: x, Version: 2.0.32.60]
04-04-06 04:29:46,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: xxx xxxxxx, LoginName: xxxxxx, DBID: x]
04-04-06 04:29:55,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xxx.xxx.xxx, Nick: xxxxxxxxxxxxxxx, LoginName: xxxxxx, DBID: x, Version: 2.0.32.60]
04-04-06 04:32:07,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: xxxxxxxxxxxxxxx, LoginName: xxxxxx, DBID: x]
04-04-06 04:32:32,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xxx.xxx.xxx, Nick: x xxxx xxxxxx, LoginName: xxxxxx, DBID: x, Version: 2.0.32.60]
04-04-06 04:35:42,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: x xxxx xxxxxx, LoginName: xxxxxx, DBID: x]
04-04-06 04:36:00,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xxx.xxx.xxx, Nick: xxxxxx xxxx, LoginName: xxxxxx, DBID: x, Version: 2.0.32.60]
04-04-06 04:36:53,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: xxxxxx xxxx, LoginName: xxxxxx, DBID: x]
04-04-06 04:37:06,ALL,Info,AccessLog, SID: 1 client connected [IP: xx.xxx.xxx.xxx, Nick: xxxxxxxxxxxxxxx, LoginName: xxxxxx, DBID: x, Version: 2.0.32.60]
04-04-06 04:45:18,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: xxxxxxxxxxxxxx, LoginName: xxxxx, DBID: x]
04-04-06 05:03:57,ALL,Info,AccessLog, SID: 1 client disconnected. [Nick: xxxxxxxxxxxxxxx, LoginName: xxxxxx, DBID: x]


I know that might seem like excessive repitation, but that's part of the point. That is a log from a timespan of 7 hours, with nothing excluded, and all logging options enabled. So as you can tell, you get a whole lot of info, that you already know, or doesn't care about.

But it's handy in you need to ban someone that visited while you weren't there.

You text file grows pretty massive over time, but of course, you could delete a huge selection every once in a while.

But it's an oppurtunity for you to log traffic. It requires that you have access (both read and write) to the Server.ini file, and read access (and write, if you want to delete some of it sometimes) to the server.log file.

(Just for the record, the things we say to eachother are meant as joking, and none of us are offended by it. If you are - please keep in mind that it was said in a private forum, and is only published for illustrative purposes, as I see no reason to censore a text.

All usernames, loginnames, passwords, IP adresses, etc has been censored with the character x...