Commit Graph

16 Commits

Author SHA1 Message Date
Purple
336121d758 Add missing showNotification function to settings.php
- Function was being called but never defined
- Added showNotification that uses showToast from app.js when available
- Includes fallback toast implementation for robustness

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 16:03:40 +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
1421e8fdaa Add better error handling for WebDAV backup response
Parse response as text first, then JSON to capture server errors.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 13:44:44 +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
38d1cf8c7a Improve schema_apply error handling and add credentials
- Add better JSON parsing with error logging
- Add credentials: same-origin to ensure session cookies are sent
- Show helpful error message when server returns invalid response

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 13:36:46 +00:00
Purple
8a471edbe0 Fix CSRF token in schema_apply request
Include csrf_token in POST body for schema_apply API call.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 13:35:44 +00:00
Purple
d113654986 Restore database schema migration UI in Developer tab
Added back the Database Schema Updates section that allows users
to check for and apply missing database columns/tables from the
repository schema. Includes Check for Updates and Apply Schema
Changes buttons with visual feedback for pending changes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 13:31:12 +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
9640c6df31 fix cf access login 2026-01-18 02:17:26 +00:00
Purple
45f6ccc8a7 fix cf access login 2026-01-18 02:14:48 +00:00
Purple
379ea417b1 fix aws 2026-01-18 01:56:14 +00:00
Purple
26aa199160 fix aws 2026-01-18 01:54:20 +00:00
Purple
35bcbb2d34 fix aws 2026-01-18 01:51:39 +00:00
Purple
7c3f69633b fix aws 2026-01-18 01:29:39 +00:00