![]() |
|
|
#1 |
|
Архивный участник
Join Date: Dec 2005
Posts: 242
|
Well, I'm around here.. and the ppl who know me know that i'm on antibot dev, but this time come here with a nice mod. For example I'm a simple user that I play on your server, I log on and my player is clean. When I logged in, I re-writed last_ip login, so will be more difficult find a responsable.
This mod what it did is save the last login before me. + Add column last_ip_old to user_account + Modify Procedure from lin2db called ap_SLog Code:
set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ALTER PROCEDURE [dbo].[ap_SLog] @uid int, @lastlogin datetime, @lastlogout datetime, @LastGame int, @LastWorld tinyint, @LastIP varchar(15) AS Declare @LastAddr varchar(15) SELECT @LastAddr=last_ip FROM user_account WHERE uid=@uid UPDATE user_account SET last_login = @lastlogin, last_logout=@lastlogout, last_world=@lastWorld, last_game=@lastGame, last_ip=@lastIP,last_ip_old=@LastAddr WHERE uid=@uid Pd: if u need help (maybe someone yes) take messenger. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Apr 2005
Posts: 75
|
nice share
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Jul 2006
Posts: 119
|
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Jun 2006
Posts: 38
|
Good, i needed something like this. Thanks m8
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Jun 2006
Posts: 126
|
Thnks for share is usefull.
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Umm, look at this -> https://postpacific.loc-online.com/f...ead.php?t=6241
Thats a better system, you have a history of all login and last_ip |
|
|
|
|
#7 |
|
Архивный участник
Join Date: Aug 2005
Posts: 394
|
Yea i was about to say the same. It's been shared before but the idea is very awesome. I solved alot of e-mail scam problems with this.
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|