From acef7ac02fd979e540a03ee5299d692a90c8cd81 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Sun, 21 Jun 2026 10:56:08 -0500 Subject: [PATCH] feat(firewall): show current IP address in plugin settings Adds CurrentIpField that displays the admin's IP with a copy button, making it easy to add to the Trusted IPs list. Shown at the top of the firewall plugin's Network & Session fieldset. --- .../mokosuiteclient_firewall.xml | 7 +++- .../src/Field/CurrentIpField.php | 42 +++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 source/packages/plg_system_mokosuiteclient_firewall/src/Field/CurrentIpField.php diff --git a/source/packages/plg_system_mokosuiteclient_firewall/mokosuiteclient_firewall.xml b/source/packages/plg_system_mokosuiteclient_firewall/mokosuiteclient_firewall.xml index 921d1634..b62a8db4 100644 --- a/source/packages/plg_system_mokosuiteclient_firewall/mokosuiteclient_firewall.xml +++ b/source/packages/plg_system_mokosuiteclient_firewall/mokosuiteclient_firewall.xml @@ -33,12 +33,17 @@ - +
+ + ' + . '' + . htmlspecialchars($ip) + . '' + . '' + . ''; + } +}