159 Commits

Author SHA1 Message Date
DannyAAM
c2a760709c Fix webadmin serverlist parsing for password containing space 2026-02-26 21:57:50 +08:00
Alexey Sokolov
c46bd41037 Unix listener: chmod and change group
Fix #1955
2025-06-24 09:04:29 +01:00
Alexey Sokolov
63d10ccb17 Add support to connect to server via unix socket
The syntax for AddServer command and config is chosen to be unix:/path or unix:ssl:/path

For security reasons, only admins can add such servers, to prevent users from poking around the file system.
2025-04-20 22:40:20 +01:00
Alexey Sokolov
0af3e0705f Configure unix listeners in webadmin 2025-04-19 23:43:09 +01:00
Daniel
a206d1a3bb Webadmin: Fix Edit Network when using DenySetNetwork (#1942) 2025-04-18 02:11:43 +01:00
4G3NT
d6605d199e Fix casing on traffic info table 2024-04-10 22:56:29 -07:00
4G3NT
1e89f7b4ba Fix casing 2024-04-10 22:38:23 -07:00
Daniel
675024b5e5 wip 2021-10-23 18:48:01 +08:00
Bradley Shaw
fe475e1ef0 Add more deny options
DenySetIdent - Denies setting ident

DenySetNetwork - Denies adding/removing networks/servers

DenySetRealName - Denies setting realname

DenySetQuitMsg - Denies setting quitmsg

DenySetCTCPReplies - Denies adding/removing CTCP replies
2021-07-03 17:16:42 +01:00
Casper
2a733cc938 Fixed missing paragraph closing tag 2021-06-17 12:58:02 +02:00
njhanley
92d04e6ad9 Allow reordering of channels in webadmin 2020-09-29 19:32:52 -04:00
njhanley
3ff5aaf49e List channels in order in webadmin 2020-09-29 19:32:52 -04:00
Alexey Sokolov
b0d7a07089 Merge branch '1.8.x' 2020-08-30 10:35:54 +01:00
Casper
9f62facd04 Update del_network.tmpl
Default action for 'no' to go to the edituser page instead of listusers page.

Close #1751
2020-08-30 10:34:38 +01:00
Gaspard Beernaert
17ec6095d6 Web: remove legacy xhtml syntax (#1723) 2020-06-16 23:45:35 +01:00
Jos Ahrens
207d47f1da TrustPKI: Better wording in webadmin 2019-06-30 08:01:09 +00:00
Alexey Sokolov
255fc53cad Fix double "id" attribute of <textarea> in CTCP replies editor.
That prevented the javascript version of the editor to work correctly.

Thanks to luk3yx for the report.
2018-05-27 01:02:14 +01:00
Fox Wilson
42939c998f Add "AuthOnlyViaModule" global/user setting
Setting AuthOnlyViaModule on a user causes CheckPass to never return true,
causing all authentication attempts using the configured password to fail, both
on IRC connections and for webadmin. This is useful in situations where an
external module (cyrusauth, certauth, imapauth) handles authentication. Setting
the global AuthOnlyViaModule option causes similar behavior across every
user. If AuthOnlyViaModule is set to true globally, it cannot be overridden
per-user.

Close #1474
Close #331
2017-12-22 14:23:17 +00:00
Alexey Sokolov
4a2c223379 Add comments for translator to .tmpl files (#1473)
They are ignored in CTemplate, because the string doesn't reference it
as {N}
2017-12-14 10:26:07 +00:00
Alexey Sokolov
a80074712a More translateable strings, #1354 2017-10-30 22:56:36 +00:00
Alexey Sokolov
cfadadb5d3 More translateable strings, #1354 2017-10-28 10:33:31 +01:00
Alexey Sokolov
05a0cbf3e0 More translatable strings, #1354 2017-10-22 23:13:31 +01:00
Alexey Sokolov
d51159a330 Log: add ShowSettings command, rework Set command, #601
Make more strings translateable, #1354
2017-09-07 23:35:18 +01:00
Alexey Sokolov
4917fcbda6 More translateable strings, ref #1354 2017-08-26 23:00:54 +01:00
Alexey Sokolov
9edb2df761 Make blockuser and block_motd translateable.
See #1354
2017-06-29 15:54:43 +01:00
Rubin
96c92ef8ca Change default flood rates to match RFC1459, prevent excess flood problems
I noticed that the default network flood rates are wrong (for most
networks). It has been very standard since the beginning of IRC to use a
value of 2 seconds per line, with a 10 line head start. Almost all
networks work this way, and if you don't follow, having a lot of
channels or a lot of clients connected to ZNC results in excess flood
disconnections and much frustration for the user.

I think you should make the default value for these 2 and 9 instead of 1
and 4 so that this nasty bug doesn't hit people who will not know how to
debug it. You find these same types of settings built into every IRC
client. 2 and 10 is the standard. 2 and 9 provides a slight buffer so
there is no mistake.

Thanks
-Rubin

Close #1416
2017-06-01 08:22:21 +01:00
Alexey Sokolov
10bfece38c Switch znc.in URLs to https 2017-05-30 22:32:01 +01:00
Alexey Sokolov
b666931883 Add an option to change ping timeout time.
Fix #979
2016-12-26 15:49:26 +00:00
Latchezar Tzvetkoff
a9a7f17910 Allow modules to override CSRF protection.
Useful for Web APIs and all other kinds of things.

API changes:
	- Added public CHTTPSock::GetURI() method
	- Added public CModule::ValidateWebRequestCSRFCheck() method
	- Made CWebSock::GetCSRFCheck() method public so it can be accessed
	  from CModule
	- Added public CWebSock::ValidateCSRFCheck() method

Other changes:
	- Added a Sample Web API module (modules/samplewebapi.cpp) and a
	  simple web form with no CSRF check.

Implements feature request #1180.
2016-10-05 09:29:40 +01:00
wolfy1339
00aadbaf91 Use <th> in <thead> instead of <td>
Ref: #1308
2016-09-22 12:39:00 -04:00
Tyler Spivey
c705eb8a64 Improve accessibility of add/edit channel 2016-08-24 00:42:47 -07:00
Tyler Spivey
400b3d9939 Improve accessibility of add/edit network 2016-08-24 00:42:47 -07:00
Tyler Spivey
a1d71d6f19 Improve accessibility of list users 2016-08-24 00:42:39 -07:00
Tyler Spivey
c392202cfe Improve accessibility of traffic info 2016-08-24 00:42:24 -07:00
Tyler Spivey
fb96b74f16 Improve accessibility of global settings 2016-08-24 00:42:12 -07:00
Tyler Spivey
5a86f1b20b Improve accessibility of add/edit user
Add labels and change tr to th in thead elements.
2016-08-23 23:11:55 -07:00
xnrand
409ed4b6bc Add network-specific config for cert validation
Added the following two network-specific configuration options that can
be changed via controlpanel or webadmin:

* TrustAllCerts: Will trust ALL certificates when enabled, effectively
  disabling TLS certificate validation.
  Default value: false
* TrustPKI: Whether or not to trust PKI-valid certificates. Setting this
  to false will make znc trust only trusted certificates added by the
  user.
  Default value: true

With default values, behavior is exactly the same as before.

This is based on the work of Roelf Wichertjes. See YourBNC/znc@5c747598.

See znc/znc#866.
2016-05-20 01:17:26 +02:00
Alexey Sokolov
def29fe3f7 Translate strings which were hiding in webadmin.js 2016-02-24 22:25:58 +00:00
Alexey Sokolov
711e835c93 Translateable webadmin to Russian. 2016-02-24 21:34:23 +00:00
Alexey Sokolov
02adbb3bbf Merge branch '1.6.x' 2016-02-04 23:42:50 +00:00
Alexey Sokolov
13ce4e3a1e webadmin: Don't autocomplete password in user settings even in Firefox
Fix #1163
2016-02-04 23:39:49 +00:00
Alexey Sokolov
a4c491888f Make Cert module translateable 2016-01-31 20:09:19 +00:00
Alexey Sokolov
0459f67b1d Configure user language in controlpanel and webadmin 2016-01-31 20:09:19 +00:00
Alexey Sokolov
e9006634cb Merge branch '1.6.x' 2016-01-09 18:23:06 +00:00
Alexey Sokolov
5d014193b4 Don't require reconnect after changing encoding. 2016-01-09 18:18:44 +00:00
Alexey Sokolov
4fe4a45dd6 Disable legacy encoding mode when modpython is loaded.
Python is not happy when using non-unicode text as str.

Fix #1229
2016-01-09 14:18:24 +00:00
J-P Nurmi
013203cfb5 webadmin: make the traffic info page visible for non-admins 2015-08-22 01:59:08 +02:00
J-P Nurmi
c36aa6c832 webadmin: show per-network traffic info
Close #963
2015-08-22 01:27:24 +02:00
J-P Nurmi
d19a040f2d Remove flawed Add/Del/List/BindHost(s) (close #983) 2015-08-17 15:35:29 +02:00
Chris Tyrrel
bfab89edba webadmin: renamed chan setting 'buffer' to 'buffersize'
close #1029
2015-08-14 19:03:12 +02:00