Журнал изменений

Фильтр и поиск

Всего: 872 Доступных коммитов | Отфильтровано: 872 Коммиты | Страница: 72 / 88
02.02.2026
Chore: Update PHPStan and PHPUnit configuration
Автор: Eduard Laas | Дата: 22:47 02.02.2026

Updated static analysis and testing configuration for improved code quality validation.

Core changes:

  1. PHPStan configuration (phpstan.neon):
  2. Add ignore pattern for sprintf placeholder false positives

    • Language constants resolved at runtime
  3. PHPUnit configuration (phpunit.xml):
  4. Add Validation test suite alongside Unit tests
  5. Exclude bootstrap.php from test discovery
  6. Git attributes (.gitattributes):
  7. Enforce LF line endings for PHP files

Benefits:

  • Cleaner PHPStan output without false positives
  • All validation tests run with composer quality
  • Consistent line endings across platforms

Technical notes:

  • PHPStan level 0 maintained
  • PHPUnit 12 compatible configuration
Test: Add comprehensive validation test suite
Автор: Eduard Laas | Дата: 22:46 02.02.2026

New PHPUnit test suite for validating code quality, security, and consistency across the SLAED CMS codebase.

Core changes:

  1. BlockValidationTest.php:
  2. Validates block file syntax and naming
  3. Checks UTF-8 encoding compliance
  4. ConfigValidationTest.php:
  5. Validates configuration file structure
  6. Checks for required config keys
  7. InsertValidationTest.php:
  8. Validates INSERT queries have all required NOT NULL fields
  9. Parses SQL schema for field requirements
  10. LanguageValidationTest.php:
  11. Validates sprintf placeholder syntax
  12. Checks translation completeness across locales
  13. ModuleStructureTest.php:
  14. Validates module directory structure
  15. Checks for required files (index.php, language/)
  16. PhpFileFormatTest.php:
  17. Validates UTF-8 encoding (no BOM)
  18. Line endings check (skipped, needs project-wide normalization)
  19. SchemaUpdateValidationTest.php:
  20. Validates database migration files
  21. Checks SQL syntax
  22. SecurityValidationTest.php:
  23. Detects eval() with user input
  24. Checks for SQL injection patterns
  25. SetupFileWarningTest.php:
  26. Validates setup file warnings
  27. TemplateValidationTest.php:
  28. Validates HTML template structure
  29. Checks conditional syntax

Benefits:

  • Automated quality assurance
  • Early bug detection
  • Consistent code standards enforcement

Technical notes:

  • PHPUnit 12 compatible
  • 58 tests, 74 assertions
  • Integrated with composer quality command
Refactor: Rename language files to ISO 639-1 format
Автор: Eduard Laas | Дата: 22:46 02.02.2026

Continued migration of language file naming from verbose format (lang-english.php) to ISO 639-1 codes (en.php) for consistency.

Core changes:

  1. Module language directories renamed:
  2. modules/recommend/language/
  3. modules/rss_info/language/
  4. modules/search/language/
  5. modules/shop/admin/language/
  6. modules/shop/language/
  7. modules/users/language/
  8. modules/voting/admin/language/
  9. modules/whois/admin/language/
  10. File naming changes:
  11. lang-english.php -> en.php
  12. lang-french.php -> fr.php
  13. lang-german.php -> de.php
  14. lang-polish.php -> pl.php
  15. lang-russian.php -> ru.php
  16. lang-ukrainian.php -> uk.php

Benefits:

  • Consistent naming across all modules
  • Shorter, standardized file names
  • Aligns with ISO 639-1 language codes

Technical notes:

  • File content unchanged
  • Module loader updated to use new naming
Fix: Correct sprintf placeholders in language files
Автор: Eduard Laas | Дата: 22:45 02.02.2026

Fixed malformed sprintf placeholders that had spaces between % and position number, causing formatting errors.

Core changes:

  1. Account module language files:
  2. modules/account/language/pl.php
  3. modules/account/language/uk.php

    • Fixed "% 1\$s" to "%1\$s" pattern

Benefits:

  • sprintf() now works correctly with positional arguments
  • Proper message formatting in Polish and Ukrainian locales

Technical notes:

  • Space between % and position number is invalid
  • PHPStan validation now passes for these files
Fix: Convert Windows-1251 files to UTF-8 encoding
Автор: Eduard Laas | Дата: 22:45 02.02.2026

Converted 27 files from Windows-1251 to UTF-8 encoding for consistency across the codebase and proper character display.

