Commit Graph

164 Commits

Author SHA1 Message Date
Kyle Fuller
b447169011 Allow setting a network-specific settings the same as the user setting
Fixes #94
2012-01-17 22:01:19 +00:00
Kyle Fuller
3d7d1793aa Move IRCConnectEnabled to each network instead of a global user setting 2012-01-11 14:49:17 +00:00
Un1matr1x
73270ff023 Welcome in 2012 2012-01-01 09:30:19 +01:00
Uli Schlachter
a66721eacb webadmin: Add a "Disabled" checkbox for channels
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-10-30 13:44:36 +01:00
Alexey Sokolov
cf49449dde Be able to remove servers using webadmin.
Thanks for appel for reporting this.
2011-10-30 00:47:11 +07:00
Alexey Sokolov
e354c24ac1 Move ZNC headers into own directory.
Yes, this breaks backwards compatibility, so what?
It's already broken with network stuff anyway.
2011-09-23 03:31:58 +07:00
Kyle Fuller
6686c0de79 Support having a nickname per network 2011-09-12 15:59:15 +00:00
Kyle Fuller
ee7a2083c8 Make the *webadmin module support IRC networks 2011-08-24 19:07:32 +01:00
Uli Schlachter
80c76c97a6 Remove GLOBALMODCONSTRUCTOR
MODCONSTRUCTOR does that job just fine (now).

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-21 18:01:58 +02:00
Uli Schlachter
cce40e9f71 Move the EModuleType into CModInfo
This also renames the values to shorter and more "well sounding" names.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-21 16:30:36 +02:00
Uli Schlachter
5f53c3509f Fix some minor issues
E.g. a gcc warning about an uninitialized variable.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-08-21 15:58:01 +02:00
Kyle Fuller
b2d8f2ed62 Add CModInfo::SupportsType(EModuleType) and supply a module type with CModules::LoadModule
This would allow a module support multiple module types but CModule's do
not support this currently
2011-08-21 13:34:23 +01:00
Kyle Fuller
c456d20b21 Merge CGlobalModule(s) into CModule(s) 2011-08-21 13:34:22 +01:00
Kyle Fuller
a4b155995c Create EModuleType, creating SetType which replaces SetGlobal 2011-08-21 13:34:22 +01:00
Alexey Sokolov
d683aea48d Merge branch 'modinfo' 2011-06-11 18:32:09 +07:00
Alexey Sokolov
262216731b Add link to wiki page from any nonextra module. 2011-06-11 18:09:56 +07:00
Alexey Sokolov
0c840f922d Modules can now provide its wiki page name.
It's shown on webadmin as a link.
2011-06-11 17:46:37 +07:00
Un1matr1x
708366d9ae remove some more of the evil trailing white spaces & tabs 2011-06-09 21:29:13 +02:00
Kyle Fuller
8f508cb4a5 Migrate dcc bouncing to its own module 2011-06-01 20:21:27 +01:00
Michael Edgar
a9ba4020db Added a global config option for IP-based session protection.
The new setting defaults to true, and is settable in the web admin panel. When
set to false, IP address checks are ignored. For users behind proxies (students,
large corporate networks) that don't guarantee a consistent IP, this makes the
web admin panel much more usable.
2011-04-13 20:24:26 -04:00
Uli Schlachter
ad442f4f10 Include less headers in WebModules.h
From Client.h, only CAuthBase is needed. This is solved by moving the whole
CWebAuth class to WebModules.cpp.

