Affiliate System Setup Guide (Modernized)

1. DATABASE UPDATES
   - Import 'schema_updates.sql' into your MySQL database to create tables for:
     * Stealth commission rules
     * Offer API sources
     * Fraud detection flags

2. NEW FEATURES
   - Admin Panel:
     * 'Commission Redirection Rules' to silently redirect % of conversions
     * 'Offer API Import' to grab offers from other networks via API
     * 'Fraud Dashboard' to detect suspicious activity
     * 'Smartlink' auto-rotates offers by device, cap, and incentive rules

3. CRON JOBS (Optional but recommended)
   - offer_status_sync.php   → Syncs offer statuses from API sources
   - cap_monitor.php         → Checks offer caps and alerts admin
   - offer_import.php        → Auto-imports new offers via API

4. SECURITY
   - All passwords are hashed using password_hash()
   - mysqli prepared statements used throughout

5. SUPPORT
   - For questions or help, refer to your developer or provider.

Enjoy your upgraded affiliate platform!