Code:
Parse error: parse error in C:\wamp\www\co\config.php on line 140
Here is the code:
Code:
<?php
// Configurations
$myhost='localhost'; // MySQL database address // :33006
$mypass='test'; // MySQL server login
$myuser='test'; // MySQL server pass
$accdb='zf'; //your server account database
//$accdb='account_zf'; //your server account database
$gamedb='zf'; //your server game database
$pageTitle='Conquer Online 2 restricted test server'; // page title if u wanna use it
//register.php pass.php //HOWEVER I suggest if u rly meant it seriously about doing the proper server
// to 1. use changed server and at least md5 pass of users and 2. use crypted ways for register and pass ... etc
// do it in pro way OR get out of my SIGHT !
$passhash=false; // set to true if u wish to save (md5)hash of pass instead of plain text pass
$requireCAPTCHA=false; //set true if u want check for robot/human registration
$chPass=true; // how much info demand from user if he wanna change his password
// false ownerID true ownerID + reply
// as for edits or way that those files are done well I hate this sort of work myself so sry for that mess
//status.php
$serveraddress='88.67.213.73'; //your server ip
$serverport=5816; //your server connection port
$servername='Eternity'; //your server name
//ranks.php
$tableSet=' width="440" border="1" align="center"'; // rank tables settings html code
$limit=33; //records[lines/rows] limit for ranks table
$limit2=13; //records[lines/rows] limit for half of an rank table guilds
$longProfNames=false; //longnames(true) means full proffesion name, set false to disable and use the old fasion way
// DON'T CHANGE ANYTHING BELOW THIS LINE
// // // // // // // // // // // // // // // // // // // //
// even more if u dont know what u r doing !!!
$MySQL=mysql_connect($myhost,$myuser,$mypass);
mysql_select_db($gamedb);
if ($requireCAPTCHA) require_once './inc/class.captcha.php';
//if (!isset($fileSent)) $fileSent=true;
if (!isset($_GET['download'])) $fileSent=false;
else $fileSent=true;
// mainly ranks.php ...
function prof ($val) { //params> int_proffesion returns>string_proffesion //made for prof and old_prof
global $longProfNames;
$prof=Array ( 10=>'InternTrojan', 11=>'Trojan',
12=>'VeteranTrojan', 13=>'TigerTrojan', 14=>'DragonTrojan', 15=>'TrojanMaster',
20=>'InternWarrior', 21=>'Warrior', 22=>'BrassWarrior', 23=>'SilverWarrior', 24=>'GoldWarrior', 25=>'WarriorMaster',
40=>'InternArcher', 41=>'Archer', 42=>'EagleArcher', 43=>'TigerArcher', 44=>'DragonArcher', 45=>'ArcherMaster',
100=>'InternTaoist', 101=>'Taoist', 112=>'MetalTaoist', 113=>'MetalWizard', 114=>'MetalMaster', 115=>'MetalSaint',
122=>'WoodTaoist', 123=>'WoodWizard', 124=>'WoodMaster', 125=>'WoodSaint',
132=>'WaterTaoist', 133=>'WaterWizard', 134=>'WaterMaster', 135=>'WaterSaint',
142=>'FireTaoist', 143=>'FireWizard', 144=>'FireMaster', 145=>'FireSaint',
152=>'EarthTaoist', 153=>'EarthWizard', 154=>'EarthMaster', 155=>'EarthSaint',
190=>'InternTaoist', 191=>'Taosit', 192=>'GeneralTaoist', 193=>'Wizard', 194=>'Master', 195=>'Saint',
30=>'Knight' );
if (!$longProfNames) {
if ($val>9 && $val<16) return 'Trojan';
if ($val>19 && $val<26) return 'Warrior';
if ($val>39 && $val<46) return 'Archer';
if ($val>99 && $val<102) return 'Taolist';
if ($val>131 && $val<136) return 'Water';
if ($val>141 && $val<146) return 'Fire';
if ($val>0) return 'E> Taolist??';
}
//return (Empty($val) ? '' : 'Error'); // when old prof is not set print nothing in table
return (Empty($val) ? '' : (isset($prof[$val]) ? $prof[$val] : 'Error'));
}
function pk ($val) { //params> int_pk returns>string_PKpoints
if ($val>=1000) return '<font color="black"><b><u>'.$val.'</u></b></font>';
if ($val>=100) return '<font color="black"><b>'.$val.'</b></font>'; // <font color="darkgreen">
if ($val>=30 && $val<100) return '<font color="red">'.$val.'</font>';
return $val; //I know ... lets say ... STANDART dot
}
function noble ($val,$cash) { //params> int_nobleNr. int_donated returns>string_nobleRank
if ($val<4) return 'King/Queen';
if ($val<16) return 'Prince';
if ($val<51) return 'Duke';
if ($cash>200000000) return 'Earl';
if ($cash>100000000) return 'Baron';
if ($cash>30000000) return 'Knight';
return 'Error'; //I know ... lets say ... STANDART dot
}
/*
<script type="text/javascript">
function toggle(a,b) {
a = document.getElementById(a);
b = document.getElementById(b);
var display = a.style.display ? '' : 'none';
a.style.display = display;
var displaydva = a.style.display ? 'block' : 'none';
b.style.display = displaydva;
}
</script>
<script type="text/javascript"> function Rshow(o) {
var a = document.getElementByID('b'+o+'');
a.style.display='none';
document.getElementByID('row'+o+'').style.display='block';
}
function Rhide(o) {
document.getElementByID('b'+o+'').style.display='block';
var a = document.getElementByID('row'+o+'');
a.style.display='none';
} </script>
*/
if (!$fileSent) {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome To Ghosts Conquer OnLine private Server</title>
<script type="text/javascript" src="./inc/md5.js"></script>
<!-- Created by <someone> @ webyt.net -->
<link href="default.css" rel="stylesheet" type="text/css" />
</head><body>
<script type="text/javascript">
function todd(a,b) {
a = document.getElementById('row' + a + b);
//var display = a.style.display ? '' : 'none';
//a.style.display = display;
a.style.display='block';
}
</script>
<?
}
?>






