<div class="tablecell content both-border"> <div class="pad"> <?php bigtitle(); /*If account creation is closed, do not show the page!*/ if ($account_creation_closed) { die("Server Is Currently Closed To New Players"); } ## ## ## New Registration Process ## ## $facebook = new facebook(array('appId' => FB_ID, 'secret' => FB_SECRET)); $request = $facebook->getSignedRequest(); if ($request) { $register = $request['registration']; try { $db = db::init(); $fbId = isset($request['user_id']) ? $request['user_id'] : 0; $user = new user(); if ($fbId != 0) { if ($user->fbLogin($fbId)) { /*They have account, throw them back to the main page*/ header('Location: index.php'); exit; } } $sth = $db->prepare("SELECT * FROM " . $db_prefix . "account WHERE username = ?"); $sth->execute(array($register['username']));