$os = $_GET['OS']; } } $mac = ''; if (isset($_GET['mac'])) { $mac = $_GET['mac']; } else { if (isset($_GET['MAC'])) { $mac = $_GET['MAC']; } } if (isset($_GET['legacy'])) { $legacy = $_GET['legacy']; $_SESSION['legacy'] = true; } $user = User::createUserUdid($_GET['UDID'], $os, $mac); $_SESSION['userID'] = $user->getID(); $_SESSION['udid'] = $user->getUDID(); header("Location: {$serverRoot}choosemission.php"); exit; } else { if (!empty($user)) { if (isset($_GET['legacy'])) { $legacy = $_GET['legacy']; $_SESSION['legacy'] = true; } $_SESSION['userID'] = $user->getID(); $_SESSION['udid'] = $user->getUDID(); $param .= '&legacy=' . $_GET['legacy']; header("Location: {$serverRoot}charhome.php"); exit;