Commit Graph

28 Commits

Author SHA1 Message Date
cflakes
286722eda5 Revamped default webadmin skin. It's very grayish, but looks way more like 2010 than the old default skin does.
The blue favicon.ico has been copied from the other webadmin skins.
Here's a screenshot: http://img402.imageshack.us/img402/2452/zncsettings126435334747.png


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1720 726aef4b-f618-498e-8847-2d620e286838
2010-01-24 17:19:07 +00:00
cflakes
44661c2d31 Following the bug report at [1] and a short discussion on IRC, this changes webadmin HTML pages' default charset to UTF-8. Since we do not have a routine that detects an input's charset or even converts it to UTF-8, this will cause ISO-8859-1(1) or other non UTF-8 encoded inputs that have been set e.g. as module arguments from IRC or from a non-UTF-8 shell console to show up garbled in webadmin. A possible fix would be to convert strings to UTF-8 before inserting them into the templates. We'll see what the future holds.
[1] http://sourceforge.net/tracker/index.php?func=detail&aid=2933280&group_id=115828&atid=672821


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1716 726aef4b-f618-498e-8847-2d620e286838
2010-01-18 19:52:16 +00:00
prozacx
c4a6f39b53 Pulled in CString changes from my common repository to help facilitate the upcoming webmods changes
Changes include...

- CString -
Addition of LCString typedef to list<CString>

Added four more args to CString::Token()...
	bool bAllowEmpty = false        <-- This default of false is NOT backward compatible but seems way more intuitive
	const CString& sLeft = ""
	const CString& sRight = ""
	bool bTrimQuotes = true

Added CString::OptionSplit()
Added CString::QuoteSplit()

Added two new args to CString::Split()...
	bool bTrimQuotes = true,
	bool bTrimWhiteSpace = false

- CTemplate -
Added new class CTemplateTagHandler to provide capability to add custom tags and vars
Added var name pointer dereferencing in the form of <? VAR Name=*other_var ?> (use ** to start with a literal star)
Added a list of paths that can be used to look for a given filename in multiple locations
Added CTemplate::PrependPath()
Added CTemplate::AppendPath()
Added CTemplate::RemovePath()
Added CTemplate::ClearPath()
Added CTemplate::PrintString() for filling a CString& instead of a stream
Added <? LT ?> which outputs a literal "<?"
Added <? GT ?> which outputs a literal "?>"
Added <? SETBLOCK ?> and <? ENDSETBLOCK ?> for setting a variable's value to the contents between the tags
Added <? EXPAND ?> for expanding a filename to a path using the settable list of paths
Added <? BREAK ?> and <? CONTINUE ?> inner loop tags
Added <? EXIT ?> tag to stop processing
Added <? DEBUG ?> tag for printing to DEBUG()
Added REVERSE keyword to the <? LOOP ?> tag



git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1537 726aef4b-f618-498e-8847-2d620e286838
2009-06-10 05:48:12 +00:00
psychon
3b9a9c2b80 Webadmin: Make this work with the browser cache
This moves all static webadmin files (images, css) to the data/ subdirectory
of the skin dir. The webadmin module is changed to redirect requests to
/<skin name>/ to that data directory. The skins are changed to use the
new URL when linking to their stuff. (I only needed to change the path to
the main.css file in each Header.tmpl. Since the .css and the images are now
in the same directory, relative URLs work just fine).

This means that we now generate different URLs after changing the webadmin
skins and the browser cache can do its thing.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1481 726aef4b-f618-498e-8847-2d620e286838
2009-04-06 16:00:23 +00:00
psychon
2430b5f6a6 Fix some minor XSS bug in webadmin's default skin
For some reason it didn't escape module descriptions...


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1391 726aef4b-f618-498e-8847-2d620e286838
2009-02-22 15:22:37 +00:00
psychon
6e880c5930 Remove maxlength="16" from the password input boxes in webadmin
This lead to silently truncated passwords which made logins a no-go.

