2 Commits

Author SHA1 Message Date
Purple
ebfbf27b9c Fix license system - tier-aware key generation and activation
- generateLicenseKey() now accepts tier parameter and prefixes keys:
  T=Trial, B=Basic, P=Professional, E=Enterprise
- Added detectLicenseTier() to extract tier from key prefix
- Updated isValidLicenseFormat() regex to accept tier prefixes
- Simplified activateLicense() to use detectLicenseTier()
- Added license_generate API endpoint for generating sample keys
- Added "Generate Sample License Key" UI section with tier selector
- Added copy/use buttons for generated keys

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-10 17:45:23 +00:00
Purple
753661a34c Add licensing system for ISP customers
- Add license.php with tiered licensing (Trial, Basic, Professional, Enterprise)
- Add license_info table to database schema
- Add license management UI to settings (License tab)
- Add license status, activation, and usage API endpoints
- Add entry and user limit enforcement based on license tier
- Add feature flags for webhooks, IP enrichment, whitelabel, PTR records
- Update README with licensing documentation and customer deployment guide

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 13:21:44 +00:00