Activation

In order to be able to play Afterworld, you must Insert the Invite key to access.

Invite key:
Please input a valid key.
Please fill the key.

'; exit(); } $invitekey = $_POST["invitekey"]; $FindKey = $pdo->prepare('SELECT * FROM invitekeys WHERE invitekey = :invitekey'); $FindKey->execute(['invitekey' => $invitekey]); $row = $FindKey->fetch(PDO::FETCH_ASSOC); if (!$row){ echo'

Invalid Key.

'; exit(); } $count = $row["used"] + 1; $updateKey = $pdo->prepare('UPDATE `invitekeys` SET `used` = :count WHERE `genId` = :genid;'); $updateKey->execute(['count' => $count, 'genid' => $row["genId"]]); if ($updateKey->rowCount() === 0) { echo '

An Unknown error occurred.

'; exit(); } $updateuser = $pdo->prepare('UPDATE `users` SET `activated` = 1 WHERE `ROBLOSECURITY` = :token;'); $updateuser->execute(['token' => $_COOKIE["_ROBLOSECURITY"]]); if($updateuser){ header("Location: /home/"); exit(); }else{ echo'

An Unknown error occured while activating your account..

'; exit(); } } ?>