Thanks to Julian for finding this one.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1330 726aef4b-f618-498e-8847-2d620e286838
2009-01-13 17:10:05 +00:00
psychon
b94e784301 Really use relative URLs in webadmin
I forgot the forms and the style sheets. Meh :(

Thanks to gencha for testing a snapshot and noticing that the forms are broken.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1254 726aef4b-f618-498e-8847-2d620e286838
2008-10-18 12:51:25 +00:00
psychon
aca6783f6f Use relative instead of absolute URLs in webadmin
This should make it possible to use webadmin together with apache's mod_proxy.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1253 726aef4b-f618-498e-8847-2d620e286838
2008-10-17 16:27:18 +00:00
psychon
85a70a418c Add JoinTries and MaxJoins config options to webadmin
This also changes the layout of the default skin a little, because it was
a little messed up. I still don't like the result, but meh, send patches!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1187 726aef4b-f618-498e-8847-2d620e286838
2008-09-03 14:28:18 +00:00
psychon
1bb1206472 Webadmin: Add support for timezone offset
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1079 726aef4b-f618-498e-8847-2d620e286838
2008-05-30 14:09:41 +00:00
psychon
f601db2cd8 merge with rev 932 psychon branch:
- module call for /me's
- timestamps for playback and query buffer
- WALLOP stuff / fix
- properly join channels _after_ namesx or uhnames were set up
- dont screw up raws on reconnect when you ran /lusers
- change default quit msg and version reply to CZNC::GetTag(false)
- change CZNC::GetTag() to point to sf.net
- kind of an rewrite for partyline, added fixed channels (this doesnt work on irssi,
		did it ever work?)
- add the timestamp support to webadmin too
- add ConnectDelay config option to avoid being killed because we connected too fast
- make znc handle usermodes correctly


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@799 726aef4b-f618-498e-8847-2d620e286838
2007-05-16 22:13:17 +00:00
prozacx
3213954f45 Use js to confirm deletion of users
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@777 726aef4b-f618-498e-8847-2d620e286838
2006-09-17 23:39:58 +00:00
prozacx
4c8e99afdb Moved sizes of some inputs into css
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@776 726aef4b-f618-498e-8847-2d620e286838
2006-09-17 23:28:48 +00:00
prozacx
70aafdee8f Moved awaynick functionality into modules/awaynick.cpp module
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@775 726aef4b-f618-498e-8847-2d620e286838
2006-09-17 22:57:28 +00:00
prozacx
b81c806aaf Stop using '@' user@ip since usernames can have @
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@686 726aef4b-f618-498e-8847-2d620e286838
2006-03-15 18:35:24 +00:00
prozacx
2be6450106 Allow longer usernames
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@685 726aef4b-f618-498e-8847-2d620e286838
2006-03-15 18:33:22 +00:00
prozacx
2a7cd84ec0 Made changes to validate on w3.org
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@662 726aef4b-f618-498e-8847-2d620e286838
2006-02-19 07:46:39 +00:00
prozacx
9013b40fe6 Param for channame is now name=
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@661 726aef4b-f618-498e-8847-2d620e286838
2006-02-19 04:19:33 +00:00
prozacx
60940a3225 Added Switch User and sidebar for non admins
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@658 726aef4b-f618-498e-8847-2d620e286838
2006-02-18 21:32:30 +00:00
prozacx
8fa81829b3 Removed redundant label
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@648 726aef4b-f618-498e-8847-2d620e286838
2006-02-12 00:20:38 +00:00
prozacx
6716e6f686 Added Listen Port table
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@647 726aef4b-f618-498e-8847-2d620e286838
2006-02-12 00:19:54 +00:00
prozacx
7c52a7862e Added some space at the bottom of the page
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@640 726aef4b-f618-498e-8847-2d620e286838
2006-02-11 10:04:36 +00:00
prozacx
aafbdd8000 Moved Skin option to the top
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@625 726aef4b-f618-498e-8847-2d620e286838
2006-02-08 11:09:30 +00:00
prozacx
479f37a29c Added in some default colors
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@623 726aef4b-f618-498e-8847-2d620e286838
2006-02-08 08:52:20 +00:00
prozacx
bd1084acac Added support to change skin in settings page
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@622 726aef4b-f618-498e-8847-2d620e286838
2006-02-08 08:43:48 +00:00
prozacx
cbc9f2b1e5 Favorite Icon
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@618 726aef4b-f618-498e-8847-2d620e286838
2006-02-08 06:12:07 +00:00
prozacx
6c7c662baa Fixed path to css
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@614 726aef4b-f618-498e-8847-2d620e286838
2006-02-08 05:56:25 +00:00
prozacx
60a8f677e4 Added template support for webadmin module
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@612 726aef4b-f618-498e-8847-2d620e286838
2006-02-08 03:19:13 +00:00