AdsTracker — install on cPanel
==============================

1. cPanel > MySQL Databases: create a database and a user, give the user ALL PRIVILEGES on it.
   Write down: database name, user, password (cPanel adds your account name in front, e.g. myacc_adstracker).
2. cPanel > File Manager > public_html: Upload this zip, then Extract. You get the folder "adstracker".
   (The app will be at https://YOUR-DOMAIN/adstracker/ — rename the folder if you want another path.)
3. Open https://YOUR-DOMAIN/adstracker/install.php and fill in the database login.
   It copies all your data over in steps (keep the page open until it says done).
4. When it says done, it shows the cron line. cPanel > Cron Jobs > add it (every 5 minutes).
5. WhatsApp is pulled from WAHA by that cron — nothing to change. Only if you set a WAHA webhook: point it to https://YOUR-DOMAIN/adstracker/webhook/wa.php
6. Delete the zip from public_html. install.php locks itself after install (it refuses to run again).

Needs: PHP 8.0+ with pdo_mysql, curl, mbstring, zip, fileinfo (cPanel > Select PHP Version).
install/config.json holds your Meta token and API keys — keep this zip private.
