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

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

Всего: 872 Доступных коммитов | Отфильтровано: 872 Коммиты | Страница: 63 / 88
25.02.2026
Refactor: Modernize help admin module
Автор: Eduard Laas | Дата: 15:36 25.02.2026

Rewrites the help admin module with current SLAED conventions: short op-aligned function names, $afile instead of $admin_file, inline $conf['help'] access, and unified template API.

Core changes:

  1. Navigation (modules/help/admin/index.php):
  2. help_navi() → navi() with typed int parameters
  3. Switched to getAdminTabs() + name=help&op=... URL pattern
  4. Function renames (modules/help/admin/index.php):
  5. help_view() → view()
  6. help_add_view() → addview(int $id): string
  7. help_add() → add()
  8. help_save() → save()
  9. help_delete() → del(int $fid)
  10. help_conf() → conf()
  11. help_conf_save() → confsave()
  12. help_info() → info()
  13. Global variable cleanup (modules/help/admin/index.php):
  14. $admin_file → $afile
  15. $confh → $conf['help'] with null-coalesce defaults
  16. tpl_eval() → setTemplateBasic()
  17. tpl_warn() → setTemplateWarning()
  18. while (list()) → while ([]) destructuring

Benefits:

  • Eliminates deprecated $confh global and panel() call
  • Consistent naming aligned with router op values
  • Template API unified with other modernized modules

Technical notes:

  • Behavior unchanged; pure refactor
  • Copyright year updated to 2026
Refactor: Modernize forum admin module
Автор: Eduard Laas | Дата: 15:35 25.02.2026

Rewrites the forum admin module with current SLAED conventions: short op-aligned function names, $afile instead of $admin_file, inline $conf['forum'] access, and unified template API.

Core changes:

  1. Navigation (modules/forum/admin/index.php):
  2. forum_navi() → navi() with typed int parameters
  3. Switched to getAdminTabs() + name=forum&op=... URL pattern
  4. Function renames (modules/forum/admin/index.php):
  5. forum_synch() → synch()
  6. forum_conf() → conf()
  7. forum_conf_save() → confsave()
  8. forum_info() → info()
  9. Global variable cleanup (modules/forum/admin/index.php):
  10. $admin_file / $aroute → $afile
  11. $conffo → $conf['forum'] with null-coalesce defaults
  12. tpl_eval() → setTemplateBasic()
  13. tpl_warn() → setTemplateWarning()

Benefits:

  • Eliminates deprecated $conffo global and panel() call
  • Consistent function naming aligned with router op values
  • Template API unified with other modernized modules

Technical notes:

  • Behavior unchanged; pure refactor
  • Copyright year updated to 2026
Refactor: Modernize files admin module (continued)
Автор: Eduard Laas | Дата: 15:35 25.02.2026

Follow-up to the initial files-admin modernization: fixes the legacy parameter in getAdminTabs(), switches from $conff global to inline $conf['files'], cleans up URL patterns, and renames conf_save() to confsave() for consistency with other modules.

Core changes:

  1. Navigation fix (modules/files/admin/index.php):
  2. Added $legacy parameter pass-through to getAdminTabs()
  3. Tab URL patterns updated: op=files&status → name=files&status
  4. Config access (modules/files/admin/index.php):
  5. $conff['anum'] / $conff['anump'] → $conf['files']['anum'] with defaults
  6. $offset calculation uses inline $anum variable
  7. Function rename (modules/files/admin/index.php):
  8. conf_save() → confsave() (aligns with other modules)

Benefits:

  • Eliminates remaining $conff global dependency
  • Tab URLs consistent with name=module&op=... routing pattern
  • Naming fully aligned with project conventions

Technical notes:

  • Behavior unchanged; pure refactor
  • Legacy parameter now forwarded correctly to getAdminTabs
Refactor: Modernize faq admin module
Автор: Eduard Laas | Дата: 15:35 25.02.2026

Rewrites the faq admin module with current SLAED conventions: short op-aligned function names, $afile instead of $admin_file, inline $conf['faq'] access instead of global $conff, and unified template API.

