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

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

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

Всего: 1098 Доступных коммитов | Отфильтровано: 1098 Коммиты | Страница: 85 / 110
25.02.2026
Refactor: Modernize news admin module
Автор: Eduard Laas | Дата: 15:38 25.02.2026

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

Core changes:

  1. Navigation (modules/news/admin/index.php):
  2. news_navi() → navi() with typed int parameters
  3. Switched to getAdminTabs() + name=news&op=... URL pattern
  4. Function renames (modules/news/admin/index.php):
  5. news_add() → add()
  6. news_save() → save()
  7. news_admin() → admin(int|array $ids, string $vtyp)
  8. news_conf() → conf()
  9. news_conf_save() → confsave()
  10. news_info() → info()
  11. Global variable cleanup (modules/news/admin/index.php):
  12. $admin_file → $afile
  13. $confn → $conf['news'] with null-coalesce defaults
  14. tpl_eval() → setTemplateBasic()
  15. tpl_warn() → setTemplateWarning()
  16. while (list()) → while ([]) destructuring

Benefits:

  • Eliminates deprecated $confn 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 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):
  2. money_navi() → navi() with typed int parameters
  3. Switched to getAdminTabs() + name=money&op=... URL pattern
  4. Function renames (modules/money/admin/index.php):
  5. money_add() → add()
  6. money_save() → save()
  7. money_delete() → del(int $did)
  8. money_rechn() → rechn()
  9. money_conf() → conf()
  10. money_conf_save() → confsave()
  11. money_info() → info()
  12. billing() → billing() with typed parameters (string args)
  13. New: active() — toggles active/inactive state for money entries
  14. Global variable cleanup (modules/money/admin/index.php):
  15. $admin_file → $afile
  16. $confmo → $conf['money'] with null-coalesce defaults
  17. tpl_eval() → setTemplateBasic()
  18. tpl_warn() → setTemplateWarning()
  19. 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):
  2. media_navi() → navi() with typed int parameters
  3. Switched to getAdminTabs() + name=media&op=... URL pattern
  4. Function renames (modules/media/admin/index.php):
  5. media_add() → add()
  6. media_save() → save()
  7. media_delete() → del(int $did)
  8. media_conf() → conf()
  9. media_conf_save() → confsave()
  10. media_info() → info()
  11. New: ignore() — marks pending media entry as approved (status=1)
  12. Global variable cleanup (modules/media/admin/index.php):
  13. $admin_file → $afile
  14. $confm → $conf['media'] with null-coalesce defaults
  15. tpl_eval() → setTemplateBasic()
  16. tpl_warn() → setTemplateWarning()
  17. 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):
  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

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

1 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 110
Хотите опробовать SLAED CMS в действии?
Идеи и предложения
Обратная связь
Подтверждение

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