xampp problem

Newbie Spellweaver
Joined
Dec 20, 2008
Messages
11
Reaction score
0
i using http://forum.ragezone.com/f459/website-destru-web-560995/ this web hosting my web
when i start xampp server apache runing and my config.php settings correct when my friend open website it show all nothing.... example like this picture
crago1 - xampp problem - RaGEZONE Forums



really no idea maybe is my computer settings or other problem ?

no people help ? ><

hello anybody help ?
 
Last edited by a moderator:
So, when you access it from your own machine, the website works as it should, but when your friend tries to access it, it doesn't display properly? Sorry, I'm a bit confused as to what the problem is, exactly. Also, please stop bumping your thread -.-
 
Upvote 0
Ragezone rules state that bumping is only acceptable after 2 weks without a reply, but i would personally accept a bump if the topic leaves the first page. That was far too quick.

Is it completely blank or does it look exactly like the screenshot (all blank values)? If it is lots of blank values the there is a config problem as the site cannot communicate with the database. That site (and cabaltoolz) is good at hiding error messages at certain points so you will need to check your apache logs to see why it is erroring.
 
Upvote 0
chumpy thx for teaching first ... i will check the log

and sorry for bump ><

chumpy my apache\log there inside no any log i think u need remote my com help me look can ?

or any people can help ??
 
Last edited by a moderator:
Upvote 0
[Thu May 28 01:47:30 2009] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Thu May 28 01:47:30 2009] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Thu May 28 01:47:30 2009] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Thu May 28 01:47:30 2009] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Thu May 28 01:47:30 2009] [crit] (22)Invalid argument: unable to replace stderr with error_log
[Thu May 28 01:47:30 2009] [crit] (2)No such file or directory: unable to replace stderr with /dev/null
[Thu May 28 01:47:30 2009] [notice] Apache/2.2.0 (Win32) DAV/2 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_autoindex_color PHP/5.1.1 configured -- resuming normal operations
[Thu May 28 01:47:30 2009] [notice] Server built: Dec 1 2005 18:36:53
[Thu May 28 01:47:30 2009] [notice] Parent: Created child process 3944
[Thu May 28 01:47:31 2009] [notice] Child 3944: Child process is running
[Thu May 28 01:47:31 2009] [notice] Child 3944: Acquired the start mutex.
[Thu May 28 01:47:31 2009] [notice] Child 3944: Starting 250 worker threads.
[Thu May 28 01:47:31 2009] [notice] Child 3944: Starting thread to listen on port 443.
[Thu May 28 01:47:31 2009] [notice] Child 3944: Starting thread to listen on port 80.
[Thu May 28 01:48:40 2009] [error] [client 219.93.221.14] PHP Notice: Undefined variable: num_acc in C:\\xampplite\\htdocs\\index.php on line 172
[Thu May 28 01:48:40 2009] [error] [client 219.93.221.14] PHP Notice: Undefined variable: num_cha in C:\\xampplite\\htdocs\\index.php on line 176


how i fix this ??

and sorry about my double post.. really sorry
 
Upvote 0
Ah that is what i need, "undefined variable: num_acc". It is struggling to work out the number of accounts and chars for the stats display. I can't think of any reason why it would do that but i don't have a copy with me to check.

I'll have a look when i get home and see what ideas i can come up with. I'm thinking a sanity check page for webservers might be a good idea.
 
Upvote 0
<? include 'config.php'; ?>
<html lang="pt">
<head>
<meta name="description" content="LoGGeR" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">

