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

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

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

Всего: 1045 Доступных коммитов | Отфильтровано: 1045 Коммиты | Страница: 76 / 105
27.02.2026
Chore: restructure admin/info help pages into per-module subdirectories
Автор: Eduard Laas | Дата: 12:18 27.02.2026

Move admin panel help HTML files from flat naming convention (module-lang.html) to per-module subdirectory layout (module/lang.html), improving organization and making locale additions straightforward.

Core changes:

  1. Admin info pages (admin/info/):
  2. Renamed all flat module-lang.html files to module/lang.html layout

    • Pattern: admins-ru.html → admins/ru.html
    • 22 modules × 6 locales (de, en, fr, pl, ru, uk) reorganized

Benefits:

  • Cleaner directory structure per module
  • Easier to add new locales without polluting the flat namespace
  • Consistent with standard i18n subdirectory conventions
26.02.2026
Docs: update project documentation to reflect recent changes
Автор: Eduard Laas | Дата: 22:31 26.02.2026

Synchronize all project docs with the current state of SLAED CMS 6.3. Five files updated: README, UPGRADING, CONTRIBUTING, SECURITY, TEMPLATES.

Core changes:

  1. README.md:
  2. Update migration badge from 70% to 75%
  3. Remove "Frontend modules ~35% remaining" (all 26 modules complete)
  4. UPGRADING.md:
  5. Add Breaking Changes: config/rewrite.php removed, $confu['anonym'] removed, setConfigFile() reserved guard, getConfig() skip list

  6. Update Version History status to ~75%, add three new Major Changes items
  7. CONTRIBUTING.md:
  8. Expand language constants [!IMPORTANT] block with placement rule (language/.php for public, admin/language/.php for admin-only)

  9. Add "Config Files -> Reserved Config Files" section with table
  10. SECURITY.md:
  11. Add NDJSON format note to Logging & Error Handling section
  12. Add "Config Write Protection" block (setConfigFile guard + getConfig skip)
  13. docs/TEMPLATES.md:
  14. Add "SEO Placeholder Variables" section documenting all 14 setHead() placeholders ([homeurl], [site], [logo], [loc], [time], [mtime], [title], [desc], [img], [ctitle], [type], [url], [headline], [author])

Benefits:

  • Documentation accurately reflects the current codebase
  • Contributors have clear guidance on language constant placement
  • Reserved config file rules are documented

Technical notes:

  • docs/TESTS.md and CODE_OF_CONDUCT.md required no changes
Chore: update .gitignore plans path from plans/ to docs/plans/
Автор: Eduard Laas | Дата: 22:31 26.02.2026

The plans directory was moved under docs/ to better organize project planning files alongside other documentation.

Core changes:

  1. .gitignore:
  2. Change 'plans/' to 'docs/plans/'

Technical notes:

  • No functional change to the codebase
Chore: add FUNC_FILE access guard and copyright header to reserved config stubs
Автор: Eduard Laas | Дата: 22:31 26.02.2026

The three reserved config stubs (system.php, header.php, chmod.php) previously returned null to signal they are not config arrays. Replace with an explicit die() guard consistent with other protected system files, and add the standard SLAED copyright header.

Core changes:

  1. config/system.php, config/header.php, config/chmod.php:
  2. Add copyright header (Author, Copyright, License, Website)
  3. Replace 'return null' with: if (!defined('FUNC_FILE')) die('Illegal file access')

Benefits:

  • Consistent access protection across all restricted files
  • Standard SLAED file header present in all config stubs

Technical notes:

  • Files remain excluded from getConfig() merge via skip list in core/system.php
  • die() guard prevents direct HTTP access if .htaccess rules are misconfigured
Chore: rename content module admin info files to 2-letter locale codes
Автор: Eduard Laas | Дата: 22:31 26.02.2026

Rename admin info HTML files in modules/content/admin/info/ from full language names to 2-letter locale codes, matching the convention used in other modules (news, pages, etc.).

Core changes:

  1. modules/content/admin/info/ (6 renames):
  2. english.html -> en.html
  3. french.html -> fr.html
  4. german.html -> de.html
  5. polish.html -> pl.html
  6. russian.html -> ru.html
  7. ukrainian.html -> uk.html

Benefits:

  • Consistent file naming across all module admin info directories
  • Aligns with the 2-letter locale code convention (en, de, fr, pl, ru, uk)

Technical notes:

  • File contents are preserved as-is
  • Admin panel loads info files by locale code; old names were unused
Chore: remove config/rewrite.php and update admin editor info pages
Автор: Eduard Laas | Дата: 22:31 26.02.2026

The rewrite.php file contained regex-based URL transformation rules managed through the admin editor. This functionality has been superseded: URL rewriting is now controlled exclusively by $conf['rewrite'] and server-level .htaccess rules. All include() calls and the rewrite() function were removed from the codebase in a prior cleanup.

Core changes:

  1. config/rewrite.php:
  2. File deleted (122 lines of legacy regex rewrite rules)
  3. admin/info/editor-*.html (6 language files):
  4. Remove "System SEF" tab description (referencing config/rewrite.php)
  5. Rename "Server SEF" tab to "Apache rules" for clarity

Benefits:

  • Removes dead code with no callers
  • Admin editor UI reflects the actual available tabs
  • Reduces confusion between PHP-level and server-level URL rewriting

Technical notes:

  • $conf['rewrite'] config key is preserved; controls mod_rewrite behavior
  • .htaccess-based rewriting remains fully functional
Security: add getConfig() skip list and setConfigFile() reserved guard
Автор: Eduard Laas | Дата: 22:30 26.02.2026

Protect reserved config files from being merged into $conf via getConfig() or accidentally overwritten via setConfigFile(). Three files serve system injection purposes (not config arrays) and must be excluded from glob merge.