The include of FileUtils.h is avoided by changing the API. GetAvailSkins() now
returns the skin names instead of a CFile for the skin's path.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-04-03 10:06:16 +02:00
Kyle Fuller
703f2cd5bb Remove ident spoof from znc core 2011-03-30 19:16:53 +01:00
Kyle Fuller
d735e9d881 Remove some pointless if statements 2011-03-27 23:35:41 +01:00
Uli Schlachter
b37e239328 webadmin: Allow admins to ignore MaxBufferSize
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-02-14 14:56:09 +01:00
psychon
b9b0fd4c87 Oh, shiny... NOT
(Yes, it's that time of the year again)

Signed-off-by: Uli Schlachter <psychon@znc.in>

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2260 726aef4b-f618-498e-8847-2d620e286838
2011-01-14 17:03:24 +00:00
psychon
44d2816379 Remove some more pointless checks for sPageName.empty()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2241 726aef4b-f618-498e-8847-2d620e286838
2011-01-02 16:33:42 +00:00
psychon
1e0585c485 webadmin: Add all currently missing global settings
These were MaxBufferSize, ConnectDelay, ServerThrottle and AnonIPLimit.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2229 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 09:14:21 +00:00
psychon
eb263869b0 webadmin: Add a "key" inputbox to channels
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2227 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 08:40:44 +00:00
psychon
570fab6e44 webadmin: Add DCCBindHost
Before this commit, editing some user in webadmin cleared their DCCBindHost.
That's definitely not what we want.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2226 726aef4b-f618-498e-8847-2d620e286838
2010-12-31 08:32:58 +00:00
darthgandalf
8d5921f966 Webadmin now supports embedding of web stuff to user and channel pages.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2129 726aef4b-f618-498e-8847-2d620e286838
2010-09-11 18:52:24 +00:00
psychon
4b74817fdf webadmin: Remove an unused variable
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2116 726aef4b-f618-498e-8847-2d620e286838
2010-09-05 15:30:55 +00:00
psychon
341263f9ec Rename "vhost" to "bindhost"
"virtual host" seems to be confusing to users since they wonder why
i.am.superman doesn't work. Let's rename this to "bindhost" and perhaps it
becomes clearer what this setting does.

Thanks to SilverLeo!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2113 726aef4b-f618-498e-8847-2d620e286838
2010-08-30 08:58:29 +00:00
psychon
e62ca4112d Add new global setting MaxBufferSize
Previously, /znc setbuffer had a hardcoded limit of 500, other ways of setting
the buffer size didn't have any limit built-in.

This patch makes that limit configurable and makes sure the various places
honour it.

Thanks to DarthGandalf for the idea with the bForce argument, I were too
small-minded to come up with it myself. :(


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2020 726aef4b-f618-498e-8847-2d620e286838
2010-06-12 20:20:33 +00:00
psychon
ffdfd8f8d7 Whoops (wtf was webadmin doing with fake modules?)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2015 726aef4b-f618-498e-8847-2d620e286838
2010-06-07 12:39:16 +00:00
cflakes
4ba78a6ab8 <psychon> someone should commit the one-liner which makes the CListener created by webadmin always be CListener::ACCEPT_HTTP
<psychon> since that's the old behavior anyway


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1987 726aef4b-f618-498e-8847-2d620e286838
2010-05-14 09:00:46 +00:00
psychon
e8d9ba43c0 webadmin: Automatically convert module arguments
This patch makes webadmin automatically open its own listening port if it gets
a port number on the command line. It also handles -noircport etc. Basically, it
handles everything. ;)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1984 726aef4b-f618-498e-8847-2d620e286838
2010-05-13 19:49:52 +00:00
cflakes
08463bedac Make webadmin show whether a Listener/port accepts IRC and/or HTTP connections.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1974 726aef4b-f618-498e-8847-2d620e286838
2010-05-09 19:08:41 +00:00
psychon
99f1efc843 Some more fun with tabs
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1966 726aef4b-f618-498e-8847-2d620e286838
2010-05-02 08:36:57 +00:00
cflakes
ca394439ec Removed an unnecessary admin check from the new traffic page.
Sorry for not noticing this earlier :(


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1959 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 12:07:23 +00:00
cflakes
af0dd16d1d Added a "Traffic Info" page to webadmin. 99% of the patch have been done
by BrianC, so thanks again.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1958 726aef4b-f618-498e-8847-2d620e286838
2010-05-01 12:04:44 +00:00
cflakes
136ce32f85 Fixed some weird code in webadmin.cpp that prevented
module arguments from showing up with the new GetParam().


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1944 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 21:58:56 +00:00
cflakes
db9a9bfaa9 Adjusted the GetParam calls in webadmin.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1938 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 20:33:03 +00:00
psychon
2e6881c378 Webadmin: Use a dedicated page for confirming user deletes
The old Javascript way didn't work when one had javascript disabled.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1937 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 14:46:45 +00:00
psychon
eb44919005 Move CListener and CRealListener into their own files
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1924 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 16:52:30 +00:00
cflakes
fcdaa4b308 Remove some superfluous WebRequiresLogin and WebRequiresAdmin implementations from modules. Thanks to psychon for noticing.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1920 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 14:56:44 +00:00
cflakes
50dea12a2e Webadmin now finally displays "failed to load module" messages, thanks to the WebMods framework. Yay!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1887 726aef4b-f618-498e-8847-2d620e286838
2010-04-05 15:18:02 +00:00
cflakes
bd2764b34d WebAdmin: Show global settings previous to user settings.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1870 726aef4b-f618-498e-8847-2d620e286838
2010-04-04 11:56:10 +00:00
cflakes
bb79dd338f Added "Connect to IRC & automatically re-connect" checkbox to webadmin.
Sets the internal "automatically connect" flag just like /msg *status connect and
/msg *status disconnect do. Idea by Advis0r, thanks!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1851 726aef4b-f618-498e-8847-2d620e286838
2010-03-30 09:16:09 +00:00
psychon
6acaebf775 Add "Listen4" config option
"Listen6" and "Listen4" now do what the name implies and "Listen" listens on
both ipv4 and ipv6 (unless a bind host was set which forces something
different).

This also changes webadmin appropriately.

Thanks to DarthGandalf for the idea and the patch.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1816 726aef4b-f618-498e-8847-2d620e286838
2010-03-08 17:23:53 +00:00
prozacx
c27713cc1d Added support for cookies and sessions. Logging in is now done via cookies.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1799 726aef4b-f618-498e-8847-2d620e286838
2010-03-01 01:22:02 +00:00