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

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

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

Всего: 1347 Доступных коммитов | Отфильтровано: 1347 Коммиты | Страница: 120 из 135
02.02.2026
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):
  • Remove eval() template processing
  • 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):
  • Add user_block, user_warnings, user_field, user_network to INSERT
    • Email activation registration
    • Social network registration
  1. Admin user creation (admin/index.php):
  • Add user_block, user_warnings, user_field to admin INSERT
  1. Help module (modules/help/admin/index.php):
  • Add field column to help INSERT
  1. News module (modules/news/index.php):
  • Add associated column to news INSERT
  1. Database schema (setup/sql/table*.sql):
  • 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/):
  • index.php: Normalize indentation to spaces
  • login.html: Update login form template
  • login-logged.html: Update logged-in state template
  • 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/):
  • .htaccess
  • 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):
  • Rename array key 'flag' to 'if_flag'
  • Maintain full backward compatibility with existing templates
  1. Documentation (docs/TEMPLATES.md):
  • Update all code examples to use new 'if_flag' key
  • 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
Refactor: Rename language files to ISO 639-1 code format
Автор: Eduard Laas | Дата: 15:12 02.02.2026

Standardize language file naming across all modules using ISO 639-1 codes for better internationalization support and consistency.

Core changes:

  1. 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
  1. 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
30.01.2026
Style: Normalize template syntax in documentation
Автор: Eduard Laas | Дата: 12:26 30.01.2026

Remove spaces from conditional template tags for consistency with actual template parser behavior.

Core changes:

  1. 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
Docs: Add documentation section to README
Автор: Eduard Laas | Дата: 12:19 30.01.2026

Add new 📚 Documentation section with links to all project documentation files including the new TEMPLATES.md guide.

Core changes:

  1. 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
Feature: Add conditional rendering support to template system
Автор: Eduard Laas | Дата: 12:11 30.01.2026

Implements {% if FLAG %} ... {% else %} ... {% endif %} conditional blocks for templates, enabling dynamic content display based on flags passed from PHP code.

Core changes:

  1. 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 {%
Docs: Comprehensive documentation update for SLAED CMS 6.3
Автор: Eduard Laas | Дата: 12:09 30.01.2026

Complete overhaul of project documentation with consistent formatting, version information, and GitHub alert syntax for better readability.

Core changes:

  1. 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
  2. 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
  3. README.md enhanced:

    • Detailed modernization status (12 admin modules listed)
    • Version history table with PHP compatibility
    • Security statistics (2106+ SQL, 269+ input points)
  4. UPGRADING.md expanded:

    • Migration checklist for custom modules
    • Removed/renamed files documentation
    • Breaking changes with code examples
  5. 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
Хотите опробовать SLAED CMS в действии?
Идеи и предложения
Обратная связь
Подтверждение

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

Предварительный просмотр