Core changes:

  1. getConfig() (core/system.php):
  2. Replace single local.php check with explicit $skip array
  3. Skip list: local.php, system.php, header.php, chmod.php
  4. setConfigFile() (core/system.php):
  5. Add static $reserved guard at function entry point
  6. Reserved: system.php, header.php, chmod.php, local.php
  7. Calls with reserved filenames return silently without writing

Benefits:

  • Prevents accidental overwrite of system injection files
  • Eliminates false config merges from null-returning reserved files
  • Explicit skip list is self-documenting

Technical notes:

  • config/system.php, header.php, chmod.php return null by design
  • config/local.php provides per-environment overrides, must not be merged
  • Backward compatible: existing callers are unaffected
Refactor: replace $confu['anonym'] with _ANONYM language constant
Автор: Eduard Laas | Дата: 22:30 26.02.2026

Remove the configurable anonymous user name ($confu['anonym']) and replace it with the static language constant _ANONYM defined in all six root language files. This eliminates a config option that had no practical need for per-site customization.

Core changes:

  1. Language files (language/*.php — 6 files):
  2. Add define("_ANONYM", "...") between _AND and _ANSWER in all 6 languages

    • en: "Guest", ru: "Гость", de: "Gast", fr: "Invité", pl: "Gość", uk: "Гість"
  3. Admin language files (admin/language/*.php — 6 files):
  4. Remove define("_ANONYMOUSNAME", "...") from all 6 files
  5. Config and core (config/users.php, core/admin.php, core/security.php, core/user.php):
  6. Remove 'anonym' key from config/users.php
  7. Replace all $confu['anonym'] with _ANONYM
  8. Admin modules (modules/*/admin/index.php — 10 modules + account):
  9. Remove anonym form field from modules/account/admin/index.php
  10. Replace $confu['anonym'] with _ANONYM in 10 module admin files
  11. Block (blocks/block-user_info.php):
  12. Replace $confu['anonym'] with _ANONYM

Benefits:

  • Simplifies configuration (removes non-essential option)
  • Consistent anonymous name via i18n constant system
  • _ANONYM resides in language/*.php (globally loaded, not admin-only)

Technical notes:

  • _ANONYM is defined in language/.php, not admin/language/.php
  • core/security.php: collapsed $anon initialization into substr(_ANONYM, 0, 25)
Refactor: modernize all front-end modules to PHP 8.4 standards
Автор: Eduard Laas | Дата: 22:30 26.02.2026

Apply full PHP 8.4 modernization across all 26 front-end modules. Each module receives type-safe function signatures, setHead() for SEO metadata, prepared SQL with named placeholders, getVar() for all user input, and setFoot() replacing legacy foot() calls.

Core changes:

  1. SEO and head output (all modules):
  2. Replace head($conf['defis'].' '._MODULE) with setHead(['title' => _MODULE])
  3. Replace foot() with setFoot()
  4. SQL queries (all modules):
  5. Convert string-concatenated queries to prepared statements
  6. Add PREFIX_DB constant to all table references
  7. Input handling (all modules):
  8. Replace $_GET/$_POST direct access with getVar()
  9. Add type hints to all function parameters and return types
  10. Template variables (all modules):
  11. Fix placeholder syntax: 'title' => ... to '{%title%}' => ...
  12. Use setTemplateBasic() / setTemplateWarning() exclusively
  13. Anonymous user display (faq, files, forum, help, jokes, links, media, news, pages, search, shop, whois, account):

  14. Replace $confu['anonym'] with _ANONYM constant

Benefits:

  • Full PHP 8.4 compatibility across all public-facing modules
  • Eliminates SQL injection attack surface in 26 modules
  • Consistent anonymous user display via _ANONYM constant
  • Uniform SEO metadata via setHead()

Technical notes:

  • modules/forum/index.php: largest single-module change (~1469 lines)
  • modules/news/index.php: second largest (~566 lines)
  • All 26 front-end modules now fully modernized (100% complete)
Refactor: migrate remaining front modules to setHead/setFoot; add h1 for view mode in templates
Автор: Eduard Laas | Дата: 18:10 26.02.2026

Complete the head()/foot() → setHead()/setFoot() migration for the last nine front-end modules, and update both basic.html templates to render the article title as <h1> when in single-view mode and <h3> in list mode.

Core changes:

  1. pages/index.php → setHead(seo); setFoot()
  2. recommend/index.php → setHead(); setFoot()
  3. rss/index.php → setHead(); setFoot()
  4. search/index.php → setHead(); setFoot()
  5. shop/index.php → setHead(seo); setFoot()

    • Pass title, desc, img, time, ctitle, author
  6. sitemap/index.php → setHead(); setFoot()
  7. users/index.php → setHead(); setFoot()
  8. voting/index.php → setHead(seo); setFoot()
  9. whois/index.php → setHead(); setFoot()
  10. templates/default/basic.html and templates/lite/basic.html:
  11. Wrap title in {%if is_view%}<h1>…</h1>{%else%}<h3>…</h3>{%endif%}

    • Single-article view uses semantically correct <h1> for SEO
    • List views retain <h3> for visual hierarchy

Benefits:

  • All front-end modules now use the unified SEO-aware setHead() API
  • Templates emit correct heading hierarchy — <h1> on detail pages improves Schema.org headline alignment and core-web-vitals LCP

Technical notes:

  • head()/foot() aliases can be removed in a future cleanup pass
  • {%if is_view%} is evaluated by the template engine; no PHP changes needed
  • Backward compatible: basic.html change is purely additive

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

1 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 105
Хотите опробовать SLAED CMS в действии?
Идеи и предложения
Обратная связь
Подтверждение

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