I kinda started creating the register function to create accounts, but I think I'm missing a table to insert into or possibly some fields, who knows. Uhm
PHP Code:
public function user_register($username, $password, $email)
{
GLOBAL $db;
$query = 'INSERT INTO users (username, password, mail, auth_ticket, rank, look, gender, motto, credits, activity_points, last_online, account_created) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';
if ($statement = $db->prepare($query))
{
$statement->bind_param('ssssisssiiii', $username, md5($password), $email, '', 1, 'sh-290-80.ch-210-66.hd-180-1.lg-285-82.hr-100-61', 'M', '', '500', '500', time(), time());
$statement->execute();
if($statement->fetch())
{
return true;
$statement->close();
}
else
{
return false;
}
}
}
I've also assigned the user data to the personal page when you're logged in (attachment is below).
The things I need to tick off now for the front end to be complete are.. Account, Staff, Users (online), client, finish off maintenance page and I'll just do the layout for shop, coding can be implemented by yourself.
I'm going to rework the layout for the housekeeping, I noticed that the code ain't compatible for I.E. I'll try to keep the ids and classes normalised with the styling.