body { background-image: url(images/bg.gif); }
a { font-size:12px; color:#CCCCCC; text-decoration:none; font-family:"Tahoma"; }
a:hover { color:#FFF; text-decoration:none; border-bottom: 1px dashed #999;}
body,th,tr { font-size:11px; color:#333; font-family:"Tahoma" }
input { font-size:12px; color:#666; font-family:"Tahoma"; border:1px solid #999; }
.submit { font-size:12px; color:#666; font-family:"Tahoma"; border:1px dashed #999; background-color:#333333;}

#rodape { color: #AAA; text-align:center; height: 25px; }
#rodape a { color: #000; font-weight: bold; text-decoration: none; }
#rodape a:hover { color: #002aa2; font-weight: bold; text-decoration: none; }
#menu_barra { text-transform: uppercase; color: #444; font-weight: bold; text-align: left; padding-left:23px; padding-top:3px; width:156px; height:22px; background-image: url(../../images/barra_menu.gif); }
#menu_barra_2 { text-transform: uppercase; color: #444; font-weight: bold; font-size:10px; text-align: left; padding-left:23px; padding-top:3px; width:156px; height:22px; background-image: url(../../images/barra_menu.gif); }
#meio_barra { text-transform: uppercase; border-top:2px solid #EEE; font-weight: bold; padding-left:30px; padding-top:3px; width:570px; height:22px; background-image: url(images/meio_barra.gif); }
#menu_cima { width: 178px; height:10px ;background-image: url(images/menu_cima.gif); }
#menu_baixo { width: 178px; height:15px ;background-image: url(images/menu_baixo.gif); }
#meio_menu { background-image: url(images/menu_meio.gif); }
#meio_menu a { color: #000f39; font-weight: bold; text-decoration: none; }
#meio_menu a:hover { color: #002aa2; font-weight: bold; text-decoration: none; }
#text_menu { margin-bottom: 3px; padding-left: 6px; text-align: left; background: url(images/mu.gif) no-repeat; }
#text_menu_painel { margin-bottom: 3px; padding-left: 6px; text-align: left; background: url(images/mu.gif) no-repeat; }
#text_menu_painel a { border-bottom: 1px solid #CCC; }
#text_menu input { border:1px solid #999; color: #555; padding: 2px; border-left: 4px solid #999; }
#text_menu #send_input { border:1px solid #999; color: #555; padding: 1px; font-size: 11px; font-weight: bold; background-color: #DDD; margin-top: 3px; border-left: 4px solid #999; }
#text_menu #back_input { border:1px outset #CCC; color: #555; padding: 1px; width: auto; font-size: 11px; margin-bottom: 2px; font-weight: bold; background-color: #F5F5F5; margin-top: 2px; }
#text_menu #opt_input { border:1px inset #CCC; color: #555; padding: 1px; width: 90%; text-align: left; font-size: 11px; font-weight: bold; background-color: #F5F5F5; margin-top: 2px; }
.style1 {color: #CCCCCC}
.style13 {font-size: 11px}
.style14 {
color: #FF0000;
font-weight: bold;
}
.style15 {
color: #000000;
font-weight: bold;
font-style: italic;
font-size: 12px;
}
.style16 {color: #000000}
.style17 {font-size: 10px}
#master_content { position:relative; overflow:hidden; }
#online_barra { background-color: #71A600;
height: 8px;
font-size: 1px;
}
#online_completa1 { background-color: #FF4040;
height: 8px;
font-size: 1px;
}
#online_completa2 { background-color: #A60000;
height: 8px;
font-size: 1px;
}
#online_porcento {
background-color: #EEE;
height: 8px; width: 100%;
border: 1px solid #AAA;
font-size: 1px;
}
.online {
color: green;
font-size:10px;
font-family:Verdana, Arial, Helvetica, sans-serif;
}
</style>
<title><?=$titulo?></title>
<table width="850" height="545" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#333333" style="border:3px solid #222222">
<tr>
<td height="547"><table width="850" height="171" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="171">
<div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="849" height="200">
<param name="movie" value="5_01.swf">
<param name=quality value=high>
<embed src="5_01.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="849" height="200"></embed>
</object>
</div></td>
</tr>
</table>
<table width="850" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="33" background="_img/barramenu.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="8%"><div align="center"><a href="index.php">Home</a></div></td>
<td width="8%"><div align="center"><a href="reg.php" target="iframe">Registration</a></div></td>
<td width="9%"><div align="center"><a href="downloads.php" target="iframe">Downloads</a></div></td>
<td width="11%"><div align="center"><a href="info.php" target="iframe">Server
Info</a></div></td>
<td width="7%"><div align="center"><a href="rankings.php" target="iframe">Ranking</a> </div></td>
<td width="10%"><div align="center"><a href="resets.php" target="iframe">Rank
Resets </a> </div></td>
<td width="7%"><div align="center"><a href="faq.php" target="iframe">Guilds</a></div></td>
<td width="12%"><div align="center"><a href="usercp.php" target="iframe">Control
Panel </a></div></td>
<td width="8%"><div align="center"><a href="<? echo $forumlink ?>" target="_blank">Forum</a></div></td>
<td width="11%"><div align="center"><a href="faq.php" target="iframe">Shop</a></div></td>
</tr>
</table></td>
</tr>
</table>
<table width="850" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="206" height="258" valign="top"><table width="20" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/menu_cima.gif" width="178" height="10"></td>
</tr>
</table>
<table width="180" height="27" border="0" cellpadding="0" cellspacing="0" background="_img/lado/lado_cima.jpg">
<tr>
<td><div align="left" id="menu_barra">USER pANEL<br>
</div></td>
</table>
<table width="180" border="0" cellpadding="0" cellspacing="0" id="meio_menu">
<tr>
<td> <p><font size="2"><strong><br>
<a href="reg.php" target="iframe">  Registration</a><br>
<a href="usercp.php" target="iframe">  Control Panel</a><br>
<a href="faq.php" target="iframe">  Shopping</a></strong></font><br>
<br>
</p>
</td>
</table>
<table width="180" height="27" border="0" cellpadding="0" cellspacing="0" background="_img/lado/lado_cima.jpg" id="online_barra">
<tr>
<td><div align="left" id="menu_barra">SerVER sTATUS<br>
</div></td>
</table>
<table width="180" border="0" cellpadding="0" cellspacing="0" id="meio_menu">
<tr>
<td><table width="180" border="0" cellpadding="0" cellspacing="0" background="images/menu_meio.gif">
<tr>
<td><div align="left"><br>
<br>
</div></td>
</tr>
<tr>
<td><div align="left">  <b>Server status : </b> <font color="#FF0000"><a href="info.php" target="iframe">Check now</a></font><br>
  <b>Players Online : <? echo $num_onl ?></b><br>
</div></td>
</tr>
<tr>
<td>  </td>
</tr>

<tr>
<td> </td>
</tr>


</table></td>
</table>
<table width="180" height="27" border="0" cellpadding="0" cellspacing="0" background="_img/lado/lado_cima.jpg">
<tr>
<td><div align="left" id="menu_barra">Statistics<br>
</div></td>
</table>
<table width="180" border="0" cellpadding="0" cellspacing="0" background="images/menu_meio.gif">
<tr>
<td><div align="left"><br>
<br>
</div></td>
</tr>
<tr>
<td><div align="left"><strong>  Total Accounts:
<?php echo $num_acc?></strong></div></td>
</tr>
<tr>
<td><div align="left"><strong>   Total Characters:
<?php echo $num_cha ?></strong></div></td>
</tr>

<tr>
<td><br> <br></td>
</tr>
</table>
<table width="180" height="27" border="0" cellpadding="0" cellspacing="0" background="_img/lado/lado_cima.jpg">
<tr>
<td><div align="left" id="menu_barra_2">information<span class="style17">
(<a href="info.php" target="iframe">more</a>)</span><br>
</div></td>
</table>
<table width="180" border="0" cellpadding="0" cellspacing="0" background="images/menu_meio.gif">
<tr>
<td><div align="left"><br>
<br>
<br>
</div></td>
</tr>
<tr>
<td><div align="left"><strong>  Name : <? echo $svname ?></strong></div></td>
</tr>
<tr>
<td><div align="left"><strong>  Version : <? echo $svversao ?></strong></div></td>
</tr>
<tr>
<td><div align="left"><strong>  Exp : <? echo $exp ?></strong></div></td>
</tr>
<tr>
<td><strong>  Skills: <? echo $skillsx ?></strong></td>
</tr>
<tr>
<td><strong>  Drop: <? echo $drop ?></strong></td>
</tr>
<tr>
<td><div align="left"><strong>  Alz : <? echo $alzes ?></strong></div>
</td>
</tr>
<tr>
<td><strong>  UP Link: <? echo $uplink ?></strong></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><strong><br>
<br>
<br>
<br>
<br>
<br>
</strong></td>
</tr>
</table>
<table width="180" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="images/menu_baixo.gif" width="179" height="7"></td>
</table>
</td>
<td width="644"><div align="center">
<iframe align="right" frameborder="0" src="home.php" name="iframe" width="640" height="900"></iframe>
</div></td>
</tr>
</table>
<table width="850" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="rodape" height="30" background="sitebaixono0.jpg"><span class="style13"><strong><? echo $svname ?></strong> -
All rights reserved - Cabal Web Page 1.0 by <strong>Destru</strong></span></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>


this my index.php and config.php i also no edit wrong and i follow the config note type ip pw 1
if the index.php no problem then is what problem ??
 
Upvote 0
if u meaning i just draw the config.php on firefox or ID ??

if correct that come out code is like this



array('TG ( NW )',100), '1'=>array('Chan 1 Trade) ',100), '2'=>array('Chan 2 (Novice)',100), '3'=>array('Chan 3 (PK\PVP)',100), '4'=>array('Chan 4',100), '5'=>array('Chan 5',100), '6'=>array('Chan 6',100), '7'=>array('Chan 7 ( War)',100) ); $_config['reg_open'] = true; $_config['reg_md5'] = true; $_config['adm_logs'] = 'userLogs'; $_config['language'] = 'English'; //separate languages with , (comma) //ranking setup $_config['admins'] = array('admin01','johnd'); // Hide GM char names in the rankings? $_config['hide_gms'] = true; $_config['gms'] = array('gm01','gm02'); // donations $_config['dollar2points'] = 11; $_config['paypal_email'] = '[email protected]'; $_config['paypal_ipn'] = '#'; $_config['paypal_ty'] = '#'; //user cp $_config['ucp_allow_warp'] = false; $_config['ucp_allow_nation'] = true; $_config['ucp_pk_pay'] = 200000; $_config['ucp_allow_nation_pay'] = 10000000; $_config['ucp_allow_nation_level'] = 95; $_config['nation'] = array('Neutral','Capella','Procyon','GameMaster'); $_config['ucp_allow_free_alz'] =false; // LEvel Reset config $_config['ucp_lvl_allow'] = false; // true or false $_config['ucp_lvl_level'] = 175; $_config['ucp_lvl_payment'] = 100000000; $_config['ucp_lvl_inv_check'] = true; // if true will check if inventory and equipments are empty $_config['ucp_lvl_keep_stat'] = false; // if true keep stats is enabled $_config['ucp_lvl_bonus'] = 20; // Bonus per reset $_config['ucp_lvl_magic_clear'] = false; // if true will remove magic list $_config['ucp_lvl_limit'] = 10; // Limit number for resets $_config['ucp_lvl_col'] = 'RESETS'; // name of the column $_config['webshop_on'] = true; //items $_config['craft_level'] = array(9=>'3%',10=>'4%',11=>'5%',12=>'6%',13=>'8%',14=>'9%',15=>'10%'); $_config['craft_title'] = array(1=>"of Desctruction (Attak)",2=>"of Destruction(Magic)",3=>"of Destruction (Attack rate)",4=>"of Deathblow (Dmg)",5=>"of Deathblow (Rate)",6=>"of Luck (2slot item drop)",7=>"of Adept (Skill EXP)",8=>"of Amp (Sword)",9=>"of Amp (Magic)"); $_config['timelimit'] = array(array(0,0),array(0,1),array(0,2),array(0,3),array(0,5),array(0,10),array(0,12),array(1,0),array(2,0),array(3,0),array(5,0),array(7,0),array(10,0),array(14,0),array(20,0),array(30,0),array(45,0),array(60,0),array(90,0),31=>'Permanent'); // Title shown at the top of pages define('PAGE_TITLE','Name'); // Link to website or patch define('LINK_WSITE','http://website'); // Text to display for link define('NAME_WSITE','http://website'); // Link to forums define('LINK_FORUM','http://website'); // Text to display for link define('NAME_FORUM','http://website'); // MSSQL server connection details // 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','1'); // Category names for cash shop admin panel $cats=array(1=>'Costumes',2=>'Gear',3=>'Pets',4=>'Consumables',5=>'Items'); // Print debug info at the top of the cash shop pages define('TESTMODE',false); // 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); // Login server IP and port define("SVR_ADDR","127.0.0.1"); define("SVR_PORT","38101"); // Max players per channel $maxplayers=100; $channels = array( 1=> array("number"=>1, "type"=>0, "name"=>"Channel 1 (Novice)", "ip"=>"127.0.0.1", "port"=>"38111" ), 2=> array("number"=>2, "type"=>0, "name"=>"Channel 2 (Trade)", "ip"=>"127.0.0.1", "port"=>"38112" ), 3=> array("number"=>3, "type"=>1, "name"=>"Channel 3 (PK)", "ip"=>"127.0.0.1", "port"=>"38113" ), 4=> array("number"=>4, "type"=>4, "name"=>"Channel 4 (Premium)", "ip"=>"127.0.0.1", "port"=>"38114" ), 5=> array("number"=>5, "type"=>8, "name"=>"Channel 5 (War)", "ip"=>"127.0.0.1", "port"=>"38115" ), 6=> array("number"=>10, "type"=>16908368, "name"=>"Channel 10 (TG)", "ip"=>"127.0.0.1", "port"=>"38116" ) ); $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_GAM.'.dbo.cabal_character_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); ?>

================================================================

this my config.php

================================================================
<?php

///
///Cabal WEB SITE - Desenvolvido Por LuanRox - Destru :D Nao Remova Os Creditos
///

$titulo='Sugar Cabal Online'; //Title of Website, appears top of browser
$svname='Sugar Cabal Server'; //Server Name
$svversao='Ep 2'; //Server Version
$addr='192.168.25.95'; // Ip DataBases
$user='sa'; // Login SQL
$pass='nostealmypassword'; // Pass SQL
$drop="500x"; // Drop Rate
$exp="500x"; // Exp Rate
$skillsx="500x"; // Exp Skill Rate
$uplink="100mb"; // Upload Speed/ Internet Connection Speed
$alzes="200x"; // Alz Rate
$intesx="3"; // Items Per Drop
$forumlink="m"; // Link to Forum
$cliente=""; // Link to Download Client
$patch=""; // Link to Patch

// 2 Part Configuration
$_config['Server'] = "192.168.25.95"; // Ip SQL
$_config['User'] = "sa"; // User SQL
$_config['Pass'] = "nostealmypassword"; // Pass SQL
$_config['DB'] = "ACCOUNT"; // Database Account
$_config['DB2'] = "GAMEDB"; // Database GAMEDB
$_config['DB3'] = "CabalCash"; // Database Shop

$_config['ssh_user'] = 'root'; // User CentOS
$_config['ssh_ip'] = '192.168.25.94'; // IP CentOS
$_config['ssh_pass'] = 'sugarcabal'; // Pass CentOS

// 3 Part
define('DB_ADDR','192.168.25.95');
define('DB_USER','sa'); // DB USER
define('DB_PASS','nostealmypassword'); // DB Password

$_config['dbdebug'] = 0;
$ADODB_CACHE_DIR = 'tmp/';
error_reporting(0);
$_config['service'] = array(
'10'=>array('TG ( NW )',100),
'1'=>array('Chan 1 Trade) ',100),
'2'=>array('Chan 2 (Novice)',100),
'3'=>array('Chan 3 (PK\PVP)',100),
'4'=>array('Chan 4',100),
'5'=>array('Chan 5',100),
'6'=>array('Chan 6',100),
'7'=>array('Chan 7 ( War)',100)
);

$_config['reg_open'] = true;
$_config['reg_md5'] = true;
$_config['adm_logs'] = 'userLogs';
$_config['language'] = 'English'; //separate languages with , (comma)

//ranking setup
$_config['admins'] = array('admin01','johnd');

// Hide GM char names in the rankings?
$_config['hide_gms'] = true;
$_config['gms'] = array('gm01','gm02');

// donations
$_config['dollar2points'] = 11;
$_config['paypal_email'] = '[email protected]';
$_config['paypal_ipn'] = '#';
$_config['paypal_ty'] = '#';

//user cp
$_config['ucp_allow_warp'] = false;
$_config['ucp_allow_nation'] = true;
$_config['ucp_pk_pay'] = 200000;
$_config['ucp_allow_nation_pay'] = 10000000;
$_config['ucp_allow_nation_level'] = 95;
$_config['nation'] = array('Neutral','Capella','Procyon','GameMaster');

$_config['ucp_allow_free_alz'] =false;

// LEvel Reset config
$_config['ucp_lvl_allow'] = false; // true or false
$_config['ucp_lvl_level'] = 175;
$_config['ucp_lvl_payment'] = 100000000;
$_config['ucp_lvl_inv_check'] = true; // if true will check if inventory and equipments are empty
$_config['ucp_lvl_keep_stat'] = false; // if true keep stats is enabled
$_config['ucp_lvl_bonus'] = 20; // Bonus per reset
$_config['ucp_lvl_magic_clear'] = false; // if true will remove magic list
$_config['ucp_lvl_limit'] = 10; // Limit number for resets
$_config['ucp_lvl_col'] = 'RESETS'; // name of the column

$_config['webshop_on'] = true;
//items
$_config['craft_level'] = array(9=>'3%',10=>'4%',11=>'5%',12=>'6%',13=>'8%',14=>'9%',15=>'10%');
$_config['craft_title'] = array(1=>"of Desctruction (Attak)",2=>"of Destruction(Magic)",3=>"of Destruction (Attack rate)",4=>"of Deathblow (Dmg)",5=>"of Deathblow (Rate)",6=>"of Luck (2slot item drop)",7=>"of Adept (Skill EXP)",8=>"of Amp (Sword)",9=>"of Amp (Magic)");

$_config['timelimit'] = array(array(0,0),array(0,1),array(0,2),array(0,3),array(0,5),array(0,10),array(0,12),array(1,0),array(2,0),array(3,0),array(5,0),array(7,0),array(10,0),array(14,0),array(20,0),array(30,0),array(45,0),array(60,0),array(90,0),31=>'Permanent');


// Title shown at the top of pages
define('PAGE_TITLE','Name');

// Link to website or patch
define('LINK_WSITE','http://website');

// Text to display for link
define('NAME_WSITE','http://website');

// Link to forums
define('LINK_FORUM','http://website');

// Text to display for link
define('NAME_FORUM','http://website');


// MSSQL server connection details

// 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','1');

// Category names for cash shop admin panel
$cats=array(1=>'Costumes',2=>'Gear',3=>'Pets',4=>'Consumables',5=>'Items');

// Print debug info at the top of the cash shop pages
define('TESTMODE',false);

// 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);

// Login server IP and port
define("SVR_ADDR","127.0.0.1");
define("SVR_PORT","38101");

// Max players per channel
$maxplayers=100;

$channels = array(
1=> array("number"=>1, "type"=>0, "name"=>"Channel 1 (Novice)", "ip"=>"127.0.0.1", "port"=>"38111" ),
2=> array("number"=>2, "type"=>0, "name"=>"Channel 2 (Trade)", "ip"=>"127.0.0.1", "port"=>"38112" ),
3=> array("number"=>3, "type"=>1, "name"=>"Channel 3 (PK)", "ip"=>"127.0.0.1", "port"=>"38113" ),
4=> array("number"=>4, "type"=>4, "name"=>"Channel 4 (Premium)", "ip"=>"127.0.0.1", "port"=>"38114" ),
5=> array("number"=>5, "type"=>8, "name"=>"Channel 5 (War)", "ip"=>"127.0.0.1", "port"=>"38115" ),
6=> array("number"=>10, "type"=>16908368, "name"=>"Channel 10 (TG)", "ip"=>"127.0.0.1", "port"=>"38116" )
);

$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_GAM.'.dbo.cabal_character_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);

?>
 
Last edited by a moderator:
Upvote 0
[Thu May 28 01:48:40 2009] [error] [client 219.93.221.14] PHP Notice: Undefined variable: num_acc in C:\\xampplite\\htdocs\\index.php on line 172
[Thu May 28 01:48:40 2009] [error] [client 219.93.221.14] PHP Notice: Undefined variable: num_cha in C:\\xampplite\\htdocs\\index.php on line 176

$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_GAM.'.dbo.cabal_character_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);

?>

There is something odd in your php config i think. The error is saying the hilighted values have not been defined, yet they are first initialised to 0 so even if the queries to read the actual values afterward fails they are still defined.

Which of the 3 versions of that site do you have, id it the one modded by me?
 
Upvote 0
i think the problem is my pc problem coz i third pc is can host web connect mssql db acc no problem but just when you register say something missing......

hmmmm....

i think i using other site it will no problem... thx chumpy help...
 
Upvote 0
Back