CabalWeb Ep8 by pafa7a

Use this for stored procedure
Code:
USE [Account]
GO
/****** Object:  StoredProcedure [dbo].[cabal_tool_registerAccount]    Script Date: 10/03/2013 16:47:31 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER  PROCEDURE [dbo].[cabal_tool_registerAccount]   (@id varchar(32),  @password  varchar(32))
AS
begin tran
	declare @UserNum as int

	insert into cabal_auth_table( ID, Password, Login, AuthType, IdentityNo ) 
	values(@id, pwdencrypt(@password), '0', 1, '7700000000000' )

	set @UserNum = @@identity


	insert into cabal_charge_auth(usernum, type, expiredate, payminutes)
	values(@UserNum, 0, DATEADD(day, 1000, getdate()), 0)
	


	select @UserNum as usernum
commit

sorry man! still the problem persists.

and one more thing about ranking.

Warning: mssql_query() [function.mssql-query]: message: Invalid column name 'Resets'. (severity 16) in C:\xampp\htdocs\modules\rankings.php on line 45

Warning: mssql_query() [function.mssql-query]: message: Invalid column name 'Resets'. (severity 16) in C:\xampp\htdocs\modules\rankings.php on line 45

Warning: mssql_query() [function.mssql-query]: Query failed in C:\xampp\htdocs\modules\rankings.php on line 45

Warning: mssql_num_rows(): supplied argument is not a valid MS SQL-result resource in
 
After 2-3 days I will release my new project on cabal web including votereward,ajax pages,new security and more

looking forward to it! well, just for your information i just dev. here for fun not for my pocket. when i say fun, i just set up a server and just play with it with my loved ones. :wink:

i saw toasts post, i can see that alot have used your files and gained just for themselves and thats not a good thing.

well, good luck with the succeeding projects & you got my respect! :thumbup1:
 
hi i got this error on the rankings page and cant fix it because i dont see the mistake in the code

Code:
[B]
[B]Notice[/B]:  Undefined variable: firstpage in [B]C:\xampp\htdocs\modules\rankings.php[/B] on line [B]100[/B]

[B]Notice[/B]:  Undefined variable: prevpage in [B]C:\xampp\htdocs\modules\rankings.php[/B] on line [B]101[/B]
    
[B]Notice[/B]:  Undefined variable: nextpage in [B]C:\xampp\htdocs\modules\rankings.php[/B] on line [B]113[/B]

[B]Notice[/B]:  Undefined variable: lastpage in [B]C:\xampp\htdocs\modules\rankings.php[/B] on line [B]118[/B]


[/B] maybe someone of u can help me with this xD
 
i also encounter same issue like @4play
this cabal_character_table have to be in Account or in Server01?
I found it in Server01. not residing in Account.

Ofc cabal_character_table should be on server01... ACCOUNT db = ALL ACCOUNTS,etc
 
Ofc cabal_character_table should be on server01... ACCOUNT db = ALL ACCOUNTS,etc
error - CabalWeb Ep8 by pafa7a - RaGEZONE Forums

i can login on web only when i create an account using bega Admin Tool.
But if i create an account from the web, the account could not login & show me
the error
 
Last edited:
View attachment 140951

i can login on web only when i create an account using bega Admin Tool.
But if i create an account from the web, the account could not login & show me
the error

check the error line in functions.php as you can see its a cabal_tool_Register_account issue, line 50 is
mssql_query("Execute Account.dbo.cabal_tool_registerAccount '$username','$password','$email','$question','$answer'");

check your dbo.cabal_tool_registerAccount in programmability>stored procedures check if you have all these lines '$username','$password','$email','$question','$answer'" if something is missing add it
 
Last edited:
check the error line in functions.php as you can see its a cabal_tool_Register_account issue check the line in functions.php and paste it here
u mean this?

if($error != 'Yes'){
mssql_query("Execute Account.dbo.cabal_tool_registerAccount '$username','$password','$email','$question','$answer'");
echo "<font color='green'><b><center>Account $username is registered successfuly.</b></center></font><br>";
 
u mean this?

if($error != 'Yes'){
mssql_query("Execute Account.dbo.cabal_tool_registerAccount '$username','$password','$email','$question','$answer'");
echo "<font color='green'><b><center>Account $username is registered successfuly.</b></center></font><br>";

cabal_tool_Register_account check your stored procedure
 
Try with this one :
Code:
USE [Account]
GO
/****** Object:  StoredProcedure [dbo].[cabal_tool_registerAccount]    Script Date: 11/24/2013 05:35:23 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER  PROCEDURE [dbo].[cabal_tool_registerAccount]   (@id varchar(32),  @password  varchar(32), @email varchar(32), @question  varchar(32), @answer  varchar(32))
AS
begin tran
	declare @UserNum as int


	INSERT INTO cabal_auth_table( ID, Password, Login, AuthType, IdentityNo, Email, Question, Answer ) 
	values(@id, pwdencrypt(@password), '0', 1, '7700000000000', @email, @question, @answer)

        set @UserNum = @@identity

	INSERT INTO cabal_charge_auth(usernum, type, expiredate, payminutes)
	values(@UserNum, 0, DATEADD(day, 1000, getdate()), 0)
	
	INSERT INTO [CabalCash].[dbo].[CashAccount] ([ID], [UserNum], [Cash], [CashBonus]) 
	VALUES (@id, @UserNum, '0', '0')

	select @UserNum as usernum
commit
 
Try with this one :
Code:
USE [Account]
GO
/****** Object:  StoredProcedure [dbo].[cabal_tool_registerAccount]    Script Date: 11/24/2013 05:35:23 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER  PROCEDURE [dbo].[cabal_tool_registerAccount]   (@id varchar(32),  @password  varchar(32), @email varchar(32), @question  varchar(32), @answer  varchar(32))
AS
begin tran
	declare @UserNum as int


	INSERT INTO cabal_auth_table( ID, Password, Login, AuthType, IdentityNo, Email, Question, Answer ) 
	values(@id, pwdencrypt(@password), '0', 1, '7700000000000', @email, @question, @answer)

        set @UserNum = @@identity

	INSERT INTO cabal_charge_auth(usernum, type, expiredate, payminutes)
	values(@UserNum, 0, DATEADD(day, 1000, getdate()), 0)
	
	INSERT INTO [CabalCash].[dbo].[CashAccount] ([ID], [UserNum], [Cash], [CashBonus]) 
	VALUES (@id, @UserNum, '0', '0')

	select @UserNum as usernum
commit
yes it works!! thanks alot.
 
Back