$id, 'username' => $username, 'password' => hashPassword($_POST['password']), 'registration_date' => date('Y-m-d H:i:s'), 'bucket_tokens' => 0, 'bucket_last_update' => 0, 'type' => 'testing', 'services' => '', ]); stopSession(); startSession(); $_SESSION['id'] = $id; $_SESSION['type'] = 'testing'; setupDisplayUsername($_POST['username']); redir();