ok heres the settings.php
<?php
$server_ip = 127.0.0.1;
$password = <my password here>;
$user = root;
$database = newproject_db;
$database1 = newproject_site; //site database
$database2 = newproject_db_auth;
$database3 = newproject_data;
$points = 2; //How many points you want given every 5 minutes
$download =
<p>These are all the downloads avaliable.<br />Each option has a different download speed so try each of them for best results.<br/>If you have any problems report it <a href="
2">here</a></p>
<p><br /><a href="
2"><font color=green>Option 1</font> - Download!</a> (791mb)<br />To unpack the client u will need <a href="
2
<p><br /><a href="
2"><font color=green>Option 2</font> - Download!</a> (791mb)<br />To unpack the client u will need <a href="
2
<p><br /><a href="
2"><font color=green>Option 3</font> - Download!</a> (791mb)<br />To unpack the client u will need <a href="
2
; //Download info
$features =
This is a new highrate Episode1 LastChaos Private Server.<br />
We have lots of custom content for you waiting to be discovered!<br />
This server includes nightshadow 100% working like no other with all skills and armour.</p>
<p><strong>Our rates are :</strong><br />
Exp : x250<br />
SP : x0 ( All skills are free! )<br />
Gold : x20<br />
Droprate : x35<br />
Upgrade : 99%<br />
Pet Exp : x200<br />
Start level : 90 ( with 150k sp and 50mill! )
;
$about =
<p>This is the about page</p>
; //About page info
//No more editing below!!!!
$connect = mysql_connect($server_ip, $user, $password) or die(mysql_error());
mysql_select_db($database1) or die(mysql_error());
$settings = mysql_query("SELECT title, forum, copyright, vote1, vote2, announcement FROM t_settings");
$get_settings = mysql_fetch_array( $settings );
$title = $get_settings[title];
$forum = $get_settings[forum];
$copyright = $get_settings[copyright];
$vote1 = $get_settings[vote1];
$vote2 = $get_settings[vote2];
$announcement = $get_settings[announcement];
$sql="SELECT a_ip FROM t_ipban";
$result=mysql_query($sql);
while($rows=mysql_fetch_array($result)){
$banned=$rows["a_ip"];
$bad_ip = $banned;
function get_real_ip()
{
if (isset($_SERVER["HTTP_CLIENT_IP"]))
return $_SERVER["HTTP_CLIENT_IP"];
elseif (isset($_SERVER["HTTP_X_FORWARDED_FOR"]))
return $_SERVER["HTTP_X_FORWARDED_FOR"];
elseif (isset($_SERVER["HTTP_X_FORWARDED"]))
return $_SERVER["HTTP_X_FORWARDED"];
elseif (isset($_SERVER["HTTP_FORWARDED_FOR"]))
return $_SERVER["HTTP_FORWARDED_FOR"];
elseif (isset($_SERVER["HTTP_FORWARDED"]))
return $_SERVER["HTTP_FORWARDED"];
else
return $_SERVER["REMOTE_ADDR"];
}
$visitor_ip = get_real_ip();
if($visitor_ip == $bad_ip) header ("location: banned.php");
}
?>