myron 8238db3026 Add URL-based referral share verification with auto-scraper
Players now paste the URL of their post instead of just clicking a
platform button. The server fetches the URL and looks for the player's
referral code in the page content. If found, the share is auto-approved
and tokens are awarded immediately. If not (login wall, private page,
code missing), it falls into the pending queue with a reason so admins
can click the link directly for manual review.

- api/referrals.php: replace submit_share with URL-accepting version;
  add scrapeForReferralCode() (SSRF-guarded cURL, 8s timeout, 512KB cap)
  and inferPlatformFromUrl() helpers
- db/schema.sql: add share_url, auto_verified, verify_result columns
- index.php: replace platform buttons with URL input form; show auto-
  verify result inline; shares list shows URL and auto-verify badge
- admin/index.php: share cards show clickable URL, auto-check result
  label, and auto-verified tag

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 10:16:45 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
2026-05-22 12:52:50 +00:00
S
Description
Mirror of github.com/myronblair/tomtomgames
262 KiB
Languages
PHP 99.8%
Shell 0.2%