Standardize language file naming across all modules using ISO 639-1 codes for better internationalization support and consistency.
Core changes:
- Language file renaming (all modules):
- lang-english.php → en.php
- lang-german.php → de.php
- lang-french.php → fr.php
- lang-russian.php → ru.php
- lang-ukrainian.php → uk.php
- lang-polish.php → pl.php
- Affected modules:
- account, auto_links, changelog, clients, contact
- faq, files, forum, help, jokes
- links, media, money, news, order, pages
Benefits:
- ISO 639-1 standard compliance
- Shorter, cleaner filenames
- Consistent naming convention across codebase
Technical notes:
- Both admin and frontend language files updated
- No content changes, only file renaming
Remove spaces from conditional template tags for consistency with actual template parser behavior.
Core changes:
- Template syntax (docs/TEMPLATES.md):
- Change {% if FLAG %} to {%if FLAG%}
- Change {% else %} to {%else%}
- Change {% endif %} to {%endif%}
- Change {% elseif %} to {%elseif%}
- Updated all 6 practical examples
Benefits:
- Consistent syntax across documentation and code
- Matches actual template parser implementation
Add new 📚 Documentation section with links to all project documentation files including the new TEMPLATES.md guide.
Core changes:
- Documentation index (README.md):
- Add table with all documentation files
- Link to TEMPLATES.md, CONTRIBUTING.md, UPGRADING.md, SECURITY.md, CODE_OF_CONDUCT.md
- Brief descriptions for each document
Benefits:
- Better discoverability of project documentation
- Centralized documentation index
- Easy navigation for contributors and users
Implements {% if FLAG %} ... {% else %} ... {% endif %} conditional blocks for templates, enabling dynamic content display based on flags passed from PHP code.
Core changes:
- Template conditional rendering (core/template.php):
Add setTemplateIf() function for processing conditional blocks
- Supports nested IF blocks
- Boolean normalization for string 'true'/'false' values
- Undefined flags default to false
- Pure string-based parsing (no eval)
- Update setTemplateBasic() to support 'if_flag' parameter
- Update setTemplateBlock() to support 'if_flag' parameter
- Fix typo in comment header
Benefits:
- Enables dynamic content display (login/logout, admin links, etc.)
- Safe template conditionals without eval()
- Consistent flag handling across template functions
- Improved code documentation
Technical notes:
- Flags must match pattern [a-zA-Z0-9_]+
- No support for elseif, logical operators, or comparisons
- Performance optimized with early return for templates without {%
Complete overhaul of project documentation with consistent formatting, version information, and GitHub alert syntax for better readability.
Core changes:
All documentation files updated with headers (CODE_OF_CONDUCT.md, CONTRIBUTING.md, README.md, SECURITY.md, UPGRADING.md):
- Added "Last updated: January 2026" headers
- Added copyright footers
- Consistent formatting throughout
Template documentation created (docs/TEMPLATES.md):
- Main layout template system (index.html)
- Custom templates for home/modules/categories
- Layout variables ({%HEAD%}, {%MODULE%}, {%BLOCKS%})
- Conditional rendering with {% if %} syntax
- 6 practical examples with PHP code
- Security & performance best practices
- Migration guide from legacy tpl_* functions
README.md enhanced:
- Detailed modernization status (12 admin modules listed)
- Version history table with PHP compatibility
- Security statistics (2106+ SQL, 269+ input points)
UPGRADING.md expanded:
- Migration checklist for custom modules
- Removed/renamed files documentation
- Breaking changes with code examples
SECURITY.md improved:
- Modules secured table
- Deprecated functions table
- Known issues for 6.2.x
Benefits:
- Consistent documentation style across all files
- GitHub alerts for important information
- Clear upgrade path for contributors
- Comprehensive template system documentation
Technical notes:
- All docs use GitHub alert syntax ([!NOTE], [!TIP], etc.)
- Version 6.3.0 development status: 50% complete
- 6 supported languages documented: EN, FR, DE, PL, RU, UA
Added production-ready documentation files for SLAED CMS 6.3 to support contributors, security researchers, and users upgrading from previous versions.
Core changes:
- Project documentation (README.md):
- Updated with links to new documentation files
- Added references to CONTRIBUTING, SECURITY, CODE_OF_CONDUCT, UPGRADING
- Contribution guidelines (CONTRIBUTING.md):
- Coding standards with 8 required verbs
- Type declarations and variable naming conventions
- SQL prepared statements and input validation rules
- Commit message format and PR requirements
- Testing requirements (PHPUnit, PHPStan)
- Security policy (SECURITY.md):
- Supported versions table
- Vulnerability reporting process and timeline
- Security measures documentation (SQL injection, XSS, CSRF)
- Best practices for administrators
- Code of Conduct (CODE_OF_CONDUCT.md):
- Based on Contributor Covenant 2.1
- Community standards and enforcement guidelines
- Contact information for reporting
- Upgrade guide (UPGRADING.md):
- Migration paths from 6.2.x to 6.3.x
- Breaking changes (config_db.php removed, new db.php format)
- Function changes (tpl_eval, admin_file)
- Troubleshooting section
Benefits:
- Clear guidelines for contributors
- Transparent security reporting process
- Smooth upgrade path for existing users
- Professional open-source project presentation
This commit updates README badge colors and minor formatting.
README.md - Badge updates:
- Badge color changes:
- License: yellow → green
- Migration: yellow → purple
- Formatting:
- Email → E-Mail (consistent with German spelling)
- Cleanup:
- Remove GitHub Issues badge (redundant)
This commit removes the old short-named info files that were replaced by full language name versions in the previous commit.
Removed files:
- modules/news/admin/info/de.html
- modules/news/admin/info/en.html
- modules/news/admin/info/fr.html
- modules/news/admin/info/pl.html
- modules/news/admin/info/ru.html
- modules/news/admin/info/uk.html
Technical notes:
- Replaced by german.html, english.html, french.html, etc.
- Part of language naming standardization