bet me in!"); } $info = getuserinfo($_COOKIE["_ROBLOSECURITY"]); if(!$info){ logout(); header("Location: /"); exit(); } $success = false; $error = false; $userInfo = null; if (!empty($_COOKIE['_ROBLOSECURITY'])) { $userInfo = getuserinfo($_COOKIE['_ROBLOSECURITY']); $userId = $userInfo['UserId'] ?? null; if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['textbox']) && $userId) { $desc = trim($_POST['textbox']); if (strlen($desc) > 1000) { $desc = substr($desc, 0, 1000); } $stmt = $pdo->prepare("UPDATE users SET Description = :desc WHERE UserId = :id"); $success = $stmt->execute(['desc' => $desc, 'id' => $userId]); $userInfo = getuserinfo($_COOKIE['_ROBLOSECURITY']); } elseif (!$userId) { $error = true; } } else { $error = true; } ?> Afterworld - My Account