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

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

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

Всего: 1136 Доступных коммитов | Отфильтровано: 1136 Коммиты | Страница: 97 / 114
06.02.2026
Test: Add validation for include/require inside functions
Автор: Eduard Laas | Дата: 00:05 06.02.2026

Add PHPUnit test to prevent require/include statements from being placed inside functions, which causes silent failures with require_once.

Core changes:

  1. testNoIncludesInsideFunctions (SecurityValidationTest.php):
  2. Uses PHP tokenizer (token_get_all) for accurate detection

    • Tracks brace depth to determine function scope
    • Detects T_REQUIRE, T_REQUIRE_ONCE, T_INCLUDE, T_INCLUDE_ONCE
  3. Reports file path, line number, and function name on failure
  4. Scans all project PHP files (excludes vendor, tests, setup)

Benefits:

  • Prevents recurring require_once-inside-function bugs
  • Catches issues at test time before they reach production
  • Accurate scope detection via PHP tokenizer vs regex

Technical notes:

  • Tokenizer approach handles edge cases (comments, strings)
  • Test integrates with existing SecurityValidationTest file scanner
  • No false positives for top-level includes or class method bodies
Fix: Search module pagination overflow and input sanitization
Автор: Eduard Laas | Дата: 00:04 06.02.2026

Fix undefined array key warning when search results don't fill the last page, and improve search word input handling.

Core changes:

  1. Pagination bounds check (index.php:232):
  2. Add isset($conts[$i]) before accessing array element

    • Prevents "Undefined array key" when results < page size
    • Loop calculates range from $conf['snum'] but array may be shorter
  3. Search input handling (index.php):
  4. Replace direct $_POST/$_GET access with getVar('req', 'word', 'word')

    • Consistent with project input handling conventions
    • Proper URL decoding and filtering via var_filter()
  5. Initialize $conts = [] before population loop

    • Prevents potential undefined variable warning

Benefits:

  • Eliminates warnings on search queries with partial result pages
  • Safer input handling through centralized getVar() function
  • Clean array initialization prevents edge-case errors
Fix: Resolve PHP 8.1+ null parameter deprecation warnings
Автор: Eduard Laas | Дата: 00:04 06.02.2026

Fix multiple deprecated/warning errors caused by passing null values to string functions when users are not authenticated (bots, guests).

Core changes:

  1. Null-safe $admin[3] access (security.php, system.php):
  2. Fix checkPost() substr() null deprecation

    • Add is_array() check with null coalescing for $admin[3]
  3. Fix save_text() substr() null deprecation

    • Same pattern applied consistently
  4. Fix replace_break() substr() null deprecation

    • Prevent crash when $admin is not initialized
  5. Config includes refactoring (system.php):
  6. Move fields.php, statistic.php, rss.php to global scope

    • Prevents require_once failure on repeated function calls
  7. Fix fields_out() to use global $conffi instead of require

    • require_once inside function only loads file on first call
  8. Update head() global declarations for $confrs, $confst
  9. Restore config_seo.php external config file
  10. Null-safe $user[3] access (account/index.php):
  11. Fix last() function undefined array key warning

    • Add null coalescing for $user[3] in user_news() call

Benefits:

  • Eliminates PHP 8.1+ deprecation warnings for guest/bot visitors
  • Prevents silent failures from require_once inside functions
  • Consistent null-safety pattern across all $admin[3] usages

Technical notes:

  • Pattern used: $flag = is_array($x) ? ($x[n] ?? '') : ''
  • No behavioral changes for authenticated users
  • Backward compatible with PHP 7.4+
05.02.2026
Style: Add Bootstrap Icons CSS and font files for admin template
Автор: Eduard Laas | Дата: 17:40 05.02.2026

Added Bootstrap Icons library to provide scalable vector icons for the admin panel interface elements.

Core changes:

  1. Icon stylesheet (templates/admin/bootstrap-icons.css):
  2. Bootstrap Icons CSS with font-face declarations
  3. Icon class definitions for all available Bootstrap Icons
  4. Font files (templates/admin/fonts/):
  5. bootstrap-icons.woff and bootstrap-icons.woff2 font files
  6. index.html placeholder for directory listing protection

Benefits:

  • Scalable vector icons for admin interface elements
  • Consistent icon styling across the admin panel
  • Lightweight WOFF2 format for optimal loading performance

Technical notes:

  • Font files referenced via relative path from CSS
  • Used by modules admin for type and database status indicators
Feature: Add module type filter and status notifications
Автор: Eduard Laas | Дата: 17:40 05.02.2026

Enhanced the modules admin panel with type-based filtering and automatic detection of new or removed modules in the filesystem.

