Commit Graph

1927 Commits

Author SHA1 Message Date
cflakes dee94a0bb8 Added the necessary checks for (lib)iconv in order to enable
the charset module from extra to do its thing. This has been
a pain in the ass and I'd like to thank psychon who made most
of the autofoo happen and BrianC for finding out that BSD sucks
and for testing! Yay!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1947 726aef4b-f618-498e-8847-2d620e286838
2010-04-27 15:40:24 +00:00
psychon 5f1a1d0153 Outsmart autoconf
When checking for libperl, evil little autoconf thought we intent to use perl
everywhere (HAHA, no!) so it went forward and added -lperl to $LIBS. Despite
this being a bad idea in general (come on, it's perl!), this also made
subsequent checks fail because the linker didn't find libperl (we reverted back
LDFLAGS to an older value after checking for perl and so the path to libperl got
lost).

Fix this by outsmarting autoconf. Let's wait for the autofail to strike back!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1946 726aef4b-f618-498e-8847-2d620e286838
2010-04-27 15:30:50 +00:00
cflakes 4f55857434 WebMods: Moved some shared/common CSS things into a global.css file that all skins (should) embed.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1945 726aef4b-f618-498e-8847-2d620e286838
2010-04-26 16:39:11 +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 08d1d248e2 BrianC totally pimped the del_user page.
"Yo ZNC, we heard you like deleting users so we put a delete button in your
delete user page so you can delete while you delete."


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1943 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 21:49:07 +00:00
cflakes 4274bdc5d1 Add the cool charset module to "extra". It normalizes character sets,
so if your client sends e.g. ISO-8859-1, and users on your IRC server
want UTF-8, this module can help you.
Or, the other way around, if users on your IRC server send messages
with weird charsets that your client doesn't understand, this module
can convert them to UTF-8 or something for you (as long as you know
the names of the source charsets, at least).
More explanation will be added to the wiki shortly.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1942 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 21:45:13 +00:00
cflakes fb8b8e4258 Fixed lastseen template to reflect the new user deletion confirmation page.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1941 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 20:43:23 +00:00
cflakes 50451bec2f Fixed GetParam call in the notes module.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1940 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 20:37:24 +00:00
cflakes e8791a85ec Make del_user page look nicer.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1939 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 20:36:42 +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
cflakes 9c5068a754 WebMods: Fix cookie check and menu entry variables to use the new GetParam methods.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1936 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 14:45:22 +00:00
psychon 54073d1147 HTTPSock: Split up parameter access
Every function on CHTTPSock which works with request parameters now has a new
flag bool bPost which decides whether only POST or GET parameters should be
used.

This breaks everything which tries to access GET parameters, but once this is
fixed we should be pretty safe against CSRF.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1935 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 14:09:23 +00:00
cflakes 68c4931e2d WebMods: Delete obsolete login.tpl template. The login form has been
on / and /help and so on for some months.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1934 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 13:52:19 +00:00
cflakes 298d7f0997 WebMods: Following the last commit, this adds the CSRF check token
to existing action="post" forms. Right now, we don't have much of a
real protection against CSRF yet, but psychon is working on making
that happen :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1933 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 13:35:06 +00:00
psychon b0d140e2ed Webmods: Only accept POST requests with a secret parameter
This is a first step against CSRF. Thanks to flakes for the idea.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1932 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 13:04:51 +00:00
psychon eaaddf01bb Webmods: Only accept "/login"
Nothing uses a "/login/bla"-style URI and thus we shouldn't have to check for it


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1931 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 12:52:03 +00:00
psychon 635fb4bc00 Update to latest Csocket
This adds Csock::ConvertAddress() which produces printable addresses. We use
this function in CZNCSock to strip away 4in6 prefixes (e.g. ::ffff:127.0.0.1).


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1930 726aef4b-f618-498e-8847-2d620e286838
2010-04-25 11:17:42 +00:00
psychon e2b91a32c9 Move some common pid file code into new InitPidFile()
Patch by reed, thanks again. :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1929 726aef4b-f618-498e-8847-2d620e286838
2010-04-24 08:34:33 +00:00
psychon 0f6c1f9e16 Look, an invisible pink unicorn!
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1928 726aef4b-f618-498e-8847-2d620e286838
2010-04-23 16:38:03 +00:00
psychon fe6a930a01 Add ./configure --enable-run-from-source
Unless this flag is used, znc will no longer look for modules in ./modules/
because this might be exploitable by lucky attackers.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1927 726aef4b-f618-498e-8847-2d620e286838
2010-04-23 16:27:21 +00:00
cflakes 16ad0950ea Add support for an optional user-specified quit message to the DISCONNECT command that would be used instead of the message specified in the config file.
Patch by reed! Thanks!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1926 726aef4b-f618-498e-8847-2d620e286838
2010-04-23 09:09:07 +00:00
psychon 46b70f654d Move the HTTP/IRC switching to CIncomingConnection
This new class waits for the first line from the client and checks if it's an
HTTP request and then passes the connection on to the irc or http code.

