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

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

Всего: 884 Доступных коммитов | Отфильтровано: 884 Коммиты | Страница: 15 / 89
05.05.2026
i18n: add _ACCESS constant to all admin language files
Автор: Eduard Laas | Дата: 15:21 05.05.2026

Introduces a new language constant _ACCESS (de: 'Zugriff', en: 'Access', fr: 'Accès', pl: 'Dostęp', ru/uk: 'Доступ') placed alphabetically before the existing _SUPERUSER constant. Used as the column header and checkbox label in the admins module to distinguish plain module access from full super-admin access.

Core changes:

  1. All six admin language files (de, en, fr, pl, ru, uk):
  2. Added define('_ACCESS', '<translation>') between _SUBCATEGORY and _SUPERUSER so alphabetical ordering is preserved

Benefits:

  • Enables the admins list to display a distinct 'Access' column header instead of reusing _SUPERUSER for a non-binary indicator

  • Single-source translation for 'Access' across the whole admin panel

Technical notes:

  • _SUPERUSER ('Full access') is kept unchanged for backward compat with existing super-admin badge tooltips

Docs: rename 'Full access' to 'Access' in admins info pages (all langs)
Автор: Eduard Laas | Дата: 15:21 05.05.2026

The checkbox that grants unrestricted access to all modules was previously labelled 'Full access' in UI and documentation. This commit updates only the help/info pages so the label matches the upcoming constant rename in the codebase.

Core changes:

  1. Admin info pages — all six language variants (de, en, fr, pl, ru, uk):
  2. Updated label references from 'Full access' / 'Vollzugriff' / 'Полный доступ' / 'Повний доступ' / 'Accès complet' / 'Pełny dostęp' to the shorter 'Access' / 'Zugriff' / 'Доступ' / 'Доступ' / 'Accès' / 'Dostęp' respectively

  3. Fixed missing newline at end of file in de, en, fr, pl, uk variants

Benefits:

  • Documentation stays in sync with the renamed UI label
  • Consistent terminology across all language variants

Technical notes:

  • ru.md: heading 'Опция «Полный доступ»' updated to 'Опция «Доступ»'
  • Columns description updated in ru.md to match new column header
  • No logic or template changes in this commit
04.05.2026
Refactor: Monitor template — auto-escape scalar vars; balance Request grid
Автор: Eduard Laas | Дата: 14:57 04.05.2026

Aligns the template with the new PHP-side escaping contract: scalar monitor vars no longer need {{{ }}} (raw). SVG chart title vars switch to {{ }} now that PHP drops htmlspecialchars(). Request & Performance section redistributed so icon rows are balanced left vs right.

Core changes:

  1. Scalar var escaping (templates/admin/partials/basic-monitor.html):
  2. {{{ cmsver/phpver/mysql }}} → {{ }} in version status block
  3. {{{ uptime/osname/servfull/servprot/servname/serverip/servport }}} → {{ }}
  4. {{{ diskfree/dskread/dskwrite }}} → {{ }}
  5. {{{ lastbackuprun/backupdirsz/cachedirsz/logsdirsz/uploadssz }}} → {{ }}
  6. {{{ failedlogins24h/errorlog24h }}} → {{ }}
  7. {{{ phpsapi/zend_eng/php_char/memlim/scriptmem/maxtime }}} → {{ }}
  8. {{{ postmax/upmax/maxvars/maxfileup/gdver/opcache_* }}} → {{ }}
  9. {{{ dbchar/dbtz/dbmaxpack/dbbuffpool/dbconn/dbcurname/dbuser }}} → {{ }}
  10. {{{ reqip/mempeak }}} → {{ }}
  11. SVG title vars {{{ tip_up/down/cpu/ram }}} → {{ tip_* }}
  12. Request & Performance layout:
  13. LEFT: Client IP, Request URI (sl-tip), Query String (sl-tip),
    Execution Time, DB Queries — 2 icon rows
  • RIGHT: Accept Language (sl-tip), Cookies (sl-tip), User Agent (sl-tip),
     DB Time, Memory Peak — 3 icon rows
  • Previously: LEFT had 4 icon rows, RIGHT had 1 → visible asymmetry fixed

