241 Commits

Author SHA1 Message Date
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
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
Alexey Sokolov
21834d3aba Improve breadcrumbs in webadmin.
Fix #227
2015-04-06 22:40:55 +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
Uli Schlachter
5e6e3be32a webadmin/add channel: Correctly handle channel names
The CChan constructor makes sure that the channel name begins with a valid
channel prefix. Thus, this could change the name of the resulting channel.

When you edited an irc network which already had a channel "#foo", were
connected to IRC (so ZNC knows which prefixes are valid) and added a channel
"foo", this would lead to a problem:

Webadmin checks and sees that there is no channel "foo" yet. Webadmin creates a
new CChan instance for "foo". The CChan constructor notices that "f" is not a
valid channel prefix and instead calls itself "#foo". Then,
CIRCNetwork::AddChan() would see that this channel already exists, delete the
given channel and return false.

However, webadmin didn't check this result and would continue changing settings
on an already destroyed CChan instance.

Fix this by checking if the channel exists after CChan had its chance to mess
with the channel name. Also handle failures from CIRCNetwork::AddChan().

Fixes #528.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-04-13 20:41:34 +02:00
uu1101
46975cd9f1 Use absolute URIs in Redirect
Although most browsers seem to accept relative redirects, it is not
allowed by HTTP/1.1.

This commit changes relative URIs to absolute ones when redirecting.
2014-02-16 12:45:10 +01:00
uu1101
88c85b0396 Add URIPrefix listener option 2014-02-16 12:45:09 +01:00
Falk Seidel
f19b4caa43 Welcome to 2014 - year 10 with ZNC 2013-12-31 10:10:55 +01:00
Alexey Sokolov
9e0597fd07 Merge pull request #432 from dgw/out-of-networks-err-sp
Tweak wording of "out of networks" errors
2013-11-21 09:50:51 -08:00
dgw
2b3d40a501 tweak wording of "out of networks" errors 2013-11-21 13:07:17 +04:00
Chris Dennett
054e873bec Added SSL (+) and port in networks list for connected servers. 2013-11-17 16:34:32 +00:00
Ingmar Runge
b5c898eaff modules: add OnAddNetwork, OnDeleteNetwork hooks. 2013-10-18 20:35:21 +02:00
multihunter
ff099097aa Remove unneeded SetSkinName() from webadmin
SetSkinName() was called two times in GetNewUser interface.
Removed the first call because "skin" is a combo box and can't be empty.
2013-08-04 01:23:34 +04:00
Alexey Sokolov
b2dcad5fd4 Change ZNC license to Apache 2.0
The following people agreed with the change, in alphabetical order:
(people who approved in several ways are listed only once)
By email:
- Adam (from Anope)
- Austin Morton
- Brian Campbell
- Christian Walde
- Daniel Holbert
- Daniel Wallace
- Falk Seidel
- Heiko Hund
- Ingmar Runge
- Jim Hull
- Kyle Fuller
- Lee Aylward
- Martin Martimeo
- Matt Harper
- Michael J Edgar
- Michael Ziegler
- Nick Bebout
- Paul Driver
- Perry Nguyen
- Philippe (cycomate)
- Reuben Morais
- Roland Hieber
- Sebastian Ramacher
- Stefan Rado
- Stéphan Kochen
- Thomas Ward
- Toon Schoenmakers
- Veit Wahlich
- Wulf C. Krueger

By IRC:
- CNU
- Jonas Gorski
- Joshua M. Clulow
- Prozac/SHiZNO
- SilverLeo
- Uli Schlachter

At https://github.com/znc/znc/issues/311 :
- Alexey Sokolov
- Elizabeth Myers
- flakes
- Jens-Andre Koch
- Jyzee
- KindOne/ineedalifetoday
- Lee Williams
- Mantas Mikulėnas
- md-5
- Reed Loden

At the last few pull requests' comments:
- Allan Odgaard
- Jacob Baines
- Lluís Batlle i Rossell
- ravomavain
- protomouse

The following commits' authors didn't respond:
Trivial changes:
- f70f1086fd
- 4ca8b50e45

The changes which are not presented in master anymore:
- 5512ed2ea0
- 960a4498f7
- 0f739de2c0
- 7f53cc810b

Fix #311
Fix #218
2013-06-14 00:43:34 +04:00
Alexey Sokolov
a06b6495e8 Revert "Rewrite the JOIN channel logic, dropping MaxJoins"
This reverts commit db7c47f97d.

Too many joined channels at once started to cause disconnect because of
"Max SendQ Exceeded", which is not much better than previous Flood.

Now MaxJoins is 0 by default, which preserves the current behavior of
joining all channels at once. If someone experiences those disconnects
due to SendQ, they can tune MaxJoins.

Fix #329

Conflicts:
	include/znc/User.h
	modules/controlpanel.cpp
	modules/webadmin.cpp
	src/User.cpp
2013-06-09 23:39:10 +04:00
Alexey Sokolov
2bd410ee55 Fix NULL pointer dereference in webadmin.
Triggerable by any non-admin, if webadmin is loaded.

The only affected version is 1.0

Thanks to ChauffeR (Simone Esposito) for reporting this.
2013-05-27 23:52:32 +04:00
Alexey Sokolov
46b28559fc webadmin: Enable embedding network modules and to network pages. 2013-05-19 18:40:12 +04:00
Alexey Sokolov
f2e8738ffc Fix #313 2013-04-05 08:38:21 +07:00
KindOne
2db7307ac3 Remove unneeded headers. 2013-03-08 01:47:57 +07:00
baines
82a708d6a1 Cleaned up more warnings. 2013-02-27 20:53:14 -05:00
Un1matr1x
3a34593359 The same procedure as last year, Miss sophie?
Same procedure as every year, James.
2012-12-31 12:44:31 +01:00
Alexey Sokolov
cf8925c930 Webadmin: don't modify listeners if loaded as user mod
Thanks to TheLordOfTime
2012-12-01 14:28:07 +07:00
Alexey Sokolov
833e63fb64 Allow loading webadmin as user module. 2012-12-01 08:55:41 +07:00
Alexey Sokolov
b0a2a58155 Fix error message at webadmin #239 2012-10-19 22:29:28 +07:00
Alexey Sokolov
9b2898f603 Implement setting "Max number of networks" for user.
Fix #226
2012-09-20 01:24:47 +07:00
Alexey Sokolov
9830be786a Add network and user to Edit channel page in webadmin.
This really needs #227 instead
2012-09-06 23:44:48 +07:00
Alexey Sokolov
c00cc72242 Add details to network table in webadmin.
Fix #222
2012-09-06 23:41:44 +07:00