Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 01.04.2007, 08:00   #1
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default [SHARE] Secure User Accounts

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
Hope to be usefull. GL

Pd: if u need help (maybe someone yes) take messenger.
RipperX is offline  
Old 01.04.2007, 08:11   #2
archonus
Архивный участник
 
Join Date: Apr 2005
Posts: 75
Default

nice share
archonus is offline  
Old 01.04.2007, 08:55   #3
Xari0n
Архивный участник
 
Join Date: Jul 2006
Posts: 119
Default

Quote:
Originally Posted by RipperX View Post
Well, I'm around here...
Thnx bro. in test
Xari0n is offline  
Old 01.04.2007, 12:36   #4
djnouri
Архивный участник
 
Join Date: Jun 2006
Posts: 38
Default

Good, i needed something like this. Thanks m8
djnouri is offline  
Old 01.04.2007, 12:49   #5
seraphii
Архивный участник
 
Join Date: Jun 2006
Posts: 126
Default

Thnks for share is usefull.
seraphii is offline  
Old 01.04.2007, 13:15   #6
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

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
FidoW is offline  
Old 03.04.2007, 05:44   #7
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

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.
Phantom2005 is offline  
 


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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 14:56.