Чтение RSS каналов

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

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

Всего: 415 Доступных коммитов | Отфильтровано: 415 Коммиты | Страница: 17 / 42
25.02.2026
Refactor: Modernize main module
Автор: Eduard Laas | Дата: 15:37 25.02.2026

Converts the main module to current SLAED PHP style: single-quoted strings throughout, void return type on main(), consistent 4-space indentation, and removal of the closing ?> tag.

Core changes:

  1. Code style (modules/main/index.php):
  2. Double-quoted strings → single-quoted strings
  3. main() → main(): void
  4. Tabs → 4-space indentation
  5. Removed trailing ?>
  6. Guard clause (modules/main/index.php):
  7. "MODULE_FILE" → 'MODULE_FILE' (single-quoted constant name)

Benefits: - Consistent style with other modernized public modules - No functional change

Technical notes: - Copyright year updated to 2026 - Behavior entirely unchanged

Refactor: Modernize links admin module
Автор: Eduard Laas | Дата: 15:36 25.02.2026

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

Core changes:

  1. Navigation (modules/links/admin/index.php):
  2. links_navi() → navi() with typed int parameters
  3. Switched to getAdminTabs() + name=links&op=... URL pattern
  4. Function renames (modules/links/admin/index.php):
  5. links_add() → add()
  6. links_save() → save()
  7. links_delete() → del(int $dfid)
  8. links_conf() → conf()
  9. links_conf_save() → confsave()
  10. links_info() → info()
  11. New: ignore() — sets link status=1 (approve pending link)
  12. Global variable cleanup (modules/links/admin/index.php):
  13. $admin_file → $afile
  14. $confl → $conf['links'] with null-coalesce defaults
  15. tpl_eval() → setTemplateBasic()
  16. tpl_warn() → setTemplateWarning()
  17. while (list()) → while ([]) destructuring

Benefits: - Eliminates deprecated $confl global and panel() call - Consistent naming aligned with router op values - Template API unified with other modernized modules

Technical notes: - Behavior unchanged for existing operations; pure refactor - ignore() extracts previously inline approve-link logic

Refactor: Modernize jokes admin module
Автор: Eduard Laas | Дата: 15:36 25.02.2026

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

Core changes:

  1. Navigation (modules/jokes/admin/index.php):
  2. jokes_navi() → navi() with typed int parameters
  3. Switched to getAdminTabs() + name=jokes&op=... URL pattern
  4. Function renames (modules/jokes/admin/index.php):
  5. jokes_add() → add()
  6. jokes_save() → save()
  7. jokes_delete() → del(int $fid)
  8. jokes_conf() → conf()
  9. jokes_conf_save() → confsave()
  10. jokes_info() → info()
  11. Global variable cleanup (modules/jokes/admin/index.php):
  12. $admin_file → $afile
  13. $confj → $conf['jokes'] with null-coalesce defaults
  14. tpl_eval() → setTemplateBasic()
  15. tpl_warn() → setTemplateWarning()
  16. while (list()) → while ([]) destructuring

Benefits: - Eliminates deprecated $confj 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 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

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

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

Технологии

PHP MySQL HTML 5 CSS 3 jQuery jQuery UI

Контакты

  • D-49179, Deutschland
    Ostercappeln, Im Siek 6
  • +49 176 61966679

  • https://slaed.net
Идеи и предложения
Обратная связь