Core changes:

  1. Module type filter (modules.php):
  2. Added dropdown filter to show All/Users/Admins module types

    • Filter persists in navigation links
  3. Modules now sorted by type (Admin=0, User=1) then alphabetically

    • Uses uksort with natural case-insensitive comparison
  4. Added Bootstrap Icons for module type indication (tools/people-fill)
  5. Added database status icons (bi-database-fill-gear, fill-dash, fill-add)
  6. New/Deleted module notifications (modules.php):
  7. Detect and display newly found modules not yet in config
  8. Detect and notify about modules removed from filesystem

    • Automatically cleans up config for removed modules
  9. Language constants (language/*.php):
  10. Added _MODULES_NEW for new module detection messages
  11. Added _MODULES_DELETED for removed module notification

    • Translations in all 6 languages (de, en, fr, pl, ru, uk)

Benefits:

  • Easier module management with type-based filtering
  • Instant visibility of filesystem changes via notifications
  • Better visual distinction between admin and user modules
Docs: Translate admin module info files to 5 languages
Автор: Eduard Laas | Дата: 17:40 05.02.2026

Translated all 16 remaining admin module documentation files from Russian to German, English, Ukrainian, French, and Polish (80 files total).

Core changes:

  1. Module info translations (admin/info/):
  2. favorites, fields, groups, lang, messages, modules

    • Complete documentation for module management and configuration
  3. newsletter, privat, ratings, referers, replace

    • User-facing feature documentation in all 5 target languages
  4. rss, security, statistic, template, uploads

    • Technical documentation with preserved code examples and BBCode formatting

Benefits:

  • Full multilingual admin documentation coverage for all 23 modules
  • Consistent BBCode formatting and HTML entities across all translations
  • Technical terms, file paths, and code examples preserved unchanged

Technical notes:

  • groups module uses -po.html suffix for Polish (legacy naming)
  • uploads module uses -pL.html suffix for Polish (legacy naming)
  • All translations based on Russian (-ru.html) source templates
04.02.2026
Chore: Add PHP CS Fixer config and test documentation
Автор: Eduard Laas | Дата: 21:30 04.02.2026

Added development tooling configuration and testing documentation.

Core changes:

  1. PHP CS Fixer configuration (.php-cs-fixer.dist.php):
  2. Code style rules for automated formatting
  3. PSR-12 compatible configuration
  4. Test documentation (docs/TESTS.md):
  5. PHPUnit testing guidelines
  6. Test structure documentation

Benefits:

  • Consistent code formatting across project
  • Clear testing guidelines for contributors
Docs: Update documentation and rename module info files
Автор: Eduard Laas | Дата: 21:28 04.02.2026

Updated all documentation to reflect current project status (~65% complete) and standardized module info file naming to ISO language codes.

Core changes:

  1. Documentation updates (*.md):
  2. Updated dates to February 2026 across all docs
  3. Fixed progress status from 50% to ~65%
  4. Listed all 23 modernized admin modules
  5. Translated German text to Russian in .rules files
  6. Module info files (modules/*/admin/info/):
  7. Renamed english.html → en.html
  8. Renamed german.html → de.html
  9. Renamed french.html → fr.html
  10. Renamed polish.html → pl.html
  11. Renamed russian.html → ru.html
  12. Renamed ukrainian.html → uk.html

    • Applied to: auto_links, clients, contact modules
  13. Admin modules and config (admin/, config/):
  14. Updated admin/index.php structure
  15. Updated language files (de, en, fr, pl, ru, uk)
  16. Reorganized config/modules.php

Benefits:

  • Consistent ISO 639-1 language code naming
  • Accurate documentation reflecting real progress
  • Better maintainability and structure

Technical notes:

  • No breaking changes
  • Language code naming follows ISO 639-1 standard
  • Documentation now in sync with codebase state
Refactor: align module config, admin permissions, and structure
Автор: Eduard Laas | Дата: 15:40 04.02.2026

Move module configuration/visibility to config-based sources and update admin permissions to use module names, aligning admin assets/tests with the current module layout.

Core changes:

  1. Module config & access (core/system.php, core/user.php, index.php, admin/modules/*.php, setup/index.php):
  2. Switch runtime module state to config modules

    • Use $confmd instead of _modules reads
    • Migrate admin module lists to name-based storage
  3. Update admin screens and block listing to use config modules
  4. Module/admin structure & assets (modules/, admin/info/, templates/admin/basic-changelog.html):
  5. Refresh admin info pages and module admin layouts
  6. Reorganize rss/sitemap/account/changelog admin assets
  7. Tests (tests/ModuleStructureTest.php):
  8. Drop obsolete links.php requirement

Benefits:

  • Consistent, file-based module configuration
  • Admin permissions now human-readable and stable
  • Tests reflect current admin structure

Technical notes:

  • config/modules.php is the single source of module metadata
  • admins.modules stores module names
  • No runtime dependency on _modules (migration in setup only)
Feature: Add duplicate module detection warning
Автор: Eduard Laas | Дата: 07:55 04.02.2026

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

1 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 114
Хотите опробовать SLAED CMS в действии?
Идеи и предложения
Обратная связь
Подтверждение

Поделиться
QR-код