The reason it isn't picking it up is because when you hexed your exe you set the link to use webshop.pgp?vl= and not v1=. Yours is either using an i or an L so the shop can't pick up the v1 value ;)
Printable View
The reason it isn't picking it up is because when you hexed your exe you set the link to use webshop.pgp?vl= and not v1=. Yours is either using an i or an L so the shop can't pick up the v1 value ;)
ow ! Thanks lol sory :P
Didnt noticed.
Thanks for every thing chumpywumpy =)
HELP error buying
http://www.wokf.co.cc/tesst.jpg
http://www.wokf.co.cc/177177.jpgQuote:
Warning: fopen(hardlog.txt) [function.fopen]: failed to open stream: Permission denied in D:\webserver\default\htdocs\cabalweb\user\cashshop\buy.php on line 177
Error, hardlog.txt is not writable
sir why is shape catridges are unknown item
That one is pretty obvious, it can't wite to the file it wants to because access is denied. This also tells me something is going wrong as it only writes hardlog.txt when something is wrong. Check the access rights on the folder it is trying to write to.
In fixinf a lot of d/c problems i have introduced some others... again. I'm slowly collecting a list but so far war rewards are broken, the mf/pf shops are empty, the nation change transducer things are unknown items and now shape carts too :(
The problem is that i am using older chinese enc files to align the server and client data and these are files even though they are the same age as the US v22 client seem to have a lot of newer features missing. I'm gonna have to rebuild the patch again which is a shame because it seems very stable :(:
I Just want to clarify shape catridges LVL 4 are unknown but 1 2 3 are doing fine.
help Me :ott::ott:
http://www.wokf.co.cc/xxxxx001.jpg
It is because my current patch uses a specific chinese enc file which as far as i have tested so far is crashproof, but it is an older enc file which stops some newer things from working. If i use newer files either crashes come back or worse things happen. I'm still experimenting.
Something is going wrong and the cash shop cannot write it's log to tell you what. Check the permissions on the folder the cash shop is in as it is trying to create a file there and is being denied.
thank you mr. chumpy
buying Error, hardlog.txt is not writable.
where writable from?
config.....
database ms-sql
../ or webserver
../ or php.ini
../ of script php
http://www.thbkk.co.cc/img/dddddd.jpg
when ever i login as a GM account .. it shows some warnings at the top.. can u plz tell me where I am wrong...
http://img201.imageshack.us/img201/1210/errorrz9.th.jpg
also when i want to add some items
it shows:
http://img257.imageshack.us/img257/507/error1nu8.th.jpg
and if i create a account ....it gets created successfully but when i login in the page ..it shows this error
and the on the next page it says 'Hack Attempt"
http://img237.imageshack.us/img237/2...ror2eu4.th.jpg
Right now for testing purpose i am using the site in localhost only... i also did the hex of CabalMain...and did exactly as written in the guide.. still m getting these errors....
plz help me out...
you need to at least create a character in the game thats why it saying hack attempt
I have posted the answer to this at least twice in the last page. If an error occurs the cash shop tries writing a log file to the folder it is in and it doesn't have any access to do so. You need to make the folder on the webserver writable so it can save the log. I don't know why people get so baffled about the error as it is telling you exactly what the problem is.
Something is wrong with your CashShop database as the cash shop can't find the tables in in. Check the ShopItems and Bank tables exist ok.
The last error is me doing things in old ways. You can turn off the warning like it says or you can comment out session_start(); at the top of the .php files.
add by GM Tools working databaseQuote:
join date: Jun 2008
location: 2 clouds to your right
posts: 1,526
12-23-2008, 11:29 am
quote: Originally posted by ballcom view post
buying error, hardlog.txt is not writable.
Where writable from?
Config.....
Database ms-sql
../ or webserver
../ or php.ini
../ of script php
i have posted the answer to this at least twice in the last page. If an error occurs the cash shop tries writing a log file to the folder it is in and it doesn't have any access to do so. You need to make the folder on the webserver writable so it can save the log. I don't know why people get so baffled about the error as it is telling you exactly what the problem is.
Quote:
;Chumpy's Cabal GM tools v0.62 alpha config file
; MSSQL database connection
dbaddr=xxxxxxxx
dbport=1433
dbname=sa
dbpass=xxxxxx
ntauth=false
; Database names
account=ACCOUNT
gamedb=Gamedb
cabalcash=CabalCash
cabalmanager_db=cabal_managerdb
; Other setting
serveridx=24
http://www.thbkk.co.cc/img/adddd.jpg
add by shop script error [COLOR="Red"]Error, hardlog.txt is not writable.
Quote:
my WorldSvr_24_01.ini
[NetLib]
Port=38111
SendMaxBufSize=131072
SendMaxBufSizeUserHandler=131072
SendMaxBufSizeLinkHandler=1048576
ProcessDataLimit=10000
MaxUserNum=5
WatchsNoPackLimit=30000
UseEncryptPacket=1
SystemLogTTimeOut=100
ReactorTimeOut=100
DisableReactorPipe=1
ConnectRetryTime=5000
ConnectRetryNum=10
MemPoolUnitSizeClass=5
LogLevel=3
[WorldSvr]
ServerIdx=24
GroupIdx=1
GlobalTimer=4:10000,5:5000,7:3600000,22:60000,8:2000
WorldTimer=1:100,2:150,3:3000,6:60000,8:2000,9:10000,14:2000,16:200,20:200,21:200
CommonIniPath=Common.ini
IPAddress=xxx.xxx.xxx.xxxx
UpdateInterval=300
###################################
#### GameGuard ####
###################################
UseGameGuardAuth=0
# The GameGuard library name
AddGameGuardName=libggauth2.so.0
# GameGuard check interval and timeout
GameGuardInterval=180000
NoResponseTimeout=180000
# UseApex
UseApex=0
# ApexModulePath
#ApexModulePath=./ApexProxy.dll
ApexModulePath=./ApexProxy.so
UseAdminUser=0
# Allow cash shop
# You must have a cash shop website set up
# Your client must also be hexed to the correct URL for your shop
AllowCashShop=1
###################################
#### Hack checking options ####
###################################
UseHackcheckByTimeScope=0
UseCheckShopHack=0
UseCheckWarpHack=0
UseCheckWareHouseHack=0
UseCheckSkillCoolTimeHack=0
UseCheckDistanceSkillHack=0
UseCheckDeadStatActive=0
UseCheckDMZArea=0
UseCheckInventoryHack=0
UseCheckUserAttack=0
UseCheckDeadStatActive=0
ActiveDeadStatCount=30
SpeedHackCheckTime=10000
MaxAttackHackTime=300000
CheckSkillTimeHackScope=60000
#Check if the client is the right version
UseNonClientCheck=0
NonClientDisAdvantageRate=90
# Anti Alz db hack checking
# DO NOT edit the db directly if you enable this
UseAlzDbHackCheck=0
UseCutIfAlzDbHacked=0
# Stores detected hack users in the DB
UseHackUserDBSave=1
# I *think* these are the number of hacks
# to detect before kicking the player
MaxTimeHackingCount=2
MaxDistanceHackingCount=2
# I *think* this checks game items exist
# in belongitem.scp
UseCheckBelongItem=0
###################################
#### Game play options ####
###################################
UseCheckMissionIdx=1
ExtraCount=5
UsePartyMinExpForInvalidPartyMember=1
UseIgnoreOtherBlessBuff=0
UseCheckInvenItemSlotByServiceType=1
UseBlessingBeadCheck=0
UseArtOfDefensePenalty=1
IgnorePartyInviteDistance=0
RestrictOddCircleUseCountInDungeon=1
UseAdditionalMissionDungeonInstanceInPremiumCH=1
UseAdditionalMissionDungeonInstanceInPremiumUser=1
AdditionalMissionDungeonInstanceCount=0
UseCheckDungeon=1
UseMinLevDiffValueForExpCalc=1
# Allow PvP honour betting?
UsePvpBetting=0
# Use [MobChase] section in const.scp
# For increasing mod aggro ranges based on
# the WorldType in common.ini?
UseMobsChaseModify=1
# Enable [DropDiscount] section of const.scp
# For overriding specific item drops with
# others for events?
UseDropDiscount=1
UseWorldDrop=1
AllowTradeChannel=0
UseTradeChannelRestriction=0
PShopOpenLimitCount=0
UseRandomValueWriteLog=0
#InstantWar
UseInstantWarNationReward=1
###################################
#### Anti-addiction system ####
###################################
UseAntiOnlineGameAddictionSystem=1 ### LS = 0 , ITS = 1
InstantPlayTimeClearIntervalMin=300
InstantPlayTimeNotifyIntervalMin=1
advantageBoundaryTime0=10800
advantageBoundaryTime1=18000
InstantPlayTimeDebugMultiple=1
[DBAgent]
Addr=127.0.0.1
Port=38181
[GlobalMgrSvr]
Addr=127.0.0.1
Port=38170
[CashDBAgent]
Addr=127.0.0.1
Port=38190
[ChatNode]
AddrForServer=127.0.0.1
AddrForClient=xxx.xxx.xxx.xxxx
Port=38121
Quote:
my config
<?php
// General options for both reg page and cash shop
// Title shown at the top of pages
define('PAGE_TITLE','The Cabal');
// Link to website or patch
define('LINK_WSITE','http://xxxxx.com/');
// Text to display for link
define('NAME_WSITE','The Cabal');
// Link to forums
define('LINK_FORUM','http://xxxx.com/');
// Text to display for link
define('NAME_FORUM','The Cabal');
// MSSQL server connection details
// Database server
define('DB_ADDR','xxx.xxx.xxx.xxxx');
// Database login
define('DB_USER','sa');
// Database password
define('DB_PASS','xxxxxxx');
// In case you have a different db names
define('DB_ACC','ACCOUNT');
define('DB_GAM','GAMEDB');
define('DB_CCA','CABALCASH');
define('DB_CSH','CASHSHOP');
// ServerIdx MUST match the one in WorldSvr_XX_YY.ini or cash items
// Will not get delivered correctly.
define('SVR_IDX','24');
// Category names for cash shop admin panel
$cats=array(1=>'test',2=>'Gear',3=>'Pets',4=>'Consumables',5=>'Items');
// Print debug info at the top of the cash shop pages
define('TESTMODE',true);
// Maintenance mode, open to GMs only.
define('MAINTMODE',false);
// Uses LastIp validation as well as UserNum and AuthKey
// Can cause problems
define('IPVALIDATION',false);
// Allow transfer of Alz from warehoue to the bank
// Set to false if you don't want to use Alz for cash items
define('ALLOW_BANK',true);
?>
Quote:
my buy php
<?php
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >';
echo '<HTML><HEAD>';
echo '<title>CABAL Online - The Revolution of Action</title> ';
echo '<meta content="JavaScript" name="vs_defaultClientScript">';
echo '<link title="style" href="./shopstyle.css" type="text/css" rel="stylesheet">';
echo '</HEAD>';
echo '<body bgcolor="#000000;" onLoad="setTimeout(\'loaded()\',500)" id="default">';
$v1=$_REQUEST['v1'];
$v2=$_REQUEST['v2'];
$ip=$_SERVER['REMOTE_ADDR'];
if (!is_numeric($v1)) die('Hack attempt');
if (!ctype_alnum($v2)) die('Hack attempt');
$item=0;
$confirm=0;
if (isset($_REQUEST['cd'])) {
$item=$_REQUEST['cd'];
if (!ctype_digit($item)) $item=0;
}
if (isset($_REQUEST['co'])) {
$confirm=$_REQUEST['co'];
if (!ctype_digit($confirm)) $confirm=0;
}
include('config.php');
$link = mssql_connect(DB_ADDR, DB_USER, DB_PASS);
$is_gm=false;
$r=query_db('select * from '.DB_GAM.'.dbo.cabal_character_table where CharacterIdx between '.$v1.' * 8 and '.$v1.' * 8 + 5 and nation=3');
if (mssql_num_rows($r)>0) $is_gm=true;
if (MAINTMODE==true and $is_gm==false) die ('Maintenance mode is active.');
if ($confirm>0 && $item==0) {
if (!$link) die('Could not connect to MSSQL database.');
$q="select * from ".DB_ACC.".dbo.cabal_auth_table where UserNum='".$v1."'and AuthKey='".$v2."'";
if (IPVALIDATION==true) $q=$q." and LastIp='".$ip."'";
$r=query_db($q);
$row = mssql_fetch_row($r);
$name=$row[1];
$r=query_db("exec ".DB_CSH.".dbo.getbankalz '".$v1."'");
$row = mssql_fetch_row($r);
$alz=$row[1];
$r=query_db("select * from ".DB_CSH.".dbo.ShopItems where Id='".$confirm."' and Available>0");
if (mssql_num_rows($r)==0) {
error_box('Purchase failed','Not enough items left in the shop.');
} else {
$row = mssql_fetch_row($r);
$itemidx=$row[3];
$durationidx=$row[4];
$itemopt=$row[5];
$price=$row[8];
$available=$row[10];
if ($alz<$price) {
error_box('Error','You do not have enough Alz to purchase the item');
} else {
$newalz=$alz-$price;
$newavailable=$available-1;
hardlog('Item purchased: '.$itemidx.','.$durationidx.','.$itemopt.','.$price.','.$available.' ('.$alz.'/'.$newalz.')');
$r=query_db("update ".DB_CSH.".dbo.ShopItems set Available='".$newavailable."' where Id='".$row[0]."'");
$r=query_db("exec ".DB_CSH.".dbo.setbankalz '".$v1."','".$newalz."'");
$r=query_db("exec ".DB_CCA.".dbo.up_addmycashitem '".$v1."','1','".SVR_IDX."','".$itemidx."','".$itemopt."','".$durationidx."'");
error_box('Purchase successful','The item was successfully. You can claim the cash item by closing the cash shop.');
}
}
} elseif ($item>0 && $confirm==0) {
$r=query_db("select * from ".DB_CSH.".dbo.ShopItems where Id='".$item."' and Available>0");
if (mssql_num_rows($r)==0) {
error_box('Purchase failed','Not enough items left in the shop.');
} else {
echo '<DIV id=wrapper style="DISPLAY: none">';
echo '<TABLE height="100%" width="100%">';
echo '<TBODY><TR><TD vAlign=center align=middle>';
echo '<TABLE cellSpacing=0 cellPadding=0 border=0><TBODY>';
echo '<TR><TD width=35><IMG height=40 src="images/Item_Game_Box_s_01.gif" width=35></TD>';
echo '<TD class=white style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 5px" vAlign=top align=middle background="images/Item_Game_Box_s_02.gif"><STRONG>Are you sure?</STRONG></TD>';
echo '<TD width=35><IMG height=40 src="images/Item_Game_Box_s_03.gif" width=35></TD></TR>';
echo '<TR>';
echo '<TD background="images/Item_Game_Box_s_04.gif"> </TD>';
echo '<TD class=orange style="PADDING-BOTTOM: 20px; PADDING-TOP: 20px" align=middle width=200 background="images/Item_Game_Box_s_05.gif" height=50><STRONG><SPAN style="WIDTH: 280px">Please confirm you wish to buy the selected item.</SPAN></STRONG></TD>';
echo '<TD background="images/Item_Game_Box_s_06.gif"> </TD>';
echo '</TR>';
echo '<TR>';
echo '<TD background="images/Item_Game_Box_s_04.gif"> </TD>';
echo '<TD class=orange style="PADDING-BOTTOM: 20px; PADDING-TOP: 20px" align=middle background="images/Item_Game_Box_s_05.gif" height=20>';
echo '<IMG style="CURSOR: pointer" onclick="javscript:location.href=\'./buy.php?v1='.$v1.'&v2='.$v2.'&co='.$item.'\'" alt="Confirm purchase" src="images/Btn_Yes.gif" border=0> ';
echo '<IMG style="CURSOR: pointer" onclick="javscript:location.href=\'./webshop.php?v1='.$v1.'&v2='.$v2.'\'" alt="Cancel purchase" src="images/Btn_No.gif" border=0>';
echo '</TD>';
echo '<TD background="images/Item_Game_Box_s_06.gif"> </TD>';
echo '</TR>';
echo '<TR>';
echo '<TD><IMG src="images/Item_Game_Box_s_07.gif" width=35></TD>';
echo '<TD background="images/Item_Game_Box_s_08.gif"> </TD>';
echo '<TD><IMG src="images/Item_Game_Box_s_09.gif" width=35></TD>';
echo '</TR></TBODY>';
echo '</TABLE>';
echo '</TD></TR></TBODY>';
echo '</TABLE>';
echo '</DIV>';
}
} else {
error_box('Uh oh','An error has occurred.');
}
echo '<table width="100%" height="100%" align="center" id="loading">';
echo '<tr>';
echo '<td align="center" valign="middle">';
echo '<table bgcolor="#666666" cellspacing="9" border="1" width="250" height="60">';
echo '<tr>';
echo '<td align="center">';
echo '<font size="2" color="#eeeeee">Loading...</font>';
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td>';
echo '<marquee direction="right" width="250" scrollamount="8">';
echo '<table width="250" height="5" bgcolor="white">';
echo '<tr><td><p></td></tr>';
echo '</table>';
echo '</marquee>';
echo '</td>';
echo '</tr>';
echo '</table>';
echo '</td>';
echo '</tr>';
echo '</table>';
function error_box($title,$msg) {
global $v1, $v2;
echo '<DIV id=wrapper style="DISPLAY: none">';
echo '<TABLE height="100%" width="100%">';
echo '<TBODY><TR><TD vAlign=center align=middle>';
echo '<TABLE cellSpacing=0 cellPadding=0 border=0><TBODY>';
echo '<TR><TD width=35><IMG height=40 src="images/Item_Game_Box_s_01.gif" width=35></TD>';
echo '<TD class=white style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 5px" vAlign=top align=middle background="images/Item_Game_Box_s_02.gif"><STRONG>'.$title.'</STRONG></TD>';
echo '<TD width=35><IMG height=40 src="images/Item_Game_Box_s_03.gif" width=35></TD></TR>';
echo '<TR>';
echo '<TD background="images/Item_Game_Box_s_04.gif"> </TD>';
echo '<TD class=orange style="PADDING-BOTTOM: 20px; PADDING-TOP: 20px" align=middle width=200 background="images/Item_Game_Box_s_05.gif" height=50><STRONG><SPAN style="WIDTH: 280px">'.$msg.'</SPAN></STRONG></TD>';
echo '<TD background="images/Item_Game_Box_s_06.gif"> </TD>';
echo '</TR>';
echo '<TR>';
echo '<TD background="images/Item_Game_Box_s_04.gif"> </TD>';
echo '<TD class=orange style="PADDING-BOTTOM: 20px; PADDING-TOP: 20px" align=middle background="images/Item_Game_Box_s_05.gif" height=20>';
echo '<IMG style="CURSOR: pointer" onclick="javscript:location.href=\'./webshop.php?v1='.$v1.'&v2='.$v2.'\'" alt="Close" src="images/Btn_Close.gif" border=0>';
echo '</TD>';
echo '<TD background="images/Item_Game_Box_s_06.gif"> </TD>';
echo '</TR>';
echo '<TR>';
echo '<TD><IMG src="images/Item_Game_Box_s_07.gif" width=35></TD>';
echo '<TD background="images/Item_Game_Box_s_08.gif"> </TD>';
echo '<TD><IMG src="images/Item_Game_Box_s_09.gif" width=35></TD>';
echo '</TR></TBODY>';
echo '</TABLE>';
echo '</TD></TR></TBODY>';
echo '</TABLE>';
echo '</DIV>';
}
function query_db($query,$caller='unknown') {
global $link;
hardlog($query);
$r=mssql_query($query);
return $r;
}
function hardlog($text) {
$h=fopen('hardlog.txt','a');
if (is_writable('hardlog.txt')) {
if (!$h=fopen('hardlog.txt','a')) {
die('Error opening hardlog.txt file, check permissions.');
}
if (fwrite($h,"[".date("H:i:s G:i:s")."] ".$text."\n")===false) {
die('Error writing to hardlog.txt, check permissions.');
}
fclose($h);
} else {
die('Error, hardlog.txt is not writable.');
}
}
?>
<script>
document.body.scroll = "no";
function loaded()
{
setTimeout
loading.style.display = 'none';
wrapper.style.display = '';
}
</script>
</body></html>
I really cannot put this any simpler; you need to change your permissions. Posting the cash shop code is not going to help as the problem is not the cash shop it is the permissions on the folder the cash shop is in.
I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
Chumpy !!!!!
I am with my friends WANNA say you - VERY BIG THANK YOU!!!!!!!!!!!!!!!
You are the BEST!!!! :)
I know dear Chumpy, i cant ask you... but maybe in next version you can add in admin panel somthing like drop/down menu for add items? :) Like item list, icon list and etc... thank you
NOTE:
In your manual
4. In etc/cabal/WorldSvr_XX_YY.ini set the following:
UseCashShop=1
Only enable it on WorldSvrs you want the shop available from.
but in server config files we have
# Allow cash shop
# You must have a cash shop website set up
# Your client must also be hexed to the correct URL for your shop
AllowCashShop=0
Hope i help :)
An items list would make for one huuuuge dropdown that would never fit onscreen which is why it doesn't have one already. I had thoughts on several lists (weaps, armour, items etc) but that just got complicated and they would have been big too. You would also have problems with things that have itemopts like postions, quartz cores etc. An images list is easy and i may add one but it would be horribly slow to load as the icon folder is nearly 4mb already and only about half the game items are in there at a rough guess.
I'm surprised nobody has spotted that typo before, but then most people don't read readmes looking at some of the help requests on my topics :lol:
I should have watched my mouth and not said/talked shit to DeadlyData telling him things like your are not welcome here because then I become the one who is truly not welcome here.
it is okay just use your common sense no offense merry christmas to all
how to add new emali script
Quote:
<?php
$num_acc=0;
$num_cha=0;
$num_onl=0;
$r=mssql_query('select count (*) from '.DB_ACC.'.dbo.cabal_auth_table');
$num_acc=mssql_result($r,0,0);
$r=mssql_query('select count (*) from '.DB_ACC.'.dbo.cabal_auth_table where Login=1');
$num_onl=mssql_result($r,0,0);
$r=mssql_query('select count (*) from '.DB_GAM.'.dbo.cabal_character_table');
$num_cha=mssql_result($r,0,0);
echo '<p>There are currently <span style="font-size:16px;font-weight:bold">'.$num_onl.'</span> people online right now.</p>';
echo '<p>Registered accounts: <span style="font-size:16px;font-weight:bold">'.$num_acc.'</span> | Characters created: <span style="font-size:16px;font-weight:bold">'.$num_cha.'</span></p>';
echo '<p style="font-size:24px;font-weight:bold">Account registration</p>';
echo '<p>Username and password must be minimum 6 chars, letters and numbers only.</p>';
echo '<form method="post" action="'.$_PHP['self'].'">';
echo '<table cellspacing="4" cellpadding="0" border="0">';
echo '<tr><td align="right">Login: </td><td><input type="text" name="uname" class="editbox"></td></tr>';
echo '<tr><td align="right">Pass: </td><td><input type="password" name="pass" class="editbox"></td></tr>';
echo '<tr><td align="right">Confirm pass: </td><td><input type="password" name="pass2" class="editbox"></td></tr>';
echo '<tr><td colspan="2" align="right"><input type="submit" value="Register account" class="button"></td></tr>';
echo '</table>';
echo '</form>';
echo '<br /><span style="font-weight:bold">Website:</span> <a href="'.LINK_WSITE.'">'.NAME_WSITE.'</a><br />';
echo '<span style="font-weight:bold">Forums:</span> <a href="'.LINK_FORUM.'">'.NAME_FORUM.'</a><br />';
$uid='';
$pass='';
$failed=false;
if (isset($_POST['uname'])) {
if (!ctype_alnum($_POST['uname']) || strlen($_POST['uname'])<6) {
$failed=true;
echo '<p class="errortext">Invalid username. Minimum 6 characters, letters and numbers only.</p> ';
} else {
$uid=$_POST['uname'];
}
}
if (isset($_POST['pass'])) {
if (!ctype_alnum($_POST['pass']) || strlen($_POST['pass'])<6) {
$failed=true;
echo '<p class="errortext">Invalid password. Minimum 6 characters, letters and numbers only.</p> ';
} else {
$pass=$_POST['pass'];
}
}
if (isset($_POST['pass2'])) {
if (!ctype_alnum($_POST['pass2'])) {
$failed=true;
} else {
if ($_POST['pass2']!=$_POST['pass']) {
$failed=true;
echo '<p class="errortext">The entered passwords do not match.</p> ';
}
}
}
if ($failed==true) {
echo '<p class="errortext">Failed.</p> ';
} else {
if ($uid!='' && $pass!='') {
$r=mssql_query('select count (*) from '.DB_ACC.'.dbo.cabal_auth_table where ID="'.$uid.'"');
if (mssql_result($r,0,0)==0) {
$r=mssql_query('exec '.DB_ACC.'.dbo.cabal_tool_registerAccount "'.$uid.'","'.$pass.'"');
if ($r==false) {
echo '<p class="errortext">Something went wrong :( </p>';
} else {
echo '<p class="goodtext">Account created successfully!</p>';
}
mssql_free_result($r);
mssql_close($link);
} else {
echo '<p class="errortext">Logon name already used.</p> ';
}
}
}
?>
Email support isn't in yet as i wanted to limit the initial bug reports as much as i could. Email support on a webserver is very easy to set up if you know how but a nightmare if you do not. When i add email support i expect around half of the people who try using it to get it totally wrong as windows doesn't have built in email support like linux does.
Hello
Someone have same problem?
I want add in shop items like - Shape Cartridge, Holy Disc and etc. I can recive this item in game, but have note - UNKNOWN ITEM.
I am use GP-Client+Sauron sync. patch.
And second question.
My players sometimes d/c from world in dungeons and sometimes when pickup items.... I think its client - server problem again. Someone can link full working client for Chumpy server? And someone hear, Sauron update his patch for client? because i am download his patch almost half year ago :)
Thank you for help
The saur0n patch was actually more than just a patch it was an idea which i have used with a small modification.
I had lots of weird problems with the GP client which was why i stopped using it. I found that a clean US client from ogplanet + the client files in the .etc/cabal/docs/ folder of my server files work best. I have not had a single crash but i do know that a few things don't work properly as one of the enc files i am using is a bit too old. At the moment i am working on keeping the same level of stability and adding in support for newer items such as level 4 shape carts, war rewards and the MF/PF shops.
i tried this. . registration was ok. . but then i have problem. . there is an error about session when i login, and it will display the message. . "hacker" or what ever was that^_^ haha