• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Chumpy's simple regpage and cash shop v1.5 beta

Newbie Spellweaver
Joined
Jul 27, 2011
Messages
31
Reaction score
2
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\index.php on line 26


include('config.php');
$link = mssql_connect(DB_ADDR, DB_USER, DB_PASS);
if (!$link) die('Could not connect to MSSQL database.');

if ($uid<>'' && $pwd<>'') {
$r=mssql_query('select ID,UserNum,AuthKey from '.DB_ACC.'.dbo.cabal_auth_table where id="'.$uid.'" and password="'.$pwd.'"');
if (mssql_num_rows($r)==0) {
header('Refresh: 4; URL='.PAGE_INDEX);
html_header('Login failed...');
echo 'Login Failed...';
exit;
} else {
$row = mssql_fetch_row($r);
$_SESSION['player']=$row[0];
$_SESSION['v1']=$row[1];
$_SESSION['v2']=$row[2];
header('Refresh: 1; URL='.PAGE_INDEX);
html_header('Logging in...');
echo 'Logging in...';
exit;
where is error...
 
Experienced Elementalist
Joined
Jul 15, 2010
Messages
256
Reaction score
3
run the scrips in the database that are with the site and it will work :)
and if you use number 2 in world let the config file read world number 2 to
 
Last edited:
Initiate Mage
Joined
Aug 2, 2011
Messages
1
Reaction score
0
Fatal error: Call to undefined function mssql_connect() in C:\XXXXX\XXXXXX\index.php on line 30

what is the main problem on that .
100% sure my db username and password correctly

Thank yours for help
 
Skilled Illusionist
Joined
Apr 13, 2011
Messages
387
Reaction score
69
you webhost doesent support mssql connection.
If you host the site on windows with xampp or other webhost server be shure that you have mssql extension activated in php.ini(google for how to do it if you dont know how)
 
Newbie Spellweaver
Joined
Sep 4, 2006
Messages
64
Reaction score
3
5. Open cabalmain.exe in a hex editor and look around 0x3dee8c. The actual address
will be different for different cabalmain.exes but the string you are looking
for (assiming it hans't been changed already) is:

http://shop.cabal.ogplanet.com/cabal...fault.aspx?v1=

Once you have found the string is being used for the cash shop address and replace:

http://www.myserver.com/webshop.php?v1=

The string must be properly zero terminated and cannot be longer than 63 chars
unless you know how to relocate the string in the exe.

To see exactly what address the client is using hit the cash shop button in
game. Right-click and select Properties. That will help you find it in the exe
using a search ;)
Sorry, but I do not understand this step, can you explain me with more details, like "which is the hex editor that should I use, how to save, etc"?

Thanks anyways!
 
Newbie Spellweaver
Joined
Sep 4, 2006
Messages
64
Reaction score
3
"a hex editor" = any hex editor...
Hey Yamachi!
I used "neo hex editor" but whem I hit save, I cant open the .exe, returns an error saying that "It's not a valid windows executable program" or something like.
Can you help me becouse the web app shop is working, server is configured to run with the shop but, I still can't look the items becouse I can't change the URL for the shop on the client.
Thanks man.:thumbup1:
-----------------------------------------------------------------------------------------------------------------
Oh, nevermind guys!!
I got it
Thank you!
 
Last edited:
Elite Diviner
Joined
May 15, 2009
Messages
403
Reaction score
414
Yooh... mrChump... I wanna use the transfer function but instead of warehouse alz to cashbank I want CabalCash cash credit to CashBank... Is that possible? cuz I see CabalCash use UserID while CashShop use UserNum for authentication...
 
Newbie Spellweaver
Joined
Oct 3, 2007
Messages
77
Reaction score
1
Make sure your php.ini includes mssql extension.

That what happened after this: "Unable to load dynamic library php_mssql.dll, specified module could not be found."
So i added php_mssql.dll after that apache didn't start anymore, sad.
 
Joined
Apr 12, 2007
Messages
426
Reaction score
251
That what happened after this: "Unable to load dynamic library php_mssql.dll, specified module could not be found."
So i added php_mssql.dll after that apache didn't start anymore, sad.
In newer versions u need to use php_dblib.dll give a search to that.
 
Skilled Illusionist
Joined
Apr 13, 2011
Messages
387
Reaction score
69
had anyone ever tried to add another bank system instead of alz?
If yes pleas post and tell me what had you manage to do.I want to make the site have the option of alz and cash.
 
The Dinosaur
Loyal Member
Joined
Jun 29, 2008
Messages
5,028
Reaction score
999
Newbie Spellweaver
Joined
Nov 15, 2011
Messages
9
Reaction score
0
You have any idea how to make each player to choosing thT-Te nation from user panel ?? please help me :(
 
Last edited by a moderator:
Newbie Spellweaver
Joined
Aug 18, 2010
Messages
19
Reaction score
0
Hello and thanks for the input, but I have a question, it happens to me all the page works fine, I made ​​the shipping and all, but the problem happens when I receive the item, I get the failed item the reception of some help ?
 
Newbie Spellweaver
Joined
Feb 15, 2010
Messages
33
Reaction score
2
check in cashshop the table dbo.ShopItems column "ID" to be in order 1,2,3,4,5....etc,not 12341234 thats why you receive different item
 
Experienced Elementalist
Joined
Jan 12, 2012
Messages
290
Reaction score
25
I dont understand how to fix that config.php always getting
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\index.php on line 26
 
Joined
Apr 12, 2007
Messages
426
Reaction score
251
edited the config file?
because there is something wrong. Db password or user name or IP

That has nothing to do with db user and/or password.

I dont understand how to fix that config.php always getting
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\index.php on line 26

The MSSQL module its not enabled on your webserver.
 
Back
Top