any idea where I can change the default setting? I was sure I looked everywhere.
After the ls/gs db text in the config.php
it fills in the fields like this:
$conn = @mysql_connect(Gamedb_host, Gamedb_user, Gamedb_pass) or die(mysql_error());
also the beginning of the script up to Line 42 in Accountdata.class.php looks like:
Code:
<?php
class AccountData extends Factory{
function AccountData()
{
$this->elem = array(
"id" => null,
"name" => null,
"password" => null,
"activated" => null,
"access_level" => null,
"membership" => null,
"last_server" => null,
"last_ip" => null,
"reward_points" => null,
);
}
function SelectById($id)
{
$sql = "SELECT id,
name,
password,
activated,
access_level,
membership,
last_server,
last_ip,
reward_points
FROM ".Logindb.".account_data
WHERE id = ".mysql_real_escape_string($id);
return $this->PopulateObject($sql);
}
function FazerLogin()
{
$sql = "SELECT id,
name,
password,
activated,
access_level,
membership,
last_server,
last_ip,
reward_points
FROM ".Logindb.".account_data
WHERE activated = 1
AND name = '".mysql_real_escape_string($this->name)."'
AND password = '".mysql_real_escape_string($this->password)."'";
and all the accounts are activated, or "1".
:edit: I'll try and set the script to login to the db because maybe it's supposed to call config.php and its not yet.
---------- Post added at 01:37 AM ---------- Previous post was at 12:56 AM ----------
very strange...I added a db auth script at the beginning of Accountdata.class.php but, then i deleted it and reverted back to its original state.
But now I get this new error:
Code:
Warning: require_once(AccountData.class.php) [function.require-once]: failed to open stream: No such file or directory in /home/arrestme/public_html/votes/index.php on line 6
Fatal error: require_once() [function.require]: Failed opening required 'AccountData.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/arrestme/public_html/votes/index.php on line 6
---------- Post added at 02:46 AM ---------- Previous post was at 01:37 AM ----------
ok so this is obviously pretty complicated and no one wants to touch it. I did send an email to one guy I think created or helped create it.
Do you think if I host the server tables on x10hosting it will be better overall? Would it be more laggy for the player, or would there be no difference rly? I'd still run the server files on my computer, but i'll have it connect to my x10hosting sql db i create. Good idea? Yes ? No? Maybe So?