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

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

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

Всего: 1347 Доступных коммитов | Отфильтровано: 1347 Коммиты | Страница: 110 из 135
25.02.2026
Refactor: Modernize money admin module
Автор: Eduard Laas | Дата: 15:37 25.02.2026

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

Core changes:

  1. Navigation (modules/money/admin/index.php):
  • money_navi() → navi() with typed int parameters
  • Switched to getAdminTabs() + name=money&op=... URL pattern
  1. Function renames (modules/money/admin/index.php):
  • money_add() → add()
  • money_save() → save()
  • money_delete() → del(int $did)
  • money_rechn() → rechn()
  • money_conf() → conf()
  • money_conf_save() → confsave()
  • money_info() → info()
  • billing() → billing() with typed parameters (string args)
  • New: active() — toggles active/inactive state for money entries
  1. Global variable cleanup (modules/money/admin/index.php):
  • $admin_file → $afile
  • $confmo → $conf['money'] with null-coalesce defaults
  • tpl_eval() → setTemplateBasic()
  • tpl_warn() → setTemplateWarning()
  • while (list()) → while ([]) destructuring

Benefits:

  • Eliminates deprecated $confmo 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 media admin module
Автор: Eduard Laas | Дата: 15:37 25.02.2026

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

Core changes:

  1. Navigation (modules/media/admin/index.php):
  • media_navi() → navi() with typed int parameters
  • Switched to getAdminTabs() + name=media&op=... URL pattern
  1. Function renames (modules/media/admin/index.php):
  • media_add() → add()
  • media_save() → save()
  • media_delete() → del(int $did)
  • media_conf() → conf()
  • media_conf_save() → confsave()
  • media_info() → info()
  • New: ignore() — marks pending media entry as approved (status=1)
  1. Global variable cleanup (modules/media/admin/index.php):
  • $admin_file → $afile
  • $confm → $conf['media'] with null-coalesce defaults
  • tpl_eval() → setTemplateBasic()
  • tpl_warn() → setTemplateWarning()
  • while (list()) → while ([]) destructuring

Benefits:

  • Eliminates deprecated $confm 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 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):
  • Double-quoted strings → single-quoted strings
  • main() → main(): void
  • Tabs → 4-space indentation
  • Removed trailing ?>
  1. Guard clause (modules/main/index.php):
  • "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):
  • links_navi() → navi() with typed int parameters
  • Switched to getAdminTabs() + name=links&op=... URL pattern
  1. Function renames (modules/links/admin/index.php):
  • links_add() → add()
  • links_save() → save()
  • links_delete() → del(int $dfid)
  • links_conf() → conf()
  • links_conf_save() → confsave()
  • links_info() → info()
  • New: ignore() — sets link status=1 (approve pending link)
  1. Global variable cleanup (modules/links/admin/index.php):
  • $admin_file → $afile
  • $confl → $conf['links'] with null-coalesce defaults
  • tpl_eval() → setTemplateBasic()
  • tpl_warn() → setTemplateWarning()
  • 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):
  • jokes_navi() → navi() with typed int parameters
  • Switched to getAdminTabs() + name=jokes&op=... URL pattern
  1. Function renames (modules/jokes/admin/index.php):
  • jokes_add() → add()
  • jokes_save() → save()
  • jokes_delete() → del(int $fid)
  • jokes_conf() → conf()
  • jokes_conf_save() → confsave()
  • jokes_info() → info()
  1. Global variable cleanup (modules/jokes/admin/index.php):
  • $admin_file → $afile
  • $confj → $conf['jokes'] with null-coalesce defaults
  • tpl_eval() → setTemplateBasic()
  • tpl_warn() → setTemplateWarning()
  • 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):
  • help_navi() → navi() with typed int parameters
  • Switched to getAdminTabs() + name=help&op=... URL pattern
  1. Function renames (modules/help/admin/index.php):
  • help_view() → view()
  • help_add_view() → addview(int $id): string
  • help_add() → add()
  • help_save() → save()
  • help_delete() → del(int $fid)
  • help_conf() → conf()
  • help_conf_save() → confsave()
  • help_info() → info()
  1. Global variable cleanup (modules/help/admin/index.php):
  • $admin_file → $afile
  • $confh → $conf['help'] with null-coalesce defaults
  • tpl_eval() → setTemplateBasic()
  • tpl_warn() → setTemplateWarning()
  • 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):
  • forum_navi() → navi() with typed int parameters
  • Switched to getAdminTabs() + name=forum&op=... URL pattern
  1. Function renames (modules/forum/admin/index.php):
  • forum_synch() → synch()
  • forum_conf() → conf()
  • forum_conf_save() → confsave()
  • forum_info() → info()
  1. Global variable cleanup (modules/forum/admin/index.php):
  • $admin_file / $aroute → $afile
  • $conffo → $conf['forum'] with null-coalesce defaults
  • tpl_eval() → setTemplateBasic()
  • 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):
  • Added $legacy parameter pass-through to getAdminTabs()
  • Tab URL patterns updated: op=files&status → name=files&status
  1. Config access (modules/files/admin/index.php):
  • $conff['anum'] / $conff['anump'] → $conf['files']['anum'] with defaults
  • $offset calculation uses inline $anum variable
  1. Function rename (modules/files/admin/index.php):
  • 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):
  • faq_navi() → navi() with typed int parameters
  • Switched to getAdminTabs() + name=faq&op=... URL pattern
  1. Function renames (modules/faq/admin/index.php):
  • faq() → faq() (retained, cleaned up)
  • faq_add() → add()
  • faq_save() → save()
  • faq_delete() → del(int $fid)
  • faq_conf() → conf()
  • faq_conf_save() → confsave()
  • faq_info() → info()
  1. Global variable cleanup (modules/faq/admin/index.php):
  • $admin_file → $afile
  • $conff → $conf['faq'] with null-coalesce defaults
  • tpl_eval() → setTemplateBasic()
  • tpl_warn() → setTemplateWarning()
  • 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):
  • content_navi() → navi() with typed int parameters
  • Switched to getAdminTabs() + name=content&op=... URL pattern
  1. Function renames (modules/content/admin/index.php):
  • content() → retained, globals cleaned up
  • content_add() → add()
  • content_delete() → delete()
  • content_conf() → conf()
  • content_info() → info()
  1. Global variable cleanup (modules/content/admin/index.php):
  • $admin_file → $afile
  • $confcn → $conf['content'] with null-coalesce defaults
  • tpl_eval() → setTemplateBasic()
  • tpl_warn() → setTemplateWarning()
  • 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
Хотите опробовать SLAED CMS в действии?
Идеи и предложения
Обратная связь
Подтверждение

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

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