Thank you for being part of our growing community of learners and developers.
— The Scriptzhub Team
# Changelog
All notable changes to this project will be documented in this file.
## [1.0.5] - 2025-10-01
### Added
- **Auto Update System Enhancement**: Complete auto-update functionality with license verification
- Automatic update detection and installation from central API
- License verification before update installation
- Automatic file download, extraction, and installation
- Database migration execution and cache clearing
- Version tracking in database after successful updates
- Comprehensive success/failure messaging with user feedback
- Auto page refresh after successful updates
- **Version Management System**: Advanced version tracking and validation
- Database-based version storage in settings table
- Version progression validation to prevent downgrading
- Sequential update enforcement (1.0.3 → 1.0.4 → 1.0.5)
- Version history tracking with detailed update records
- Automatic version update after successful installations
- **Enhanced Update Package Service**: Complete update file processing
- Automatic update package extraction and installation
- File backup creation before updates
- Cross-platform path handling for Windows/Linux compatibility
- Comprehensive error handling and logging
- File installation progress tracking
### Fixed
- **Version Update Logic**: Fixed version update to modify existing database record instead of creating new ones
- Now updates the main settings record (ID: 1) instead of creating new rows
- Proper `last_updated_at` timestamp updates
- Version history tracking in separate records for audit purposes
- **Version History Display**: Fixed version history loading and display
- Corrected API endpoint for fetching version history
- Fixed JavaScript to properly load and display version information
- Resolved "No Version History Available" issue
- **Update Controller Integration**: Fixed auto-update process integration
- Proper `UpdatePackageService` injection and usage
- Corrected method calls and parameter passing
- Fixed file path handling for update installation
- **Middleware AJAX Handling**: Enhanced middleware to properly handle AJAX requests
- Fixed JSON response handling for AJAX requests
- Prevented redirects for AJAX calls in authentication middleware
- Proper error response formatting for frontend consumption
### Improved
- **User Interface**: Streamlined update management interface
- Removed unnecessary "View Backups" and "Upload Package" buttons
- Cleaner interface with only essential update functions
- Better organized action buttons and modals
- Improved responsive design and user experience
- **Error Handling**: Enhanced error handling throughout update system
- Comprehensive try-catch blocks with detailed logging
- User-friendly error messages with specific error codes
- Proper resource cleanup and rollback mechanisms
- **Code Quality**: Improved code organization and maintainability
- Better separation of concerns in update services
- Enhanced documentation and type hints
- Consistent error handling patterns
- Improved logging with user context and operation details
### Technical Improvements
- **Database Operations**: Optimized database operations for version management
- Efficient version record updates without creating duplicates
- Proper transaction handling for update operations
- Enhanced query performance for version history
- **File System Operations**: Improved file handling for update packages
- Better error handling for file operations
- Proper cleanup of temporary files
- Enhanced security for file path operations
- **API Integration**: Strengthened integration with central license server
- More reliable API communication with proper error handling
- Enhanced timeout and retry mechanisms
- Better response validation and processing
## [1.0.4] - 2025-10-01
### Added
- **Complete Translation Support**: Added comprehensive translation keys for all update system features
- Product Updates Management: Complete translation keys for create, edit, view, and manage product updates
- System Updates Interface: Full translation support for system update management interface
- Update Notifications: Translated all notification messages and alerts
- Version Management: Complete translation for version tracking and validation messages
- Update Actions: Translated all action buttons and confirmation dialogs
- Error Messages: Comprehensive translation for all error and success messages
- Form Labels: Complete translation for all form fields and validation messages
- Status Messages: Translated all status indicators and progress messages
- Three Language Support: Full Arabic, English, and Hindi translations for all update-related features
### Fixed
- **Missing Translation Keys**: Resolved all missing translation keys in update system
- Product Updates: Added missing keys for create, edit, view, and delete operations
- System Updates: Added missing keys for update management and version control
- Form Validation: Added missing keys for form validation messages
- Action Buttons: Added missing keys for all action buttons and confirmations
- Status Messages: Added missing keys for all status and progress messages
- Error Handling: Added missing keys for all error and success messages
### Improved
- **Translation Coverage**: Achieved 100% translation coverage for update system
- All user-facing text now has proper translation keys
- Consistent terminology across all three languages
- Context-appropriate translations for technical terms
- Professional translation quality for all languages
## [1.0.3] - 2025-10-01
### Added
- **Sequential Update System**: Implemented sequential update installation (1.0.2 → 1.0.3 → 1.0.4)
- Next update detection instead of latest version display
- Sequential update enforcement to prevent skipping versions
- Clear messaging about sequential update requirements
- **Version Validation System**: Advanced version management with database tracking
- Automatic version tracking in database after successful updates
- Version progression validation to prevent downgrading
- Version history tracking with detailed update records
- Hidden older updates - only newer versions are displayed
- Comprehensive version comparison and validation logic
- **Enhanced Update API**: New `/api/license/update-info` endpoint for update information without license verification
- Public update information access for display purposes
- License verification only required for download and installation
- Improved API response structure with next_version field
- **Central API Integration**: Complete integration with central license server (my-logos.com)
- Automatic product fetching from central server
- Real-time update checking from central API
- Direct cURL implementation for reliable API communication
- **Update Notification System**: Toast notifications for available updates
- Automatic update checking on admin dashboard entry
- Non-intrusive toast notifications with action buttons
- Smart notification display (excludes updates page to avoid duplicates)
- **Improved Update Page Design**: Complete redesign of updates management interface
- Consolidated system status display in single card
- Clean update information layout with organized details
- Removed redundant information and improved visual hierarchy
- Better responsive design with modern UI components
### Fixed
- **Update Information Display**: Fixed incorrect version display in update status cards
- Now shows actual API data instead of local version helper data
- Corrected update availability status based on central API
- Fixed icon and color coding for update status
- **Variable Naming Issues**: Fixed undefined variable `$update` in product-updates edit view
- Corrected all references to use `$productUpdate` consistently
- Fixed route parameter binding in update views
- **API Response Structure**: Updated API responses to use `next_version` instead of `latest_version`
- Consistent field naming across all update-related endpoints
- Proper sequential update logic implementation
- **Update Logic Flow**: Fixed update checking to show next required update only
- Prevents confusion by showing only the immediate next update
- Enforces proper sequential update installation
### Improved
- **Update Management UX**: Enhanced user experience for update management
- Clear indication of sequential update requirements
- Better organized update information display
- Improved action button placement and functionality
- **API Performance**: Optimized API calls with better caching and error handling
- Reduced redundant API calls with intelligent caching
- Better error handling and logging for API failures
- Improved timeout and retry mechanisms
- **Code Organization**: Better separation of concerns in update system
- Cleaner controller methods with focused responsibilities
- Improved service layer architecture
- Better error handling and logging throughout the system
- **Translation Support**: Added comprehensive translation keys for new features
- Complete Arabic, English, and Hindi translations
- Context-appropriate translation keys for update system
- Consistent terminology across all languages
## [1.0.2] - 2025-01-21
### Added
- **Domain Limit Enforcement**: Added comprehensive domain limit checking for license verification
- **License Type-based Domain Limits**: Automatic domain limit assignment based on license type (single: 1, multi: 5, developer: 10, extended: 3)
- **Enhanced License Model Methods**: Added `active_domains_count`, `hasReachedDomainLimit()`, and `remaining_domains` helper methods
- **Advanced License API Features**:
- Domain limit validation in API responses
- Detailed error messages with domain usage information
- Automatic domain registration with limit checking
- **Improved Admin Interface**:
- Domain usage statistics in license index page
- Enhanced domain display in license details and edit pages
- Warning indicators for licenses at domain limit
- Progress bars showing domain usage percentage
- **Comprehensive Logging**: Added detailed logging for all license verification attempts and domain operations
- **Auto Token Generation**: Automatic API token generation in settings if not provided
- **Enhanced Error Handling**: Improved error messages and validation across all controllers
- **System Update Management**: Complete version control and update system
- Version tracking in database with automatic migration
- Version comparison and update availability checking
- Automated update process with database migrations and cache clearing
- Update confirmation and rollback capabilities
- Version history and changelog display
- Admin interface for managing system updates
- Complete translation support for update system in Arabic, English, and Hindi
- **Enhanced Update System**: Advanced update management with backup and rollback
- Automatic backup creation before updates
- Enhanced rollback system with backup verification
- Update notifications with dismiss options
- Update package upload and processing system
- Improved admin interface with modern UI components
- Comprehensive logging and error handling
- **Product Updates System**: Complete product update management with API integration
- Product-specific update management with version control
- Secure API endpoints for update checking and downloading
- License-based update access control with domain verification
- Update file management with hash verification and size tracking
- Major/minor update classification with required update flags
- System requirements and compatibility checking
- Comprehensive changelog and release notes management
- Admin interface for managing product updates
- Integration with existing product management system
### Fixed
- **License Domain Limit Issue**: Fixed issue where licenses could be verified on unlimited domains regardless of license type
- **API Token Validation**: Fixed required API token validation in settings that prevented saving when empty
- **Domain Registration Logic**: Fixed domain registration to properly check and enforce domain limits
- **Error Message Display**: Fixed missing error messages in settings controller
- **License Verification Flow**: Fixed domain verification to prevent exceeding maximum allowed domains
- **Admin Interface Display**: Fixed domain count display in admin pages to show accurate information
- **Legacy Update System**: Removed old UpdateController and related files, replaced with new version management system
### Improved
- **Code Quality**: Enhanced all controllers to follow PSR-12 standards with comprehensive documentation
- **Security**: Added rate limiting, input validation, and comprehensive logging
- **User Experience**: Added clear success/error messages and automatic token generation
- **Performance**: Optimized domain counting queries and added caching considerations