Core changes:

  1. Navigation (modules/faq/admin/index.php):
  2. faq_navi() → navi() with typed int parameters
  3. Switched to getAdminTabs() + name=faq&op=... URL pattern
  4. Function renames (modules/faq/admin/index.php):
  5. faq() → faq() (retained, cleaned up)
  6. faq_add() → add()
  7. faq_save() → save()
  8. faq_delete() → del(int $fid)
  9. faq_conf() → conf()
  10. faq_conf_save() → confsave()
  11. faq_info() → info()
  12. Global variable cleanup (modules/faq/admin/index.php):
  13. $admin_file → $afile
  14. $conff → $conf['faq'] with null-coalesce defaults
  15. tpl_eval() → setTemplateBasic()
  16. tpl_warn() → setTemplateWarning()
  17. while (list()) → while ([]) destructuring

Benefits:

  • Eliminates deprecated $conff global and panel() call
  • Consistent naming aligned with router op values
  • Template API unified with other modernized modules

Technical notes:

  • Behavior unchanged; pure refactor
  • Copyright year updated to 2026
Refactor: Modernize content admin module
Автор: Eduard Laas | Дата: 15:34 25.02.2026

Rewrites the content admin module to use current SLAED conventions: short op-aligned function names, $afile instead of $admin_file, inline $conf['content'] access instead of global $confcn, and the unified setTemplateBasic / getAdminTabs template API.

Core changes:

  1. Navigation (modules/content/admin/index.php):
  2. content_navi() → navi() with typed int parameters
  3. Switched to getAdminTabs() + name=content&op=... URL pattern
  4. Function renames (modules/content/admin/index.php):
  5. content() → retained, globals cleaned up
  6. content_add() → add()
  7. content_delete() → delete()
  8. content_conf() → conf()
  9. content_info() → info()
  10. Global variable cleanup (modules/content/admin/index.php):
  11. $admin_file → $afile
  12. $confcn → $conf['content'] with null-coalesce defaults
  13. tpl_eval() → setTemplateBasic()
  14. tpl_warn() → setTemplateWarning()
  15. while (list()) → while ([]) destructuring

Benefits:

  • Eliminates deprecated $confcn global and panel() call in navi
  • Consistent function naming aligned with router op values
  • Template API unified with other modernized modules

Technical notes:

  • Behavior unchanged; pure refactor
  • Copyright year updated to 2026
Refactor: Modernize contact admin module
Автор: Eduard Laas | Дата: 15:34 25.02.2026

Aligns the contact admin module with current SLAED conventions: renamed functions to short lowercase names matching the op values, replaced global $admin_file with $afile, and switched template helpers to the new setTemplateBasic / getAdminTabs API.

Core changes:

  1. Navigation and op routing (modules/contact/admin/index.php):
  2. contact_navi() → navi() with typed int parameters
  3. Uses getAdminTabs() instead of navi_gen()
  4. Op URLs updated to name=contact&op=... pattern
  5. CRUD functions renamed (modules/contact/admin/index.php):
  6. contact_conf() → contact()
  7. contact_conf_save() → save()
  8. contact_info() → info()
  9. Global variable cleanup (modules/contact/admin/index.php):
  10. $admin_file → $afile
  11. $confco → $conf['contact'] (inline array access)
  12. tpl_eval() → setTemplateBasic()
  13. adm_info() signature updated to new arg order

Benefits:

  • Consistent naming with other modernized admin modules
  • Eliminates deprecated $confco global
  • Template calls use the unified setTemplateBasic API

Technical notes:

  • Behavior unchanged; pure refactor
  • Copyright year updated to 2026
Chore: Rename whois language files from lang-X.php to ISO codes
Автор: Eduard Laas | Дата: 15:33 25.02.2026

Aligns the whois module language file naming with the project-wide two-letter ISO 639-1 convention used after the info-file rename.

Core changes:

  1. Renamed language files (modules/whois/language/):
  2. lang-english.php → en.php
  3. lang-french.php → fr.php
  4. lang-german.php → de.php
  5. lang-polish.php → pl.php
  6. lang-russian.php → ru.php
  7. lang-ukrainian.php → uk.php

Benefits:

  • Consistent ISO 639-1 naming across language/ and admin/info/ directories
  • Language loader can use the same locale key for both directories

