Commit Graph

117 Commits

Author SHA1 Message Date
infosave2007 bbb0fbeeb9 feat: добавлена возможность ручного ввода времени и трафика
- Добавлены custom input поля для expiration (секунды) и traffic (МБ)
- Добавлена функциональность редактирования клиента
- Исправлена migration 007 (AFTER expires_at)
- Удалены дублирующиеся миграции (0025, 0044, 0053, 0057)
- Удалён старый init.sql (заменён на 001_init.sql)
- Добавлены переводы для custom полей на 6 языках
2025-11-08 10:45:05 +03:00
infosave2007 b6cf9cbab7 Add traffic limit functionality
- Add traffic_limit field to vpn_clients table (migration 007)
- Add traffic limit management methods in VpnClient class
- Add API endpoints: set-traffic-limit, traffic-limit-status, overlimit
- Add UI for setting limits when creating clients
- Add traffic limit column in clients table with visual indicators
- Add automatic traffic limit check via cron (bin/check_traffic_limits.php)
- Add translations for traffic limits (6 languages)
- Update README with traffic limit documentation
2025-11-08 09:56:25 +03:00
infosave2007 5510e0b7b1 Fix(docs) cron 2025-11-08 09:41:54 +03:00
infosave2007 de73728733 Add automatic cron for client expiration check 2025-11-08 09:36:23 +03:00
infosave2007 da2bd8f8fa Add backups/ to .gitignore 2025-11-08 09:16:13 +03:00
infosave2007 8163684a79 Remove backups directory from git tracking 2025-11-08 09:15:57 +03:00
infosave2007 ea516bdd6f feat(database): add complete database schema with user, server, client, and translation tables 2025-11-08 09:14:59 +03:00
infosave2007 1f91f17f57 Add multilingual support with translations for German, Russian, French, and Chinese
Added time limits and backup functions for servers
2025-11-08 09:14:20 +03:00
infosave2007 1deea2e4b7 fix(docs): update installation commands for composer and translate script 2025-11-07 23:00:07 +03:00
infosave2007 ede8d610f7 fix(docs): correct directory name in installation instructions 2025-11-07 22:47:48 +03:00
infosave2007 abcad2cfe1 settings namespace JWT 2025-11-07 17:54:36 +03:00
infosave2007 ab500a1f98 refactor(JWT): improve secret key retrieval and storage logic
- Update database query to use namespace/key pattern for better organization
- Add JSON decoding for stored secret values
- Ensure minimum key length requirement is consistently enforced
- Simplify key generation and storage with proper JSON encoding
2025-11-07 17:49:28 +03:00
infosave2007 a52aba25d8 Add QR code support in API endpoints
- Updated /api/clients/create to return config and qr_code
- Updated /api/clients/{id}/details to include config and qr_code
- Added new endpoint /api/clients/{id}/qr for getting QR code only
- Added API_EXAMPLES.md with usage examples and integration code
- Updated README.md API documentation
2025-11-07 15:25:59 +03:00
infosave2007 f538fb65f1 Update installation instructions with correct repository URL 2025-11-07 13:58:27 +03:00
infosave2007 5d039484a1 Remove tests files 2025-11-07 13:36:54 +03:00
infosave2007 a33af60f2d Add project files 2025-11-07 13:34:06 +03:00
infosave2007 3402b19f2c first commit 2025-11-07 13:33:04 +03:00