Core changes:

  1. Block files (blocks/*.php):
  2. block-center.php, block-center_forum.php, block-center_media.php
  3. block-files.php, block-forum.php, block-ipb_center_forum.php
  4. block-search.php
  5. Core files (core/*.php):
  6. geo_ip.php
  7. Admin links files (modules/*/admin/links.php):
  8. auto_links, changelog, clients, contact, content
  9. faq, files, forum, help, jokes, links, media
  10. money, news, order, pages, shop, whois
  11. Module files:
  12. modules/clients/index.php

Benefits:

  • Consistent UTF-8 encoding across project
  • Proper Cyrillic character display
  • Eliminates encoding-related bugs

Technical notes:

  • Converted using iconv from WINDOWS-1251 to UTF-8
  • No content changes, only encoding conversion
Fix: Replace eval() with str_replace() in billing template
Автор: Eduard Laas | Дата: 22:44 02.02.2026

Security improvement: removed eval() usage that processed template variables, replacing it with safe str_replace() function.

Core changes:

  1. Billing function (modules/money/admin/index.php):
  2. Remove eval() template processing
  3. Use str_replace() with explicit variable mapping

    • $charset, $theme, $title, $site_logo
    • $sitename, $autor, $infos, $num
    • $date, $menge, $kurs, $sum

Benefits:

  • Eliminates code injection vulnerability
  • Explicit variable substitution is more maintainable
  • No functional change to template output

Technical notes:

  • Template format unchanged (billing.html)
  • All template variables mapped explicitly
Fix: Add missing NOT NULL fields to INSERT queries
Автор: Eduard Laas | Дата: 22:44 02.02.2026

Registration and content creation were failing due to MySQL strict mode requiring all NOT NULL fields without DEFAULT values to be specified.

Core changes:

  1. User registration (modules/account/index.php):
  2. Add user_block, user_warnings, user_field, user_network to INSERT

    • Email activation registration
    • Social network registration
  3. Admin user creation (admin/index.php):
  4. Add user_block, user_warnings, user_field to admin INSERT
  5. Help module (modules/help/admin/index.php):
  6. Add field column to help INSERT
  7. News module (modules/news/index.php):
  8. Add associated column to news INSERT
  9. Database schema (setup/sql/table*.sql):
  10. Use CREATE TABLE IF NOT EXISTS for idempotent migrations

Benefits:

  • Registration now works with MySQL strict mode
  • Consistent INSERT queries across modules
  • Idempotent database migrations

Technical notes:

  • All new fields initialized with empty strings
  • Compatible with existing database schema
Style: Update lite template formatting and structure
Автор: Eduard Laas | Дата: 15:13 02.02.2026

Improve code formatting and template structure in the lite theme for better readability and maintainability.

Core changes:

  1. Template files (templates/lite/):
  2. index.php: Normalize indentation to spaces
  3. login.html: Update login form template
  4. login-logged.html: Update logged-in state template
  5. login-without.html: Update guest state template

Benefits:

  • Consistent code formatting
  • Improved template readability
  • Better maintainability

Technical notes:

  • No functional changes
  • Indentation standardized to 4 spaces
Chore: Remove deprecated image module files
Автор: Eduard Laas | Дата: 15:13 02.02.2026

Clean up obsolete image module files that are no longer needed.

Core changes:

  1. Removed files (modules/image/):
  2. .htaccess
  3. index.php

Benefits:

  • Cleaner module structure
  • Remove unused code from repository

Technical notes:

  • Image handling now managed elsewhere in the system
Refactor: Rename template flag key from 'flag' to 'if_flag'
Автор: Eduard Laas | Дата: 15:13 02.02.2026

Improve template conditional rendering API by using a more descriptive key name that clearly indicates the purpose of boolean flags in templates.

Core changes:

  1. Template engine (core/template.php):
  2. Rename array key 'flag' to 'if_flag'
  3. Maintain full backward compatibility with existing templates
  4. Documentation (docs/TEMPLATES.md):
  5. Update all code examples to use new 'if_flag' key
  6. Clarify conditional rendering usage

Benefits:

  • More intuitive and self-documenting API
  • Clear distinction between variables and conditional flags
  • Consistent naming convention with 'if:' template syntax

Technical notes:

  • No breaking changes to template syntax
  • Only affects PHP-side array key naming

Всего: 872 на 88 страницах по 10 на каждой странице

1 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 88

Хотите опробовать SLAED CMS в действии?

Идеи и предложения
Обратная связь