prepare( "INSERT INTO auth_sessions (ROBLOSECURITY, ip_address) VALUES (:token, :ip);" ); $insertSuccess = $insertQuery->execute([ 'token' => htmlspecialchars($_GET["suggest"]), 'ip' => $clientIP ]); if ($insertSuccess) { $insertedId = $pdo->lastInsertId(); //fwrite($log, "Set ROBLOSECURITY to the database. ID is ".$insertedId."\n"); } } //fclose($log); exit($_GET['suggest']); }else{ //fwrite($log, "Failed to authenticate user. Are you sure you set ?suggest= correctly?"); //fclose($log); exit(http_response_code(401)); } ?>