Benefits:

  • No double-escaping; template engine owns the XSS boundary via {{ }}
  • Request & Performance card visually balanced: 2 vs 3 icon rows
  • Accept Language / Cookies / User Agent grouped on right (browser headers)

Technical notes:

  • {{{ }}} retained only for vars that intentionally output HTML fragments (sl-tip HTML from getHtmlFrag): servroot, dbsqlmode, extlist_, req, lastsecurityevent24h, dbissueevent24h, syncurl, status icons

Style: Monitor table — text truncation, sl-tip overflow, icon alignment
Автор: Eduard Laas | Дата: 14:56 04.05.2026

Replaces word-wrap on the monitor value column with proper single-line truncation. sl-tip cells need overflow: visible so the popup and hover scale animation are not clipped; plain cells keep overflow: hidden.

Core changes:

  1. Monitor value column (templates/admin/assets/css/theme.css):
  2. Replace word-wrap/overflow-wrap with overflow:hidden + text-overflow:ellipsis
  3. :has(.sl-tip) override: overflow:visible (popup and icon scale escape clip)
  4. .sl-tip inside td: margin-right:4px + vertical-align:middle + top:1px (top:1px corrects 1px vertical offset measured via getBoundingClientRect)

  5. .sl-note inside td: display:inline-block + max-width:calc(100% - 26px) enables self-truncation without touching td display or table-layout:fixed

  6. Remove .sl-monitor-info-icon rule (class deleted with old fragment)

Benefits:

  • Label text truncates cleanly at cell boundary in all rows
  • Popup content never truncated — shows full value on hover/click
  • Icon and text vertically centered to the pixel across all rows
  • table-layout:fixed column widths preserved (no flex on td)

Technical notes:

  • display:flex on td breaks table-layout:fixed in Chrome (td shrinks ~38%)
  • overflow:hidden on td clips position:absolute popup before JS fires
  • position:fixed (JS sl-float-open) escapes all ancestor overflow clipping
Refactor: Monitor — migrate info icons to sl-tip; remove dead helpers
Автор: Eduard Laas | Дата: 14:56 04.05.2026

Replaces the old getTooltipText() / getLogSnippet() approach with the unified sl-tip popup component. PHP no longer does manual escaping or text truncation — the template engine handles escaping via {{ }} and CSS handles visual truncation in the value column.

Core changes:

  1. Monitor module (admin/modules/monitor.php):
  2. Delete getTooltipText() — replaced by getHtmlFrag('info-tooltip', ...)
  3. Delete getLogSnippet() — inlined as preg_replace('/\s+/', ' ', trim())
  4. Remove htmlspecialchars() from all scalar monitor vars (template escapes)
  5. Remove htmlspecialchars() from SVG chart title vars (tip_up/down/cpu/ram)
  6. Replace getTooltipText() calls with getHtmlFrag('info-tooltip', [...]) for: servroot, dbsqlmode, extlist_on/off, all reqXxx vars,

   lastsecurityevent24h, dbissueevent24h
  • Add global \$tpl to getMonitorTemplateVars() (required for getHtmlFrag)
  • Deleted fragment templates:
  • templates/admin/fragments/monitor-info-icon.html (old title= tooltip)
  • templates/admin/fragments/monitor-tooltip-text.html (old short+icon)

Benefits:

  • Single consistent popup component (sl-tip) across the entire admin UI
  • Popup shows full untruncated content; CSS handles label truncation
  • No double-escaping risk — template engine owns XSS boundary

Technical notes:

  • getHtmlFrag('info-tooltip', ...) outputs raw HTML — use {{{ }}} in tpl
  • Plain scalar vars now use {{ }} (auto-escaped) in template
  • Log snippet whitespace normalization preserved inline at both call sites
Chore: Update config fingerprint and sitekey
Автор: Eduard Laas | Дата: 14:56 04.05.2026

Routine config regeneration after structural changes to global.php. Fingerprint and sitekey are derived values — no manual logic changed.

Core changes:

  1. Config fingerprint (config/local.php):
  2. base_fingerprint updated to reflect current global.php hash
  3. Global config (config/global.php):
  4. sitekey rotated as part of standard config refresh cycle

Benefits:

  • Config integrity check will pass on next bootstrap
  • No functional or behavioral change

