VPLand V1 - PHP/MySQL

INSTALL
1) Upload contents to public_html.
2) Rename config.example.php -> config.php.
3) Edit config.php on the server: bot token, bot username, DB password, V2Ray Fast admin API token.
4) Visit /install.php once. Then DELETE install.php.
5) Visit /setwebhook.php once. Expected: ok=true.
6) In cPanel Cron Jobs add cron/usage.php every 5 minutes, e.g.:
   /usr/local/bin/php /home/vplandsv/public_html/cron/usage.php >/dev/null 2>&1
   (PHP path may differ on your host.)
7) DELETE setwebhook.php after successful webhook setup.

IMPORTANT PANEL API NOTE
The project is independent from MiliVPN. V2Ray Fast endpoint paths/response keys vary by installation. config.php contains isolated endpoint settings. The bot framework is complete, but before live sales verify create/get/disable/usage endpoints and response fields with your panel API documentation. Do not guess these in production.

Implemented core flows:
- 7 monthly plans and card-to-card receipt flow
- Admin approval -> repeated username request until panel says free -> create/send subscription
- wallet storage + 5% referral reward after completed purchase
- one-time 500MB/24h test flag (panel creation mapping requires verified endpoint)
- services list, restart, support, broadcast
- unlimited usage alerts at 100/150GB with disable/continue actions
- separate DB/config; no MiliVPN dependency

Security: keep config.php private and never publish tokens/passwords.
