Some minor problems that I need fixed.
I have a few minor problems going on with my server, I am hoping somebody can help me with these problems soon. I been having a hard time trying to fix it.
My first problem isn't exactly a problem, but it's a question of what to use for other people to play on the server. Here is a code, which is the best to use? False? or True?
Code:
Use_Localhost = true; // true = packets are logged, false = others can connect to server
My second problem is kind of more important. I am currently using a Hamachi IP, and when I put up a CMS website for people to register to my SQL accounts database, it doesn't let them go to the website. It gives them a Forbidden Access Error. Is there any fix to this? Here is my config
Code:
<?phpsession_start();
if(basename($_SERVER["PHP_SELF"]) == "config.php"){
die("Error!");
}
$host['hostname'] = 'localhost'; // localhost 4 meh
$host['user'] = 'root'; // root 4 meh
$host['password'] = ''; // nu pass 4 meh
$host['database'] = 'exiledms'; // mah db naem
$serverip = "25.11.191.149"; // canyouseeme.org
$loginport = "8484"; // 8484 lulz
$servername = "BloomStory"; // naem here plox
$exp = "100"; // exp
$meso = "50"; // mesarz
$drop = "2"; // drup
$version = "v1.17"; // Version, Ex: v0.00
$forum = "/forum"; // Forums
$client = "http://www.mediafire.com"; // Client Download Link
$setup = "http://download3.nexon.net/maplestory/fullversion/MSSetupv117.exe"; //MSSetuppp
//Features (You can put pictures here too)
$features = "
<p>Hired Merchant</p>
<p>Professional Staff</p>
<p>Mind Rate</p>
<p>Rebirths</p>
<p>Custom MSI System</p>
<p>Most Mihile Skills Fixed</p>
<p>Vote for NX</p>
<p>Update Daily</p>
<p>Full Cash Shop</p>
<p>Tempest Stuff</p>
<p>Great Community</p>
<p>Dojo</li>";
$votelink = "http://www.gtop100.com"; // Vote Link
$scrollingtext = "BloomStory !."; //Marquee text
$paypal = "AloeDEV@hotmail.com"; //Paypal email
$online = '<font color="green">Online</font>';
$offline = '<font color="red">Offline</font>';
//MySQLL~~ ------------------------------------------------------------------------------------
mysql_connect($host['hostname'],$host['user'],$host['password']) OR die("BloomCMS Powered by {God}_Win");
mysql_select_db($host['database']) OR die("Edit Your Config.php");
function sql_injectionproof($sCode) {
if (function_exists("mysql_real_escape_string")) {
$sCode = mysql_real_escape_string($sCode);
} else {
$sCode = addslashes($sCode);
}
return $sCode;
}
?>
My last problem is a bit weird, when I make them a account directly from MySQL it auto-logs them into MY account with MY characters. But when I make them a account on the website, it stays at the login screen and their account works fine. Any fix?
Re: Some minor problems that I need fixed.
Quote:
Originally Posted by
LastAct
I have a few minor problems going on with my server, I am hoping somebody can help me with these problems soon. I been having a hard time trying to fix it.
My first problem isn't exactly a problem, but it's a question of what to use for other people to play on the server. Here is a code, which is the best to use? False? or True?
Code:
Use_Localhost = true; // true = packets are logged, false = others can connect to server
My second problem is kind of more important. I am currently using a Hamachi IP, and when I put up a CMS website for people to register to my SQL accounts database, it doesn't let them go to the website. It gives them a
Forbidden Access Error. Is there any fix to this? Here is my config
Code:
<?phpsession_start();
if(basename($_SERVER["PHP_SELF"]) == "config.php"){
die("Error!");
}
$host['hostname'] = 'localhost'; // localhost 4 meh
$host['user'] = 'root'; // root 4 meh
$host['password'] = ''; // nu pass 4 meh
$host['database'] = 'exiledms'; // mah db naem
$serverip = "25.11.191.149"; // canyouseeme.org
$loginport = "8484"; // 8484 lulz
$servername = "BloomStory"; // naem here plox
$exp = "100"; // exp
$meso = "50"; // mesarz
$drop = "2"; // drup
$version = "v1.17"; // Version, Ex: v0.00
$forum = "/forum"; // Forums
$client = "http://www.mediafire.com"; // Client Download Link
$setup = "http://download3.nexon.net/maplestory/fullversion/MSSetupv117.exe"; //MSSetuppp
//Features (You can put pictures here too)
$features = "
<p>Hired Merchant</p>
<p>Professional Staff</p>
<p>Mind Rate</p>
<p>Rebirths</p>
<p>Custom MSI System</p>
<p>Most Mihile Skills Fixed</p>
<p>Vote for NX</p>
<p>Update Daily</p>
<p>Full Cash Shop</p>
<p>Tempest Stuff</p>
<p>Great Community</p>
<p>Dojo</li>";
$votelink = "http://www.gtop100.com"; // Vote Link
$scrollingtext = "BloomStory !."; //Marquee text
$paypal = "AloeDEV@hotmail.com"; //Paypal email
$online = '<font color="green">Online</font>';
$offline = '<font color="red">Offline</font>';
//MySQLL~~ ------------------------------------------------------------------------------------
mysql_connect($host['hostname'],$host['user'],$host['password']) OR die("BloomCMS Powered by {God}_Win");
mysql_select_db($host['database']) OR die("Edit Your Config.php");
function sql_injectionproof($sCode) {
if (function_exists("mysql_real_escape_string")) {
$sCode = mysql_real_escape_string($sCode);
} else {
$sCode = addslashes($sCode);
}
return $sCode;
}
?>
My last problem is a bit weird, when I make them a account directly from MySQL it auto-logs them into MY account with MY characters. But when I make them a account on the website, it stays at the login screen and their account works fine. Any fix?
If you make the website only for the intention of letting them make a account, I recommend you to use AutoRegister.