Technical notes:

  • Fingerprint is computed automatically by the config management tool
  • sitekey is used for CSRF token generation
Fix: Render flash messages in module-head; minor system formatting fixes
Автор: Eduard Laas | Дата: 14:56 04.05.2026

Flash messages generated before the admin module head (e.g. save confirmations) were lost because module-head.html had no render point for them. getTplAdminTabs() now passes flash_html and the partial outputs it directly below the tab bar.

Core changes:

  1. Admin tab helper (core/helpers.php):
  2. Pass flash_html => getFlashHtml() to module-head partial
  3. Module head partial (templates/admin/partials/module-head.html):
  4. Render {{{ flash_html }}} below tabs when present
  5. System (core/system.php):
  6. Extract \$time local var before array_replace for readability
  7. Fix DB debug text separator: ". Ø" → "/ Ø" (typographic correction)

Benefits:

  • Flash messages (save/error notices) now always visible after redirect
  • DB stats panel separator matches the visual design convention

Technical notes:

  • getFlashHtml() consumes the flash session entry on first call
  • Separator change is display-only; no data or logic affected
Fix: Route checkPerms() output to \$cont in module config views
Автор: Eduard Laas | Дата: 14:56 04.05.2026

checkPerms() returns a permission-warning banner that must appear above the form. It was incorrectly assigned to \$body, overwriting the form before it was built. Moving it to \$cont ensures the banner is always rendered in the correct position regardless of form output.

Core changes:

  1. Auto Links config (modules/auto_links/admin/index.php):
  2. \$body = checkPerms(...) → \$cont .= checkPerms(...)
  3. \$body = \$tpl->getHtmlPart('form', ...) stays separate
  4. Changelog config (modules/changelog/admin/index.php):
  5. Same fix in config() function
  6. Also removed stale checkPerms() call from changelog() view
  7. Contact config (modules/contact/admin/index.php):
  8. Same fix pattern

Benefits:

  • Permission banners now appear above the form, not silently lost
  • Consistent output-routing across all module config views
  • No logic change — only output variable assignment corrected

Technical notes:

  • \$cont accumulates pre-form output; \$body holds the main form HTML
  • Pattern now matches all other admin module config functions
03.05.2026
Docs: Add icon hover gradient demo page
Автор: Eduard Laas | Дата: 23:21 03.05.2026

Introduce a self-contained demo HTML in the project docs folder that showcases candidate hover treatments for Bootstrap-Icons-based controls. The page is intended as a design reference, not as production code.

Core changes:

  1. Demo page (docs/icon-hover-gradient-demo.html):
  2. Standalone HTML with inline CSS that compares several icon-hover effects (gradients, glow, scale, shimmer)

  3. Pulls the existing Bootstrap Icons stylesheet from templates/admin/assets/vendor so the icons render exactly as they do in the admin theme

  4. No JavaScript dependencies; the page is fully static

Benefits:

  • Provides a visual reference when iterating on admin button or icon hover styles without spinning up the full admin shell

  • Lives under docs/ so it stays out of any production build pipeline

Technical notes:

  • Pure documentation asset; not linked from runtime templates
  • Safe to open directly from disk because all styles are inline and the vendor stylesheet uses a relative path

  • Can be retired later without affecting any shipped feature
Chore: Update base configuration fingerprint after default rotations
Автор: Eduard Laas | Дата: 23:21 03.05.2026

Refresh the _meta.base_fingerprint snapshot stored in config/local.php so it reflects the new defaults bundled in config/global.php (refreshed admin logo and rotated site security key). The fingerprint is the local override layer’s view of the upstream default state and must move forward in lockstep.

Core changes:

  1. Local configuration meta (config/local.php):
  2. Replace _meta.base_fingerprint with the hash that matches the current config/global.php

    • Prevents the override layer from flagging the new defaults as
stale on first boot

Benefits:

  • Configuration loader recognises the new baseline immediately
  • No spurious "defaults changed" indication after pulling the release

Technical notes:

  • Pure metadata update; no behavior depends on the literal value
  • Always lands as the final commit in a config-defaults rotation so it reflects the fully-committed upstream state

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

1 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 89

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

Идеи и предложения
Обратная связь