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

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

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

Всего: 415 Доступных коммитов | Отфильтровано: 415 Коммиты | Страница: 16 / 42
25.02.2026
Chore: Replace positional \$arg[N] placeholders with named tokens in basic.html
Автор: Eduard Laas | Дата: 15:40 25.02.2026

The admin basic item template used positional array references (\$arg[1] through \$arg[10]) which were fragile and hard to read. Replaces them with descriptive named tokens matching the keys passed by setTemplateBasic().

Core changes:

  1. Placeholder rename (templates/admin/basic.html):
  2. \$arg[2] → {%id%}
  3. \$arg[3] → {%title%}
  4. \$arg[4] → {%text%}
  5. \$arg[5] → {%post%}
  6. \$arg[6] → {%date%}
  7. \$arg[7] → {%reads%}
  8. \$arg[8] → {%comm%}
  9. \$arg[9] → {%rating%}
  10. \$arg[10] → {%admin%}
  11. \$arg[1] → {%ctitle%}

Benefits: - Template is self-documenting; field purpose visible without cross-referencing PHP - Named tokens decouple template from positional argument order - Consistent with the named-token convention used in other templates

Technical notes: - Requires setTemplateBasic() callers to pass named-key arrays - No HTML structure changed; layout identical

Refactor: Modernize sitemap public module
Автор: Eduard Laas | Дата: 15:40 25.02.2026

Converts the sitemap public module to current SLAED PHP conventions: 4-space indentation, single-quoted strings, void return type, SITEMAP_DIR constant for file resolution, and updated template helpers.

Core changes:

  1. Code style (modules/sitemap/index.php):
  2. Tabs → 4-space indentation throughout
  3. Double-quoted strings → single-quoted
  4. sitemap() → sitemap(): void
  5. File path (modules/sitemap/index.php):
  6. Hardcoded 'config/sitemap/sitemap.txt' → SITEMAP_DIR.'/sitemap.txt' * Resolves via constant, independent of working directory

  7. Template helpers (modules/sitemap/index.php):
  8. tpl_eval('title', ...) → setTemplateBasic('title', ['title' => ...])
  9. tpl_eval('open/close') → setTemplateBasic('open/close')
  10. tpl_warn() → setTemplateWarning()
  11. Switch style (modules/sitemap/index.php):
  12. Multiline switch/case → compact single-line form
  13. Removed closing ?>

Benefits: - Consistent style with other modernized public modules - File path resolved via constant rather than implicit cwd

Technical notes: - Behavior unchanged; pure refactor - Copyright year updated to 2026

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

Cleans up the sitemap admin module: replaces $aroute with $afile, uses the SITEMAP_DIR constant for file paths, adds a null-check for fopen(), passes the $legacy parameter to getAdminTabs(), and guards file_get_contents() with is_readable().

Core changes:

  1. Global variable (modules/sitemap/admin/index.php):
  2. $aroute → $afile in all functions (sitemap, xsl, xslsave, conf, confsave)
  3. File path hardening (modules/sitemap/admin/index.php):
  4. Hardcoded 'sitemap.xsl' → SITEMAP_DIR.'/sitemap.xsl'
  5. file_get_contents() → is_readable() guard before read
  6. fopen() now checked for false before entering while loop * fclose() moved inside the if-block to prevent warning on null handle

  7. Navigation fix (modules/sitemap/admin/index.php):
  8. $legacy parameter now forwarded correctly to getAdminTabs()

Benefits: - Eliminates $aroute global; consistent with other modernized modules - Prevents PHP warnings from fopen() failure on missing XML files - File paths resolved via constant rather than implicit cwd

Technical notes: - Behavior unchanged; pure refactor and hardening - fopen() suppression (@) retained from original for non-critical read

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

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

Core changes:

  1. Navigation (modules/shop/admin/index.php):
  2. shop_navi() → navi() with typed int + string parameters
  3. Function renames (modules/shop/admin/index.php):
  4. shop_clients() → clients()
  5. shop_clients_act() → clientsact()
  6. shop_clients_add() → clientsadd()
  7. shop_clients_save() → clientssave()
  8. shop_clients_delete() → clientsdel(int $id)
  9. shop_products() → products()
  10. shop_products_add() → productsadd()
  11. shop_products_save() → productssave()
  12. shop_products_admin() → productsadmin(int|array $id, string $vtyp)
  13. shop_partners() → partners()
  14. shop_partners_act() → partnersact()
  15. shop_partners_add() → partnersadd()
  16. shop_partners_save() → partnerssave()
  17. shop_partners_delete() → partnersdel(int $id)
  18. shop_partners_details() → partnersdetails()
  19. shop_export() → exportdata()
  20. shop_conf() → conf()
  21. shop_conf_save() → save()
  22. shop_info() → info()
  23. New: shop() — main listing function
  24. Global variable cleanup (modules/shop/admin/index.php):
  25. $admin_file → $afile
  26. $confs → $conf['shop'] with null-coalesce defaults
  27. tpl_eval() → setTemplateBasic()
  28. while (list()) → while ([]) destructuring

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

Fix: Correct adm_info() argument order in rss admin
Автор: Eduard Laas | Дата: 15:39 25.02.2026

The adm_info() call in info() was passing the numeric flag as the second argument and the module name as the third. The function signature expects (flag, module, ...) — swap restores correct info-panel rendering.

Core changes:

  1. Argument order fix (modules/rss/admin/index.php):
  2. adm_info(1, 0, 'rss') → adm_info(1, 'rss', 0) * Second arg is module name, third is language fallback flag

Benefits: - Info panel now loads the correct rss module documentation - Aligns with the adm_info() signature used in all other modules

Technical notes: - Single-line change; no other logic affected

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

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

Core changes:

  1. Navigation (modules/pages/admin/index.php):
  2. page_navi() → navi() with typed int parameters
  3. Switched to getAdminTabs() + name=pages&op=... URL pattern
  4. Function renames (modules/pages/admin/index.php):
  5. page() → pages() (matches module op)
  6. page_add() → add()
  7. page_save() → save()
  8. page_delete() → del(int $did)
  9. page_conf() → conf()
  10. page_conf_save() → confsave()
  11. page_info() → info()
  12. Global variable cleanup (modules/pages/admin/index.php):
  13. $admin_file → $afile
  14. $confp → $conf['pages'] with null-coalesce defaults
  15. tpl_eval() → setTemplateBasic()
  16. tpl_warn() → setTemplateWarning()
  17. while (list()) → while ([]) destructuring

Benefits: - Eliminates deprecated $confp 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 order admin module
Автор: Eduard Laas | Дата: 15:38 25.02.2026

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

Core changes:

  1. Navigation (modules/order/admin/index.php):
  2. order_navi() → navi() with typed int parameters
  3. Switched to getAdminTabs() + name=order&op=... URL pattern
  4. Function renames (modules/order/admin/index.php):
  5. order_add() → add()
  6. order_save() → save()
  7. order_delete() → del(int $did)
  8. order_conf() → conf()
  9. order_conf_save() → confsave()
  10. order_info() → info()
  11. New: active() — toggles order entry active state
  12. Global variable cleanup (modules/order/admin/index.php):
  13. $admin_file → $afile
  14. $confor → $conf['order'] with null-coalesce defaults
  15. tpl_eval() → setTemplateBasic()
  16. tpl_warn() → setTemplateWarning()
  17. while (list()) → while ([]) destructuring

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

Всего: 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
Идеи и предложения
Обратная связь