LCKB
websites problem - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep1 Support (https://lckb.dev/forum/forumdisplay.php?fid=177)
+------ Forum: Solved Topics (https://lckb.dev/forum/forumdisplay.php?fid=145)
+------ Thread: websites problem (/showthread.php?tid=2440)

Pages: 1 2


- odaichaos - 09-15-2013


hey all,

got problem with websites..almost none of the website posted here works for me..i chnage the settings files to my server info..but still dont work, either with " unexpected "}" somewhere " or sth like that..any suggestions for a good ep1 site?




- Nymphetamine - 09-15-2013

Most of released here work at me. There is something wrong with ur configuration of them




- odaichaos - 09-15-2013

i fill all config stuff..and not only some website..just all of them >.>




- Nymphetamine - 09-15-2013


i fill all config stuff..and not only some website..just all of them >.>

Problem is not that its not filled,problem is how its filled 




- odaichaos - 09-15-2013

when it says " fix settings.php to edit the website" and i change exactly how it needs..dont think i fill any wrong >.<




- Nymphetamine - 09-15-2013


when it says " fix settings.php to edit the website" and i change exactly how it needs..dont think i fill any wrong >.<

Paste here ur settings php in spoiler please




- odaichaos - 09-15-2013

not really sure how to do a spoiler replay xD




- odaichaos - 09-15-2013


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

}

 

 

 

?>

 

 




- Paramount - 09-15-2013

Are you sure you have created the newproject_site database?




- Sutz - 09-15-2013


Thats the strangest settings file I have ever seen Oo

Cough up 30GBP an buy a real site >.

 

2

 

Ill even help you set it up.