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:
- Navigation (modules/shop/admin/index.php):
- shop_navi() → navi() with typed int + string parameters
- Function renames (modules/shop/admin/index.php):
- shop_clients() → clients()
- shop_clients_act() → clientsact()
- shop_clients_add() → clientsadd()
- shop_clients_save() → clientssave()
- shop_clients_delete() → clientsdel(int $id)
- shop_products() → products()
- shop_products_add() → productsadd()
- shop_products_save() → productssave()
- shop_products_admin() → productsadmin(int|array $id, string $vtyp)
- shop_partners() → partners()
- shop_partners_act() → partnersact()
- shop_partners_add() → partnersadd()
- shop_partners_save() → partnerssave()
- shop_partners_delete() → partnersdel(int $id)
- shop_partners_details() → partnersdetails()
- shop_export() → exportdata()
- shop_conf() → conf()
- shop_conf_save() → save()
- shop_info() → info()
- New: shop() — main listing function
- Global variable cleanup (modules/shop/admin/index.php):
- $admin_file → $afile
- $confs → $conf['shop'] with null-coalesce defaults
- tpl_eval() → setTemplateBasic()
- 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
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:
- Argument order fix (modules/rss/admin/index.php):
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
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:
- Navigation (modules/pages/admin/index.php):
- page_navi() → navi() with typed int parameters
- Switched to getAdminTabs() + name=pages&op=... URL pattern
- Function renames (modules/pages/admin/index.php):
- page() → pages() (matches module op)
- page_add() → add()
- page_save() → save()
- page_delete() → del(int $did)
- page_conf() → conf()
- page_conf_save() → confsave()
- page_info() → info()
- Global variable cleanup (modules/pages/admin/index.php):
- $admin_file → $afile
- $confp → $conf['pages'] with null-coalesce defaults
- tpl_eval() → setTemplateBasic()
- tpl_warn() → setTemplateWarning()
- 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
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:
- Navigation (modules/order/admin/index.php):
- order_navi() → navi() with typed int parameters
- Switched to getAdminTabs() + name=order&op=... URL pattern
- Function renames (modules/order/admin/index.php):
- order_add() → add()
- order_save() → save()
- order_delete() → del(int $did)
- order_conf() → conf()
- order_conf_save() → confsave()
- order_info() → info()
- New: active() — toggles order entry active state
- Global variable cleanup (modules/order/admin/index.php):
- $admin_file → $afile
- $confor → $conf['order'] with null-coalesce defaults
- tpl_eval() → setTemplateBasic()
- tpl_warn() → setTemplateWarning()
- 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
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:
- Navigation (modules/news/admin/index.php):
- news_navi() → navi() with typed int parameters
- Switched to getAdminTabs() + name=news&op=... URL pattern
- Function renames (modules/news/admin/index.php):
- news_add() → add()
- news_save() → save()
- news_admin() → admin(int|array $ids, string $vtyp)
- news_conf() → conf()
- news_conf_save() → confsave()
- news_info() → info()
- Global variable cleanup (modules/news/admin/index.php):
- $admin_file → $afile
- $confn → $conf['news'] with null-coalesce defaults
- tpl_eval() → setTemplateBasic()
- tpl_warn() → setTemplateWarning()
- 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
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:
- Navigation (modules/money/admin/index.php):
- money_navi() → navi() with typed int parameters
- Switched to getAdminTabs() + name=money&op=... URL pattern
- 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
- 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
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:
- Navigation (modules/media/admin/index.php):
- media_navi() → navi() with typed int parameters
- Switched to getAdminTabs() + name=media&op=... URL pattern
- 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)
- 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
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:
- Code style (modules/main/index.php):
- Double-quoted strings → single-quoted strings
- main() → main(): void
- Tabs → 4-space indentation
- Removed trailing ?>
- 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
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:
- Navigation (modules/links/admin/index.php):
- links_navi() → navi() with typed int parameters
- Switched to getAdminTabs() + name=links&op=... URL pattern
- 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)
- 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
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:
- Navigation (modules/jokes/admin/index.php):
- jokes_navi() → navi() with typed int parameters
- Switched to getAdminTabs() + name=jokes&op=... URL pattern
- 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()
- 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