- Joined
- Jul 7, 2007
- Messages
- 962
- Reaction score
- 161
first off excute this:
Second Excute This:
then just simply go into the table ip bans add there ip and they will be ip banned you dont really have to enter a userid
oh i could'nt be asked to find the return for banned theres too many stored processes to look though oh and if they make another account they will still be banned
USE [GunzDB]
GO
/****** Object: StoredProcedure [dbo].[spGetLoginInfo] Script Date: 08/09/2009 07:13:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
/* LoginInfo 얻어옴 */
ALTER PROC [dbo].[spGetLoginInfo]
@UserID varchar(20)
AS
SET NOCOUNT ON
DECLARE @IP VARCHAR(40)
SELECT @IP=LastIP FROM LOGIN(NOLOCK) WHERE UserID=@UserID
DECLARE @IP2 VARCHAR(40)
SELECT @IP2=IP FROM ipbans(NOLOCK) WHERE IP=@IP
IF @IP = @IP2
BEGIN
RETURN 1 -- Wrong Password
/* UPDATE ACCOUNT SET UGradeID = 253 WHERE UserID = @UserID -- Ban Any New Accounts */
END
SELECT AID, UserID, Password FROM Login(nolock) WHERE UserID = @UserID
Second Excute This:
USE [GunzDB]
GO
/****** Object: Table [dbo].[ipbans] Script Date: 08/09/2009 07:22:30 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[ipbans](
[UserID] [varchar](20) NULL,
[IP] [varchar](20) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
then just simply go into the table ip bans add there ip and they will be ip banned you dont really have to enter a userid
oh i could'nt be asked to find the return for banned theres too many stored processes to look though oh and if they make another account they will still be banned
Last edited: