- Joined
- Jul 27, 2010
- Messages
- 902
- Reaction score
- 31
well i never release anything at all
but let me release small thing here
no idea if it help anyone .. but usefull
btw : this only will work with the original _PrivilegedIP table
i will leave you to know how to use it ^^
have fun
but let me release small thing here
no idea if it help anyone .. but usefull
Code:
USE [SRO_R_Accountdb]
GO
/****** Object: StoredProcedure [dbo].[_AddIP] Script Date: 01/10/2015 18:06:18 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE procedure [dbo].[_AddIP]
@ip1 bigint, @ip2 bigint, @ip3 bigint, @ip4 bigint,@ip5 bigint , @ip6 bigint , @ip7 bigint ,@ip8 bigint
as
declare [USER=9977]long[/USER]_ip bigint , [USER=9977]long[/USER]_ip1 bigint
set [USER=9977]long[/USER]_ip = @ip1 + (@ip2 * 256) + (@ip3 * 256 * 256) + (@ip4 * 256 * 256 * 256)
set [USER=9977]long[/USER]_ip1 = @ip5 + (@ip6 * 256) + (@ip7 * 256 * 256) + (@ip8 * 256 * 256 * 256)
if( [USER=9977]long[/USER]_ip > 0x7FFFFFFF)
begin
set [USER=9977]long[/USER]_ip = [USER=9977]long[/USER]_ip - 0x7FFFFFFF - 2) - 0x7FFFFFFF
end
if( [USER=9977]long[/USER]_ip1 > 0x7FFFFFFF)
begin
set [USER=9977]long[/USER]_ip1 = [USER=9977]long[/USER]_ip1 - 0x7FFFFFFF - 2) - 0x7FFFFFFF
end
insert into _PrivilegedIP values [USER=9977]long[/USER]_ip, [USER=9977]long[/USER]_ip1)
i will leave you to know how to use it ^^
have fun
Last edited: