diff options
author | Dirk Brenken <dev@brenken.org> | 2023-12-11 18:46:39 +0100 |
---|---|---|
committer | Dirk Brenken <dev@brenken.org> | 2023-12-11 18:46:39 +0100 |
commit | 6dff72b1cd20bd878e24f9b2fc05b4ecc858d607 (patch) | |
tree | 38c0511e7ee37f0d1f510badc43415ee1972dfc8 /applications/luci-app-banip/htdocs/luci-static/resources | |
parent | 61ff84a99e97ba449a50a7cfc496c03919ab836e (diff) |
luci-app-banip: sync with banIP-0.9.3-1
* expose the new remote logging/cgi options
Signed-off-by: Dirk Brenken <dev@brenken.org>
Diffstat (limited to 'applications/luci-app-banip/htdocs/luci-static/resources')
-rw-r--r-- | applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js index adefc3b18d..b5f13738cd 100644 --- a/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js +++ b/applications/luci-app-banip/htdocs/luci-static/resources/view/banip/overview.js @@ -519,6 +519,26 @@ return view.extend({ o.optional = true; o.rmempty = true; + o = s.taboption('adv_log', form.Flag, 'ban_remotelog', _('Enable Remote Logging'), _('Enable the cgi interface to receive remote logging events.')); + o.default = 0 + o.optional = true; + o.rmempty = true; + + o = s.taboption('adv_log', form.Value, 'ban_remotetoken', _('Remote Token'), _('Token to communicate with the cgi interface.')); + o.depends('ban_remotelog', '1'); + o.datatype = 'and(minlength(3),maxlength(20))'; + o.validate = function (section_id, value) { + if (!value) { + return _('Empty field not allowed'); + } + if (!value.match(/^[A-Za-z0-9\.\:]+$/)) { + return _('Invalid characters'); + } + return true; + } + o.optional = true; + o.rmempty = true; + /* advanced email settings tab */ |