Before this, the IRC parser handled this as a special case which wasn't as
nice-looking as this is. :)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1925 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 18:20:12 +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
psychon 92cce35f90 Move discon_kick, blockuser and lastseen out of extra/
discon_kick is renamed to disconkick, seems more consistent with the other
modules.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1923 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 15:52:50 +00:00
psychon a489a3f8ff Move imapauth and email to extra/, remove webchat
webchat will come back later in more shiny and with more blinky-blink!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1922 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 15:36:50 +00:00
cflakes 62a46f6fca Cleanup: Remove unused/dead "WebLogoutCounters" code from User.h.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1921 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 14:58:00 +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 3225e8fbdf Move the dangerous shell module to "extra".
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1919 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 14:46:14 +00:00
cflakes 057da383ea Web-enabled the stickychan module. You can now stick+unstick channels from the web.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1918 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 14:10:56 +00:00
cflakes 56fb03622b WebMods: minor fix to the looks of the default skin's login box.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1917 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 12:31:31 +00:00
cflakes edc102268b WebMods: Remove totally obsolete MSIE JS variable.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1916 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 12:23:04 +00:00
cflakes cea6ad3469 WebMods: Added a message to the home/index page that
informs the user if no Web-enabled modules have been loaded.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1915 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 12:02:41 +00:00
cflakes 80724ce64c Do not keep nickserv passwords lingering around as module arguments.
Instead, save them as NV. This also prevents them from showing up in
webadmin.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1914 726aef4b-f618-498e-8847-2d620e286838
2010-04-15 11:20:16 +00:00
cflakes 4bc058109b Minor "all vs both" addport help fix.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1913 726aef4b-f618-498e-8847-2d620e286838
2010-04-14 19:04:21 +00:00
cflakes 254024ce05 WebMods: Ice skin: Fixed menu and successbar/errorbar.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1912 726aef4b-f618-498e-8847-2d620e286838
2010-04-14 18:58:32 +00:00
cflakes 892b85fae9 First round of updates to the ice skin. Yummy.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1911 726aef4b-f618-498e-8847-2d620e286838
2010-04-14 07:50:23 +00:00
cflakes 813c611d9e Added BrianC to the authors file. He contributed various patches already. :)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1910 726aef4b-f618-498e-8847-2d620e286838
2010-04-13 22:35:34 +00:00
cflakes 140e8103b0 Small fix to default skin's tables. Very long words in td
cells are still not being wrapped, but that's not something
browsers support right now, so users will have to deal with it.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1909 726aef4b-f618-498e-8847-2d620e286838
2010-04-13 22:22:00 +00:00
cflakes 28740dea1c Make the default skin 100px wider. This adds extra space for the menu and takes away
a little space from the content so the menu never overlaps the content...


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1908 726aef4b-f618-498e-8847-2d620e286838
2010-04-13 21:21:32 +00:00
cflakes 30d996dae8 WebMods: Finally fixed the default theme. Looks pretty nice now.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1907 726aef4b-f618-498e-8847-2d620e286838
2010-04-13 20:25:44 +00:00
cflakes 7748713afd Added ability to change the TimezoneOffset setting
from the admin module. Patch by BrianC, thanks!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1906 726aef4b-f618-498e-8847-2d620e286838
2010-04-12 15:31:42 +00:00
psychon e77adef048 Update to latest Csocket
This gets rid of some openssl-related warnings from valgrind's memcheck and adds
Csock::GetPeerFingerprint().


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1905 726aef4b-f618-498e-8847-2d620e286838
2010-04-11 19:00:30 +00:00
psychon 48148d6a30 partyline: Fix desync with {add,del}fixchan
Again, thanks to r33d for the patch.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1904 726aef4b-f618-498e-8847-2d620e286838
2010-04-11 11:43:09 +00:00
psychon f8d0174054 Add a getter for CUser::m_bIRCAway
Patch by Loriaki via sf.net patch tracker, thanks.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1903 726aef4b-f618-498e-8847-2d620e286838
2010-04-11 11:29:55 +00:00
psychon ae5d15af46 Update AUTHORS
flakes is getting annoying enough to move up and reed seems to actually use
partyline. ;)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1902 726aef4b-f618-498e-8847-2d620e286838
2010-04-11 09:01:30 +00:00
psychon 78044a7e06 partyline: Minor fix to loading saved channel topics
Follow up patch to r1898.

Patch again by Reed Loden (r33d), thanks a lot.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1901 726aef4b-f618-498e-8847-2d620e286838
2010-04-11 08:58:15 +00:00
cflakes f823e8cdde Some more skin fixes. Default's menu is still ugly,
and the Ice skin is as well. Soon.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1900 726aef4b-f618-498e-8847-2d620e286838
2010-04-08 16:42:37 +00:00
psychon 2443c22a83 Add {List,Add,Del}Port to *status
Patch by BrianC, thanks a lot. (With some minor modifications)


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1899 726aef4b-f618-498e-8847-2d620e286838
2010-04-08 16:04:56 +00:00
psychon 4f2c782c86 partyline: Save channel topics across restarts
This implements some feature request on sf.net.

Patch by Reed Loden (r33d), thanks a lot.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1898 726aef4b-f618-498e-8847-2d620e286838
2010-04-08 15:56:19 +00:00