Commit Graph

264 Commits

Author SHA1 Message Date
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
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
65521d9e43 webadmin: Fix error message on invalid user.
Calling PrintErrorPage twice doesn't work very well.

See #1163
2016-02-04 23:18:49 +00:00
Alexey Sokolov
0459f67b1d Configure user language in controlpanel and webadmin 2016-01-31 20:09:19 +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
Falk Seidel
8f73840e74 Welcome to 2016
🎆  Happy 2016 🎆
2016-01-01 20:11:21 +01:00
Alexey Sokolov
16a8c77737 Replace virtual with override where possible.
Using clang-tidy
2015-12-08 20:51:50 +00:00
Alexey Sokolov
d185d6f22d clang-format: switch tabs to spaces
I like tabs, but I have to admit that spaces make source code more
consistent, because every editor/viewer tends to render tabs differently :(
2015-12-07 00:53:30 +00:00
Alexey Sokolov
33b0627d75 Add clang-format configuration.
For now, it uses tabs like before, to make the diff easier to read/check.
One of following commits will switch it to spaces.
2015-12-07 00:53:01 +00:00
Alexey Sokolov
3236240029 Merge branch '1.6.x' 2015-10-30 01:18:49 +00:00
Alexey Sokolov
f6aa35c6fb Really fix #528
The previous fix (5e6e3be3) left a possibility to use-after-delete,
though it has been much harder to accidentally trigger.

If AddChan(pChan) fails, it deletes pChan, so the new crash was
happening during showing of error message.

Test for this is at master branch: 9777a1a667

Thanks to https://scan.coverity.com/ for pointing at this.
2015-10-30 01:16:29 +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
J-P Nurmi
645fa855e0 webadmin: allow reseting chan buffer size by entering an empty value 2015-08-14 19:35:24 +02:00
Chris Tyrrel
bfab89edba webadmin: renamed chan setting 'buffer' to 'buffersize'
close #1029
2015-08-14 19:03:12 +02:00
J-P Nurmi
76ac81c032 webadmin: C++11 range-based for loops 2015-08-13 19:45:08 +02:00
J-P Nurmi
23fb93d1c6 webadmin: use CIRCNetwork::ClearTrustedFingerprints() 2015-08-05 00:44:52 +02:00
J-P Nurmi
496a132e32 Resolve #967: separate chan & query buffer size settings 2015-07-19 00:31:10 +02:00
Alexey Sokolov
d884ff76c0 Merge branch '1.6.x' 2015-04-06 22:42:25 +01:00
Alexey Sokolov
21834d3aba Improve breadcrumbs in webadmin.
Fix #227
2015-04-06 22:40:55 +01:00
J-P Nurmi
a5b4a29c00 Revert StripControls implementation (#850)
This reverts commits 27d78795a7 and
f27109f1b4. It was decided that the
functionality is provided by a separate module instead, to avoid
unnecessarily bloating the core.
2015-03-04 09:50:00 +01:00
J-P Nurmi
75b210e841 Search'n'replace remaining NULL occurrences (#816) 2015-02-26 20:58:01 +01:00
J-P Nurmi
6002bd5c2b Remove unnecessary virtual keyword occurrences
This makes it convenient to 'grep virtual' and 'grep override' :)
2015-02-25 18:33:09 +01:00
ManiacTwister
f27109f1b4 Implemented StripControls for channel messages and notices 2015-02-23 22:14:58 +01:00
Alexey Sokolov
f9a4507669 Add a global setting whether to show ZNC version or not
Close #820
Close #821
2015-01-30 23:01:06 +00:00
Alexey Sokolov
00b38dc164 Enable editing trusted fingerprints in webadmin 2015-01-11 09:04:31 +00:00
Falk Seidel
2e29d49a53 Welcome to 2015 2014-12-31 11:28:38 +01:00
Alexey Sokolov
fd4c355e46 Let's use recommended value by default for new users 2014-12-25 14:42:52 +00:00
Alexey Sokolov
e943f8b370 Fix crash in Add User page in webadmin
Thanks to JordanJ2 for reporting it
2014-12-25 13:00:27 +00:00
Alexey Sokolov
bd9450b99e Webadmin: Add GUI for character encoding 2014-12-21 17:08:41 +00:00
J-P Nurmi
f9318d02cf modules: use override keyword
Resolves #736
2014-11-05 08:00:02 +01:00
Alexey Sokolov
e337cb433d Merge commit 'refs/pull/665/head' of github.com:znc/znc 2014-10-26 12:17:31 +00:00
J-P Nurmi
9576702d8a webadmin: let specify join delay for networks 2014-10-15 22:24:42 +02:00
Cameron Stephen
e570466683 Update Grammar on Modules section of ZNC. 2014-10-05 20:31:13 +02:00
J-P Nurmi
6457bd6dc1 Fix #680 - make channels follow user-level settings when appropriate 2014-09-30 00:34:01 +02:00
J-P Nurmi
956cdb4564 webadmin: add support for network specific quit messages (#273) 2014-09-13 23:53:08 +02:00
Uli Schlachter
3953185b04 WebModules: Switch from CSmartPtr to std::shared_ptr
Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-09-12 14:55:42 +02:00
J-P Nurmi
7d9f0680c6 webadmin: combine "List Users" & "Add User"
Let add users via the list of users in the similar manner it’s
done for networks. It’s evidently an extra step to add a user,
but on the other hand it gives a nice overview of the users
when adding new ones, and leads to less clutter in the sidebar.
2014-09-07 20:43:29 +02:00
J-P Nurmi
713082ac3e webadmin: add missing page title
Makes sure "Traffic Info" shows up in the breadcrumbs.
2014-09-07 20:43:29 +02:00
J-P Nurmi
22d0fc4759 webadmin: cleanup unused variables 2014-09-07 20:43:26 +02:00
J-P Nurmi
2e42f3103c Fix #624: Can´t rename network via webinterface 2014-09-06 23:15:50 +02:00
J-P Nurmi
2d532fb8b9 webadmin: add support for AutoClearQueryBuffer & MaxQueries 2014-08-04 10:04:21 +02:00
Vasily Fomin
4338ae5cc5 Show empty checkbox if module can be loaded by the topic column.
Fix const correctnes of the CModInfo::SupportsType method.
2014-06-01 21:37:39 +02:00
Vasily Fomin
16697d93ce Fixes seg fault with new user page.
Refactor loops and templates so less code is needed.
2014-05-30 00:13:09 +02:00
Vasily Fomin
3ad285243d Add "Loaded" flag to the user page. 2014-05-29 17:49:41 +02:00
Vasily Fomin
78f7897dfc Add "Loaded" flag to the network page. 2014-05-29 17:39:48 +02:00
Vasily Fomin
4bdaa3cc22 Add "Loaded" flag to the global settings page. 2014-05-29 17:14:32 +02:00
Alexey Sokolov
c89771d561 Improve navigation in webadmin: "Save and continue" 2014-04-26 17:47:58 +01:00