Technical notes:

  • File contents unchanged; pure rename operation
  • Any caller using include/require with old names must be updated separately
Chore: Rename admin info files from full language names to ISO codes
Автор: Eduard Laas | Дата: 15:33 25.02.2026

Standardises the naming of per-module admin help files: the old full-word names (english.html, russian.html, …) are replaced with two-letter ISO 639-1 codes (en.html, ru.html, …) that match the language identifiers used everywhere else in the codebase.

Core changes:

  1. Renamed per-module info files:
  2. faq, files, forum, help, jokes, links, media, money, news, pages, shop, voting, whois → all six language variants renamed

    • english.html → en.html, french.html → fr.html,
german.html → de.html, polish.html → pl.html,
russian.html → ru.html, ukrainian.html → uk.html
  1. Global RSS info files migrated to module (admin/info/):
  2. admin/info/rss-de/en/fr/pl/ru/uk.html → deleted (old global location)
  3. modules/rss/admin/info/de/en/fr/pl/ru/uk.html → added (module-local)
  4. Whois admin info files:
  5. admin/info/whois-.html → modules/whois/admin/info/.html (ISO names)

Benefits:

  • Consistent file naming aligned with ISO 639-1 language codes
  • Easier programmatic lookup: adm_info() can resolve locale to filename directly
  • Removes ambiguity between long-name and code-based file resolution

Technical notes:

  • Content of HTML files unchanged; pure rename operation
  • adm_info() callers must use ISO codes (already the standard)
Fix: Unique SQL placeholders, INSERT params, and empty-category guard in forum
Автор: Eduard Laas | Дата: 15:31 25.02.2026

Three independent bugs fixed in the forum public module: duplicate named placeholders in WHERE clauses, reused placeholders in INSERT (l_uid/l_name/ l_time sharing names with earlier params), and a missing head()/foot() pair when a category has no topics.

Core changes:

  1. Unique WHERE placeholders (modules/forum/index.php):
  2. category query: :id → :parentid / :cid (used twice in OR condition)
  3. move(): :val → :id_val / :pid_val in UPDATE SET catid query
  4. INSERT named params fix (modules/forum/index.php):
  5. l_uid, l_name, l_time now bound as :l_uid / :l_name / :l_time

    • Previously reused :postid / :postname / :time — caused rebind errors
  6. Empty-category guard (modules/forum/index.php):
  7. Added else branch: renders head() + setTemplateWarning(_NO_INFO)

    • Prevents blank page when forum category contains no threads
    • 5-second redirect back to forum root

Benefits:

  • Eliminates PDO named-parameter rebind errors in forum queries
  • Proper HTTP response (head/foot wrapper) for empty forum categories
  • INSERT now correctly stores l_uid / l_name / l_time independently

Technical notes:

  • All bound values remain identical; only parameter names changed
  • No schema or API changes; backward compatible
Fix: Unique named placeholders for multi-column LIKE queries in search
Автор: Eduard Laas | Дата: 15:31 25.02.2026

PDO does not allow reusing the same named placeholder more than once in a single query; duplicate :word bindings caused silent data loss or driver errors. Each LIKE column now gets its own numbered parameter.

Core changes:

  1. Unique LIKE parameters (modules/search/index.php):
  2. auto_links: :word → :word1, :word2, :word3 (sitename/description/link)
  3. faq: :word → :word1, :word2 (title/hometext)
  4. files: :word → :word1, :word2, :word3 (title/description/bodytext)
  5. forum: :word → :word1, :word2 (title/hometext)
  6. jokes: :word → :word1, :word2 (title/joke)
  7. links: :word → :word1, :word2, :word3, :word4 (title/description/bodytext/url)
  8. media: :word → :word1/:word2/:word3 per search type branch
  9. news, pages, faq, content: same pattern applied throughout

Benefits:

  • Eliminates PDO parameter rebind errors on multi-column LIKE searches
  • All LIKE values are bound with the same '%'.$word.'%' value — no logic change
  • Consistent placeholder naming across all search branches

Technical notes:

  • Pure parameter-naming fix; SQL logic and result sets are unchanged
  • Backward compatible: no schema or API changes

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

1 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 88

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

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