Журнал изменений
This commit modernizes core system files with improved module management, security enhancements, and removal of deprecated components.
Core changes:
- Module management (core/system.php):
- Add getModules() iterator for config-based module loading
- Enhance setConfigFile() with deep array merging
- Improve bootstrap module loading
- Admin utilities (core/admin.php):
- Add updateModulesConfig() for filesystem sync
- Remove deprecated database-based module queries
- Improve module configuration handling
- Security improvements (core/security.php, core/access.php):
- Enhanced input validation
- Improved access control checks
- Database layer (core/classes/pdo.php):
- PDO connection improvements
- Better error handling
- Removed deprecated files:
- config/config_db.php (replaced by config/db.php)
- core/classes/module.php (replaced by config-based system)
Benefits:
- Config-based module system (no database queries)
- Cleaner codebase without deprecated files
- Improved security and validation
- Better maintainability
Technical notes:
- Module config stored in config/modules.php
- Backward compatibility maintained
This commit updates the project license from MIT to GNU General Public License v3.0 to align with README badge and project requirements.
LICENSE - License change:
- License replacement:
- Remove: MIT License text
- Add: Full GNU GPL v3.0 text (674 lines)
- Include: Preamble, Terms and Conditions, How to Apply
- GPL-3.0 sections included:
- Definitions (Section 0)
- Source Code (Section 1)
- Basic Permissions (Section 2)
- Patents (Section 11)
- Disclaimer of Warranty (Section 15)
- Limitation of Liability (Section 16)
Benefits:
- Consistent with README license badge
- Copyleft protection for project
- Clear terms for distribution and modification
Technical notes:
- Full GPL-3.0 text from gnu.org
- No modifications to standard license text
This commit improves README documentation by adding GitHub-flavored markdown alerts and correcting various URLs and references.
README.md - Documentation updates:
- GitHub alerts added:
- WARNING: Default admin credentials reminder
- CAUTION: Delete setup.php after installation
- NOTE: Modernization status progress
- IMPORTANT: Security best practices
- CAUTION: SQL injection prevention
- TIP: Code requirements for contributors
- URL corrections:
- Fix git clone URL to SLAED-CMS organization
- Fix config file path (config_db.php → db.php)
- Fix database schema path (setup/sql/table.sql)
- Add Documentation link to slaed.info
- Add Forum link to slaed.net/forum
- Add GitHub Issues link
- Badge updates:
- License badge now links to LICENSE file
- Added GitHub Issues badge
- Project structure fixes:
- Fixed comment alignment in tree view
- Corrected file descriptions
Benefits:
- Better visual highlighting of important information
- Correct URLs for contributors and users
- Consistent documentation style
Technical notes:
- GitHub alerts render as colored callout boxes
- All external links verified and working
This commit introduces a standardized commit message template combining best practices from previous detailed commit formats.
.gitmessage - Commit template:
- Template structure:
- Type prefix with short description
- Extended description section
- Core changes with numbered sections
- File references in parentheses
- Bullet hierarchy:
- Main points with dash (-)
- Sub-details with asterisk (*)
- Benefits and Technical notes sections
- Footer hints:
- Available commit types listed
- Bullet usage reminder
Benefits:
- Consistent commit message format across project
- Clear structure for complex changes
- Easy to parse for changelog generation
- Supports both simple and detailed commits
Technical notes:
- Comment lines (# prefix) excluded from commits
- Template activated via git config commit.template
Focus: ops
Summary
Updates copyright year to 2026 and adds standardized commit message template.
Changes
What
- Update copyright year in modules.php to 2026
- Add .gitmessage template for consistent commit formatting
Why
- Keep copyright notices current
- Standardize commit message format across team
Test
- N/A - metadata changes only
Impact
For Admins / DevOps
- None
For Developers
- Use .gitmessage as template:
git config commit.template .gitmessage
Breaking Changes
- None
Upgrade
- No action required