Skip to content

History of commits

4473 commits

feat(admin): show the trend of the numbers on the dashboard

Modules put their numbers on the dashboard through DashboardMetricProviderInterface, a new tagged extension point of the core: today's count, the change since the day before and a line of the last two weeks, counted by day in one query with DailyCounts. Users, forum, guestbook, downloads, library and album provide cards. The panel no longer depends on the forum: the forum counts its own posts, and the cleanup of inactive users removes the read marks through UserClean like the deletion of a single user. johncms/forum leaves the requires of the module.
simba77 31 okt 2026 12:52 Branch: 10.x 91cb7c4

feat(admin): list what needs attention on the dashboard

Modules add lines through DashboardAttentionProviderInterface, a new tagged extension point of the core: pending registrations, failed PHP checks, files and articles waiting for moderation. Each provider checks its own permission; the most pressing lines go first. The counters of the day move to the stat cards of the panel.
simba77 31 okt 2026 12:35 Branch: 10.x 0e81f51

build(admin): drop the styles of the site from the panel

The panel still compiled the partials of the public theme: posts, forum sections, lists, user rows, albums, the homepage and their dark variants. The redesigned templates use none of them. They are removed; what the panel did rely on moves into its own ui styles: the compact pagination of a phone and pagination-no-padding, the not-allowed cursor of a disabled button, and the tables and pictures CKEditor inserts, whose dark look stays in _dark.scss scoped to the editor. The flag of the languages page uses the flag class of the panel (admin-flag, formerly admin-topbar__flag), and .form-group, gone from Bootstrap 5, gives way to spacing utilities on the sign-in form, the consent form and the CKEditor input. The styles of the panel go from 327 KB to 311 KB.
simba77 30 okt 2026 22:52 Branch: 10.x 858ba8a

build(admin): drop the scripts of the site from the panel

The panel carried copies of the scripts of the public theme: the forum previews, the screenshot slider with the whole of Swiper, the image gallery, the round progress bars and Prism, with their styles. None of the templates of the panel uses them. They are removed with their imports, styles and the Prism setup; the entry script of the panel goes from 57 KB to 14 KB and its styles from 357 KB to 327 KB. bootstrap, globals, csrf and main stay as scripts of the panel of its own.
simba77 30 okt 2026 22:47 Branch: 10.x 1ea36fd

fix(admin): switch the language from a menu of the top bar

The language button of the panel opened the dialog of the language module of the site through a copy of its modal script, and the copy posted for the dialog without a token: the panel got 403 and an endless spinner. It also broke with the language module switched off. The button opens a dropdown of the languages on offer instead, each a link with ?setlng=, which the core reads on any page: no module of the site, no request behind the scenes, no script needed. language-menu.js keeps the rest of the query of the page and takes setlng out of the address afterwards. The copy of modals.js and the empty ajax modal of the admin layouts are removed.
simba77 30 okt 2026 22:40 Branch: 10.x aefa84b

fix(admin): keep the top bar up when the language is off the list

The top bar named the current language as lng_list[locale], and a locale missing from the list took the whole page of the panel down with it. The bare configuration of the repository is such a case — Russian the default, English the only language offered — and CI runs on it: the language page and the cookie banner failed there while passing on a site whose list holds every language. The top bar falls back to the code of the language, as the menu of the site already does, and the two tests set the languages they rely on instead of taking them from the machine.
simba77 30 okt 2026 22:30 Branch: 10.x c0b3c3e

feat(admin): look up an IP address over RDAP

The whois page opened port 43 to four registries in turn: over ten seconds a lookup with no limit on reading an answer, the answers of registries the address does not belong to printed in full, nothing at all where the hosting closes the port, and hardcoded English. RdapIpRegistry asks the one registry the address belongs to, found by the bootstrap files of IANA kept for a week and by rdap.org without them, over HTTPS with a limit of eight seconds. The page shows a card of the network, its range, holder, country, abuse contact and dates, with the full answer a link away and the members seen with the address a button away, and says why when there is nothing to show. It moves to the Users section next to the search by IP; the Security section, left empty, is gone.
simba77 30 okt 2026 22:18 Branch: 10.x 5efad76

feat(admin): remove the ban by IP

The ban by IP knew IPv4 only: a visitor on IPv6 is read as 127.0.0.1, so he passed any ban, and banning that address would have shut out every IPv6 visitor at once. An address is shared by whole mobile networks and changed by a VPN in seconds, the registration ban was never implemented, and the check cost a query on every request. The check in the bootstrap, the /admin/ip-bans pages and everything behind them are removed, and a migration drops cms_ban_ip. Accounts are stopped by their ban, floods by the antiflood; addresses are better blocked before PHP. The changelog tells of this and of the file integrity check removed before it.
simba77 30 okt 2026 22:05 Branch: 10.x 5175561

feat(admin): remove the file integrity check

The Anti-Spyware page compared the CRC of script files with a snapshot kept in the cache. It reported only files that were in the snapshot and changed, so a new file — the usual web shell — passed as all consistent; it counted the compiled cache of data/ as changes, skipped vendor/ and public/index.php, and its snapshot was cleared with the cache and writable by whoever changed the files. A check that gives a false all-clear is worse than none, so the page, its routes, use cases and scanner are removed.
simba77 30 okt 2026 21:56 Branch: 10.x bbdf4dd

feat(admin): move the sign-in services to a tab of the settings

The keys of GitHub, Google, VK and Yandex are settings of external services like the captcha, not a matter of security. The page is the Sign-in services tab of the settings now, /admin/settings/sign-in; /admin/auth/providers and the item of the Security section are gone. It is laid out like the captcha: a card for each service switched on in its head, with a badge for one without its keys, a warning when a service is on but its button is not shown, the members without another way in counted without a plural to agree, and the callback address with a button to copy it (copy-button.js, for any data-copy). The class of the framed card is shared by both tabs as admin-provider-card.
simba77 30 okt 2026 21:44 Branch: 10.x 2e4f264