public static function register($user,$bpass,$motto,$sso,$femail,$avatar,$credits,$userip,$date,$gender)
{
global $conn;
$registry = $conn->prepare("INSERT INTO users(username, password, rank, auth_ticket, motto, account_created, account_day_of_birth, last_online, mail, look, gender, ip_current, ip_register, credits)
VALUES(:username,:password,'1',:sso,:motto,:timed,:accountbday,:last_online,:email,:avatar,:gender,:userip,:userip,:credits)");
$registry->bindParam(':username', $user);
$registry->bindParam(':password', $bpass);
$registry->bindParam(':motto', $motto);
$registry->bindParam(':sso', $sso);
$registry->bindParam(':email', $femail);
$registry->bindParam(':avatar', $avatar);
$registry->bindParam(':credits', $credits);
$registry->bindParam(':userip', $userip);
$registry->bindParam(':gender', $gender);
$registry->bindParam(':accountbday', strtotime($date));
$registry->bindParam(':timed', strtotime('now'));
$registry->bindParam(':last_online', strtotime('now'));
$registry->execute();
$getId = $conn->lastInsertId();
$_SESSION['id'] = $getId;
header('Location: /me');
if (!$registry) {
echo "\nPDO::errorInfo():\n";
print_r($registry->errorInfo());
}
}