CSA License Server - Standalone (per-domain binding)
-----------------------------------------------------

Files:
- config.php         : Database and admin password (edit after install).
- license-server.php : API endpoint used by client plugins.
- add_license.php    : Simple admin UI to add/revoke licenses (password protected).
- install.sql        : SQL to create database and table.
- readme.txt         : This file.

Quick install (example on Linux / cPanel server):
1. Upload all files to a folder on your webserver, e.g. /home/user/public_html/license-server/
2. Edit config.php and set DB credentials and admin password.
3. Import install.sql into your MySQL server (via phpMyAdmin or mysql CLI):
   mysql -u root -p < install.sql
4. Open add_license.php in browser, login with the admin password, and create licenses.
5. From client plugin call the API:
   https://yourdomain.com/license-server.php?key=LICENSEKEY&domain=clientdomain.com
   Optional: if you set CSA_API_SECRET in config.php, include &secret=YOUR_SECRET in the call.
6. API responses are JSON. Example success:
   { "valid": true, "message": "License active", "bound_domain": "clientdomain.com" }

Security notes:
- Use HTTPS (TLS) — do not run on plain HTTP in production.
- Change the admin password in config.php after installation.
- Consider setting CSA_API_SECRET to a random value and include it in plugin validation calls for extra security.
- Restrict access to add_license.php via IP or additional authentication if needed.

