Commit Graph

32 Commits

Author SHA1 Message Date
Purple
6cb7f70546 Fix fatal error: logAudit function doesn't exist
- Renamed logAudit calls to logAction (the actual function name)
- Removed system event logging calls that used invalid action types
  (audit_log ENUM only accepts INSERT/UPDATE/DELETE)
- Fixes WebDAV backup success response not being returned

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 14:09:15 +00:00
Purple
59c26d8b54 Fix WebDAV backup to match curl -T behavior for Nextcloud
- Use CURLOPT_PUT with CURLOPT_INFILE instead of CURLOPT_POSTFIELDS
- This mimics curl -T (PUT with file upload) behavior
- Changed URL format: user enters full WebDAV path, filename appended
- Add output buffering to capture PHP warnings
- Include debug info in error responses
- Update UI labels and placeholders with Nextcloud example
- Changed password field to text type to allow entering "0"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 14:03:09 +00:00
Purple
3ae39830e2 Fix WebDAV backup error handling and license_info table queries
- Wrap license_info queries in try-catch for backup export functions
- Add detailed error messages to WebDAV backup responses (URL, HTTP code)
- Include WebDAV response body in error messages for debugging
- Update JS to display detailed error info in the UI

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 13:48:56 +00:00
Purple
c67d7ff139 Add database backup/restore and WebDAV backup features
Developer tab now includes:
- Database Backup & Restore section with download/upload JSON backup
- WebDAV Backup section to upload backups to Nextcloud/WebDAV servers
  with configurable server URL, username, and password

Features:
- Full JSON export of entries, settings, logos, users, license
- Import with data replacement and transaction safety
- WebDAV upload via cURL with PUT request
- Automatic timestamped filenames (ipmanager-YYYY-MM-DD_HH-mm-ss.json)
- Settings persistence for WebDAV credentials

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 13:42:13 +00:00
Purple
b040337d15 Fix schema check URL and improve response format
- Changed schema URL from geofeed-manager to ip-manager repo
- Added 'changes' array to schema_check response for frontend UI
- Added 'results' array to schema_apply response for frontend UI

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 13:34:47 +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
Purple
72d6f9ae3e fixed n8n webhooks 2026-01-18 11:40:06 +00:00
Purple
a84c699e5e fix cf access login 2026-01-18 02:36:41 +00:00
Purple
45f6ccc8a7 fix cf access login 2026-01-18 02:14:48 +00:00
Purple
35bcbb2d34 fix aws 2026-01-18 01:51:39 +00:00
Purple
93465b3bb1 fix aws 2026-01-18 01:41:35 +00:00
Purple
05c4753a52 fix aws 2026-01-18 00:55:55 +00:00
Purple
9326d78c3b fix aws 2026-01-18 00:53:17 +00:00
Purple
d5f3e4ebed fix aws 2026-01-18 00:24:37 +00:00
Purple
65ece6b121 fix aws 2026-01-18 00:14:03 +00:00
Purple
f808f9c316 fix aws 2026-01-18 00:10:02 +00:00
Purple
c24826669b fix aws 2026-01-18 00:05:26 +00:00
Purple
9e272cbbd2 fix aws 2026-01-17 23:59:48 +00:00
Purple
38f6d594f9 fix aws 2026-01-17 23:51:09 +00:00
Purple
9bb80eb7d9 fix aws 2026-01-17 23:37:18 +00:00
Purple
17fd69c4f7 fix width 2026-01-17 23:34:40 +00:00
Purple
a2d25266fb fix width 2026-01-17 23:30:03 +00:00
Purple
a971f71618 fix width 2026-01-17 23:20:33 +00:00
Purple
678ae9b5dd added hostname option 2026-01-17 22:48:45 +00:00
Purple
8b2bcbd7c9 added hostname option 2026-01-17 22:39:10 +00:00
Purple
51fa8c891e added hostname option 2026-01-17 22:33:02 +00:00
Purple
58b91fb2d3 added hostname option 2026-01-17 22:27:05 +00:00
Purple
23c0bf2ed4 update webapp 2026-01-17 21:06:07 +00:00
Purple
328b7badc1 update webapp 2026-01-17 20:43:29 +00:00
Purple
c49bf2ed31 update webapp 2026-01-17 20:33:42 +00:00
Purple
2385218831 add styling 2026-01-16 20:13:07 +00:00
Purple
178c2997bd first commit 2026-01-16 19:48:04 +00:00