mirror of
https://github.com/znc/znc.git
synced 2026-07-03 16:31:49 +02:00
Merge some work by Jens-Andre Koch
Only his changes to the core are presented here. Unfortunately, the skin itself looks ugly on Opera, and simply doesn't work on Firefox... Merge branch 'master' into znc-ation Conflicts: modules/data/lastseen/tmpl/lastseen_WebadminUser.tmpl modules/data/webadmin/tmpl/settings.tmpl
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ AC_DEFUN([AC_PROG_CC], [m4_errprint(__file__:__line__[: Something is trying to u
|
||||
dnl Needed for AC_PATH_PROGS_FEATURE_CHECK which was added in 2.62
|
||||
AC_PREREQ([2.62])
|
||||
dnl Keep the version number in sync with main.h!
|
||||
AC_INIT([znc], [0.205])
|
||||
AC_INIT([znc], [0.207])
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AC_CONFIG_SRCDIR([src/znc.cpp])
|
||||
AC_LANG([C++])
|
||||
|
||||
@@ -183,11 +183,13 @@ public:
|
||||
|
||||
CModInfo() {
|
||||
m_fLoader = NULL;
|
||||
m_bHasArgs = false;
|
||||
}
|
||||
CModInfo(const CString& sName, const CString& sPath, EModuleType eType) {
|
||||
m_sName = sName;
|
||||
m_sPath = sPath;
|
||||
m_fLoader = NULL;
|
||||
m_bHasArgs = false;
|
||||
}
|
||||
~CModInfo() {}
|
||||
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
|
||||
// The following defines are for #if comparison (preprocessor only likes ints)
|
||||
#define VERSION_MAJOR 0
|
||||
#define VERSION_MINOR 205
|
||||
#define VERSION_MINOR 207
|
||||
// This one is for display purpose
|
||||
#define VERSION (VERSION_MAJOR + VERSION_MINOR / 1000.0)
|
||||
|
||||
|
||||
+2
-2
@@ -143,6 +143,8 @@ public:
|
||||
// Listener yummy
|
||||
CListener* FindListener(u_short uPort, const CString& BindHost, EAddrType eAddr);
|
||||
bool AddListener(CListener*);
|
||||
bool AddListener(unsigned int uPort, const CString& sBindHost, bool bSSL,
|
||||
EAddrType eAddr, CListener::EAcceptType eAccept, CString& sError);
|
||||
bool DelListener(CListener*);
|
||||
|
||||
// Message of the Day
|
||||
@@ -178,8 +180,6 @@ private:
|
||||
CString MakeConfigHeader();
|
||||
bool AddListener(const CString& sLine, CString& sError);
|
||||
bool AddListener(CConfig* pConfig, CString& sError);
|
||||
bool AddListener(unsigned int uPort, const CString& sBindHost, bool bSSL,
|
||||
EAddrType eAddr, CListener::EAcceptType eAccept, CString& sError);
|
||||
|
||||
protected:
|
||||
time_t m_TimeStarted;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<table class="data">
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="width: 10px;"></td>
|
||||
<td></td>
|
||||
<td>Key</td>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Last login time:</div>
|
||||
<p><? VAR LastSeen DEFAULT="- unknown -" ?></p>
|
||||
<label id="last_login">Last login time:</label>
|
||||
<span id="lastseen"><? VAR LastSeen DEFAULT="- unknown -" ?></span>
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
function floodprotection_change() {
|
||||
var protection = document.getElementById('floodprotection_checkbox');
|
||||
var rate = document.getElementById('floodrate');
|
||||
var burst = document.getElementById('floodburst');
|
||||
if (protection.checked) {
|
||||
rate.removeAttribute('disabled');
|
||||
burst.removeAttribute('disabled');
|
||||
} else {
|
||||
rate.disabled = 'disabled';
|
||||
burst.disabled = 'disabled';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
<? AddRow JSLoop HREF=/modfiles/global/webadmin/webadmin.js ?>
|
||||
<? INC Header.tmpl ?>
|
||||
|
||||
<? IF Edit ?>
|
||||
@@ -61,20 +62,6 @@
|
||||
<br /><span class="info">One server per line, host [[+]port] [password]</span>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function floodprotection_change() {
|
||||
var protection = document.getElementById('floodprotection_checkbox');
|
||||
var rate = document.getElementById('floodrate');
|
||||
var burst = document.getElementById('floodburst');
|
||||
if (protection.checked) {
|
||||
rate.removeAttribute('disabled');
|
||||
burst.removeAttribute('disabled');
|
||||
} else {
|
||||
rate.disabled = 'disabled';
|
||||
burst.disabled = 'disabled';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Flood protection:</div>
|
||||
<div class="checkbox">
|
||||
@@ -126,7 +113,7 @@
|
||||
<td>BufferCount</td>
|
||||
<td>Options</td>
|
||||
<? ELSE ?>
|
||||
<td> <- Add a channel (opens in same page) </td>
|
||||
<td><- Add a channel (opens in same page)</td>
|
||||
<? ENDIF ?>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -173,7 +160,13 @@
|
||||
<input type="checkbox" name="loadmod" id="lm_<? VAR Name ?>" value="<? VAR Name ?>"<? IF Checked ?> checked="checked"<? ENDIF ?><? IF Disabled ?> disabled="disabled"<? ENDIF ?> /><label for="lm_<? VAR Name ?>"> <? IF Wiki ?><a href="http://wiki.znc.in/<? VAR Wiki ?>"><? VAR Name ?></a> <? ELSE ?> <? VAR Name ?> <? ENDIF ?></label>
|
||||
</td>
|
||||
<td class="mod_args">
|
||||
<? IF Disabled ?><? VAR Args ?><? ELSE ?><input class="third" type="text" name="modargs_<? VAR Name ?>" value="<? VAR Args ?>" /><? ENDIF ?>
|
||||
<? IF Disabled ?>
|
||||
<? VAR Args ?>
|
||||
<? ELSE ?>
|
||||
<input class="third" type="text" name="modargs_<? VAR Name ?>" value="<? VAR Args ?>"
|
||||
<? IF !HasArgs ?> disabled="disabled"<? ENDIF ?>
|
||||
<? IF ArgsHelpText ?> title="<? VAR ArgsHelpText ?>"<? ENDIF ?> />
|
||||
<? ENDIF ?>
|
||||
</td>
|
||||
<td class="mod_descr"><? VAR Description ?></td>
|
||||
</tr>
|
||||
|
||||
@@ -82,27 +82,33 @@
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
<? IF BindHostLoop ?>
|
||||
<? IF BindHostEdit ?>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">BindHost:</div>
|
||||
<select name="bindhost">
|
||||
<option value="">- Default -</option>
|
||||
<? LOOP BindHostLoop ?><option value="<? VAR BindHost ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR BindHost ?></option><? ENDLOOP ?>
|
||||
</select>
|
||||
<? IF BindHostLoop ?>
|
||||
<select name="bindhost">
|
||||
<option value="">- Default -</option>
|
||||
<? LOOP BindHostLoop ?><option value="<? VAR BindHost ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR BindHost ?></option><? ENDLOOP ?>
|
||||
</select>
|
||||
<? ELSE ?>
|
||||
<input type="text" name="bindhost" value="<? VAR BindHost ?>"/>
|
||||
<? ENDIF ?>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
<? ENDIF ?>
|
||||
|
||||
<? IF DCCBindHostLoop ?>
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">DCCBindHost:</div>
|
||||
<select name="dccbindhost">
|
||||
<option value="">- Default -</option>
|
||||
<? LOOP DCCBindHostLoop ?><option value="<? VAR BindHost ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR BindHost ?></option><? ENDLOOP ?>
|
||||
</select>
|
||||
<? IF DCCBindHostLoop ?>
|
||||
<select name="dccbindhost">
|
||||
<option value="">- Default -</option>
|
||||
<? LOOP DCCBindHostLoop ?><option value="<? VAR BindHost ?>"<? IF Checked ?> selected="selected"<? ENDIF ?>><? VAR BindHost ?></option><? ENDLOOP ?>
|
||||
</select>
|
||||
<? ELSE ?>
|
||||
<input type="text" name="dccbindhost" value="<? VAR DCCBindHost ?>"/>
|
||||
<? ENDIF ?>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
<? ENDIF ?>
|
||||
<? ENDIF ?>
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Quit Message:</div>
|
||||
@@ -126,7 +132,7 @@
|
||||
<? IF NetworkLoop ?>
|
||||
<td>Name</td>
|
||||
<? ELSE ?>
|
||||
<td> <- Add a network (opens in same page) </td>
|
||||
<td><- Add a network (opens in same page)</td>
|
||||
<? ENDIF ?>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -9,36 +9,61 @@
|
||||
<div class="sectionbg">
|
||||
<div class="sectionbody">
|
||||
<div class="subsection">
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Port</td>
|
||||
<td>BindHost</td>
|
||||
<td>SSL</td>
|
||||
<td>IPv4</td>
|
||||
<td>IPv6</td>
|
||||
<td>IRC</td>
|
||||
<td>Web</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<? LOOP ListenLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td><? VAR Port ?></td>
|
||||
<td><? VAR BindHost DEFAULT=** ?></td>
|
||||
<td><? IF IsSSL ?>Yes<? ELSE ?>No<? ENDIF ?></td>
|
||||
<td><? IF IsIPV4 ?>Yes<? ELSE ?>No<? ENDIF ?></td>
|
||||
<td><? IF IsIPV6 ?>Yes<? ELSE ?>No<? ENDIF ?></td>
|
||||
<td><? IF IsIRC ?>Yes<? ELSE ?>No<? ENDIF ?></td>
|
||||
<td><? IF IsWeb ?>Yes<? ELSE ?>No<? ENDIF ?></td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div>
|
||||
<form action="add_listener" method="post">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Port</td>
|
||||
<td>BindHost</td>
|
||||
<td>SSL</td>
|
||||
<td>IPv4</td>
|
||||
<td>IPv6</td>
|
||||
<td>IRC</td>
|
||||
<td>Web</td>
|
||||
<td/>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<? LOOP ListenLoop ?>
|
||||
<tr class="<? IF __EVEN__ ?>evenrow<? ELSE ?>oddrow<? ENDIF ?>">
|
||||
<td><? VAR Port ?></td>
|
||||
<td><? VAR BindHost DEFAULT=** ?></td>
|
||||
<td><div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsSSL ?>checked="checked"<? ENDIF ?>/></div></td>
|
||||
<td><div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsIPV4 ?>checked="checked"<? ENDIF ?>/></div></td>
|
||||
<td><div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsIPV6 ?>checked="checked"<? ENDIF ?>/></div></td>
|
||||
<td><div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsIRC ?>checked="checked"<? ENDIF ?>/></div></td>
|
||||
<td><div class="checkbox"><input type="checkbox" disabled="disabled" <? IF IsWeb ?>checked="checked"<? ENDIF ?>/></div></td>
|
||||
<td>
|
||||
<? IF SuggestDeletion ?>
|
||||
<form action="del_listener" method="post">
|
||||
<? INC _csrf_check.tmpl ?>
|
||||
<input name="host" type="hidden" value="<? VAR BindHost ?>"/>
|
||||
<input name="port" type="hidden" value="<? VAR Port ?>"/>
|
||||
<input name="ipv4" type="hidden" value="<? VAR IsIPV4 ?>"/>
|
||||
<input name="ipv6" type="hidden" value="<? VAR IsIPV6 ?>"/>
|
||||
<input type="submit" value="Del"/>
|
||||
</form>
|
||||
<? ENDIF ?>
|
||||
</td>
|
||||
</tr>
|
||||
<? ENDLOOP ?>
|
||||
<tr>
|
||||
<? INC _csrf_check.tmpl ?>
|
||||
<td><input name="port" type="number" min="1" max="65535" class="number"/></td>
|
||||
<td><input name="host" type="text" value="*" class="third"/></td>
|
||||
<td><div class="checkbox"><input name="ssl" type="checkbox"/></div></td>
|
||||
<td><div class="checkbox"><input name="ipv4" type="checkbox" checked="checked"/></div></td>
|
||||
<td><div class="checkbox"><input name="ipv6" type="checkbox" checked="checked"/></div></td>
|
||||
<td><div class="checkbox"><input name="irc" type="checkbox" checked="checked"/></div></td>
|
||||
<td><div class="checkbox"><input name="web" type="checkbox" checked="checked"/></div></td>
|
||||
<td><input type="submit" value="Add"/></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -167,4 +192,4 @@
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<? INC Footer.tmpl ?>
|
||||
<? INC Footer.tmpl ?>
|
||||
|
||||
@@ -134,7 +134,7 @@ void CIMAPSock::ReadLine(const CString& sLine) {
|
||||
}
|
||||
|
||||
Write("AUTH LOGIN " + sUsername + " " + m_spAuth->GetPassword() + "\r\n");
|
||||
} else {
|
||||
} else if (sLine.Left(5) == "AUTH ") {
|
||||
CUser* pUser = CZNC::Get().FindUser(m_spAuth->GetUsername());
|
||||
|
||||
if (pUser && sLine.Equals("AUTH OK", false, 7)) {
|
||||
|
||||
+147
-27
@@ -513,6 +513,20 @@ public:
|
||||
return TrafficPage(WebSock, Tmpl);
|
||||
} else if (sPageName == "index") {
|
||||
return true;
|
||||
} else if (sPageName == "add_listener") {
|
||||
// Admin Check
|
||||
if (!spSession->IsAdmin()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return AddListener(WebSock, Tmpl);
|
||||
} else if (sPageName == "del_listener") {
|
||||
// Admin Check
|
||||
if (!spSession->IsAdmin()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return DelListener(WebSock, Tmpl);
|
||||
}
|
||||
|
||||
return false;
|
||||
@@ -955,41 +969,49 @@ public:
|
||||
|
||||
// To change BindHosts be admin or don't have DenySetBindHost
|
||||
if (spSession->IsAdmin() || !spSession->GetUser()->DenySetBindHost()) {
|
||||
Tmpl["BindHostEdit"] = "true";
|
||||
const VCString& vsBindHosts = CZNC::Get().GetBindHosts();
|
||||
bool bFoundBindHost = false;
|
||||
bool bFoundDCCBindHost = false;
|
||||
for (unsigned int b = 0; b < vsBindHosts.size(); b++) {
|
||||
const CString& sBindHost = vsBindHosts[b];
|
||||
CTemplate& l = Tmpl.AddRow("BindHostLoop");
|
||||
CTemplate& k = Tmpl.AddRow("DCCBindHostLoop");
|
||||
if (vsBindHosts.empty()) {
|
||||
if (pUser) {
|
||||
Tmpl["BindHost"] = pUser->GetBindHost();
|
||||
Tmpl["DCCBindHost"] = pUser->GetDCCBindHost();
|
||||
}
|
||||
} else {
|
||||
bool bFoundBindHost = false;
|
||||
bool bFoundDCCBindHost = false;
|
||||
for (unsigned int b = 0; b < vsBindHosts.size(); b++) {
|
||||
const CString& sBindHost = vsBindHosts[b];
|
||||
CTemplate& l = Tmpl.AddRow("BindHostLoop");
|
||||
CTemplate& k = Tmpl.AddRow("DCCBindHostLoop");
|
||||
|
||||
l["BindHost"] = sBindHost;
|
||||
k["BindHost"] = sBindHost;
|
||||
l["BindHost"] = sBindHost;
|
||||
k["BindHost"] = sBindHost;
|
||||
|
||||
if (pUser && pUser->GetBindHost() == sBindHost) {
|
||||
if (pUser && pUser->GetBindHost() == sBindHost) {
|
||||
l["Checked"] = "true";
|
||||
bFoundBindHost = true;
|
||||
}
|
||||
|
||||
if (pUser && pUser->GetDCCBindHost() == sBindHost) {
|
||||
k["Checked"] = "true";
|
||||
bFoundDCCBindHost = true;
|
||||
}
|
||||
}
|
||||
|
||||
// If our current bindhost is not in the global list...
|
||||
if (pUser && !bFoundBindHost && !pUser->GetBindHost().empty()) {
|
||||
CTemplate& l = Tmpl.AddRow("BindHostLoop");
|
||||
|
||||
l["BindHost"] = pUser->GetBindHost();
|
||||
l["Checked"] = "true";
|
||||
bFoundBindHost = true;
|
||||
}
|
||||
if (pUser && !bFoundDCCBindHost && !pUser->GetDCCBindHost().empty()) {
|
||||
CTemplate& l = Tmpl.AddRow("DCCBindHostLoop");
|
||||
|
||||
if (pUser && pUser->GetDCCBindHost() == sBindHost) {
|
||||
k["Checked"] = "true";
|
||||
bFoundDCCBindHost = true;
|
||||
l["BindHost"] = pUser->GetDCCBindHost();
|
||||
l["Checked"] = "true";
|
||||
}
|
||||
}
|
||||
|
||||
// If our current bindhost is not in the global list...
|
||||
if (pUser && !bFoundBindHost && !pUser->GetBindHost().empty()) {
|
||||
CTemplate& l = Tmpl.AddRow("BindHostLoop");
|
||||
|
||||
l["BindHost"] = pUser->GetBindHost();
|
||||
l["Checked"] = "true";
|
||||
}
|
||||
if (pUser && !bFoundDCCBindHost && !pUser->GetDCCBindHost().empty()) {
|
||||
CTemplate& l = Tmpl.AddRow("DCCBindHostLoop");
|
||||
|
||||
l["BindHost"] = pUser->GetDCCBindHost();
|
||||
l["Checked"] = "true";
|
||||
}
|
||||
}
|
||||
|
||||
vector<CString> vDirs;
|
||||
@@ -1237,7 +1259,100 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
bool AddListener(CWebSock& WebSock, CTemplate& Tmpl) {
|
||||
unsigned int uPort = WebSock.GetParam("port").ToUInt();
|
||||
CString sHost = WebSock.GetParam("host");
|
||||
if (sHost == "*") sHost = "";
|
||||
bool bSSL = WebSock.GetParam("ssl").ToBool();
|
||||
bool bIPv4 = WebSock.GetParam("ipv4").ToBool();
|
||||
bool bIPv6 = WebSock.GetParam("ipv6").ToBool();
|
||||
bool bIRC = WebSock.GetParam("irc").ToBool();
|
||||
bool bWeb = WebSock.GetParam("web").ToBool();
|
||||
|
||||
EAddrType eAddr = ADDR_ALL;
|
||||
if (bIPv4) {
|
||||
if (bIPv6) {
|
||||
eAddr = ADDR_ALL;
|
||||
} else {
|
||||
eAddr = ADDR_IPV4ONLY;
|
||||
}
|
||||
} else {
|
||||
if (bIPv6) {
|
||||
eAddr = ADDR_IPV6ONLY;
|
||||
} else {
|
||||
WebSock.GetSession()->AddError("Choose either IPv4 or IPv6 or both.");
|
||||
return SettingsPage(WebSock, Tmpl);
|
||||
}
|
||||
}
|
||||
|
||||
CListener::EAcceptType eAccept;
|
||||
if (bIRC) {
|
||||
if (bWeb) {
|
||||
eAccept = CListener::ACCEPT_ALL;
|
||||
} else {
|
||||
eAccept = CListener::ACCEPT_IRC;
|
||||
}
|
||||
} else {
|
||||
if (bWeb) {
|
||||
eAccept = CListener::ACCEPT_HTTP;
|
||||
} else {
|
||||
WebSock.GetSession()->AddError("Choose either IRC or Web or both.");
|
||||
return SettingsPage(WebSock, Tmpl);
|
||||
}
|
||||
}
|
||||
|
||||
CString sMessage;
|
||||
if (CZNC::Get().AddListener(uPort, sHost, bSSL, eAddr, eAccept, sMessage)) {
|
||||
if (!sMessage.empty()) {
|
||||
WebSock.GetSession()->AddSuccess(sMessage);
|
||||
}
|
||||
if (!CZNC::Get().WriteConfig()) {
|
||||
WebSock.GetSession()->AddError("Port changed, but config was not written");
|
||||
}
|
||||
} else {
|
||||
WebSock.GetSession()->AddError(sMessage);
|
||||
}
|
||||
|
||||
return SettingsPage(WebSock, Tmpl);
|
||||
}
|
||||
|
||||
bool DelListener(CWebSock& WebSock, CTemplate& Tmpl) {
|
||||
unsigned int uPort = WebSock.GetParam("port").ToUInt();
|
||||
CString sHost = WebSock.GetParam("host");
|
||||
bool bIPv4 = WebSock.GetParam("ipv4").ToBool();
|
||||
bool bIPv6 = WebSock.GetParam("ipv6").ToBool();
|
||||
|
||||
EAddrType eAddr = ADDR_ALL;
|
||||
if (bIPv4) {
|
||||
if (bIPv6) {
|
||||
eAddr = ADDR_ALL;
|
||||
} else {
|
||||
eAddr = ADDR_IPV4ONLY;
|
||||
}
|
||||
} else {
|
||||
if (bIPv6) {
|
||||
eAddr = ADDR_IPV6ONLY;
|
||||
} else {
|
||||
WebSock.GetSession()->AddError("Invalid request.");
|
||||
return SettingsPage(WebSock, Tmpl);
|
||||
}
|
||||
}
|
||||
|
||||
CListener* pListener = CZNC::Get().FindListener(uPort, sHost, eAddr);
|
||||
if (pListener) {
|
||||
CZNC::Get().DelListener(pListener);
|
||||
if (!CZNC::Get().WriteConfig()) {
|
||||
WebSock.GetSession()->AddError("Port changed, but config was not written");
|
||||
}
|
||||
} else {
|
||||
WebSock.GetSession()->AddError("The specified listener was not found.");
|
||||
}
|
||||
|
||||
return SettingsPage(WebSock, Tmpl);
|
||||
}
|
||||
|
||||
bool SettingsPage(CWebSock& WebSock, CTemplate& Tmpl) {
|
||||
Tmpl.SetFile("settings.tmpl");
|
||||
if (!WebSock.GetParam("submitted").ToUInt()) {
|
||||
CString sBindHosts, sMotd;
|
||||
Tmpl["Action"] = "settings";
|
||||
@@ -1272,6 +1387,11 @@ public:
|
||||
l["IsWeb"] = CString(pListener->GetAcceptType() != CListener::ACCEPT_IRC);
|
||||
l["IsIRC"] = CString(pListener->GetAcceptType() != CListener::ACCEPT_HTTP);
|
||||
|
||||
// simple protection for user from shooting his own foot
|
||||
// TODO check also for hosts/families
|
||||
// such check is only here, user still can forge HTTP request to delete web port
|
||||
l["SuggestDeletion"] = CString(pListener->GetPort() != WebSock.GetLocalPort());
|
||||
|
||||
#ifdef HAVE_LIBSSL
|
||||
if (pListener->IsSSL()) {
|
||||
l["IsSSL"] = "true";
|
||||
|
||||
+8
-4
@@ -330,10 +330,14 @@ void CIRCSock::ReadLine(const CString& sData) {
|
||||
// The client doesn't support multi-prefix so we need to remove
|
||||
// the other prefixes.
|
||||
|
||||
CString sNewLine = sServer + " 352 " + sLine.Token(2) + " " + \
|
||||
sLine.Token(3) + " " + sIdent + " " + sHost + " " + \
|
||||
sLine.Token(6) + " " + sNick[0] + \
|
||||
sNick.substr(sNick.find_first_not_of(GetPerms())) + " " + \
|
||||
CString sNewNick = sNick;
|
||||
size_t pos = sNick.find_first_not_of(GetPerms());
|
||||
if (pos >= 2 && pos != CString::npos) {
|
||||
sNewNick = sNick[0] + sNick.substr(pos);
|
||||
}
|
||||
CString sNewLine = sServer + " 352 " + sLine.Token(2) + " " +
|
||||
sLine.Token(3) + " " + sIdent + " " + sHost + " " +
|
||||
sLine.Token(6) + " " + sNewNick + " " +
|
||||
sLine.Token(8, true);
|
||||
m_pNetwork->PutUser(sNewLine, pClient);
|
||||
}
|
||||
|
||||
+4
-3
@@ -687,12 +687,13 @@ CWebSock::EPageReqResult CWebSock::OnPageRequestInternal(const CString& sURI, CS
|
||||
break;
|
||||
}
|
||||
|
||||
if (!pModule)
|
||||
return PAGE_NOTFOUND;
|
||||
|
||||
m_Template["ModPath"] = pModule->GetWebPath();
|
||||
m_Template["ModFilesPath"] = pModule->GetWebFilesPath();
|
||||
|
||||
if (!pModule) {
|
||||
return PAGE_NOTFOUND;
|
||||
} else if (pModule->WebRequiresLogin() && !ForceLogin()) {
|
||||
if (pModule->WebRequiresLogin() && !ForceLogin()) {
|
||||
return PAGE_PRINT;
|
||||
} else if (pModule->WebRequiresAdmin() && !GetSession()->IsAdmin()) {
|
||||
PrintErrorPage(403, "Forbidden", "You need to be an admin to access this module");
|
||||
|
||||
@@ -247,14 +247,18 @@ input.third, textarea.third,
|
||||
width: 150px;
|
||||
}
|
||||
|
||||
input.number {
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
table {
|
||||
border: 1px solid #ccc;
|
||||
border-spacing: 1px;
|
||||
}
|
||||
|
||||
td, th {
|
||||
padding: 5px 10px;
|
||||
min-width: 50px;
|
||||
padding: 5px 7px;
|
||||
min-width: 35px;
|
||||
}
|
||||
|
||||
thead td, th {
|
||||
|
||||
@@ -92,7 +92,7 @@ table thead {
|
||||
thead td {
|
||||
font-size: 13px;
|
||||
border-bottom: 1px solid #000;
|
||||
min-width: 50px;
|
||||
min-width: 35px;
|
||||
}
|
||||
|
||||
th {
|
||||
|
||||
@@ -1,504 +0,0 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
jQuery License - http://jquery.org/license
|
||||
------------------------------------------
|
||||
|
||||
jQuery is dual licensed under MIT and GNU GPL v2 license.
|
||||
|
||||
The ZNC project uses jQuery under the GNU GPL v2 license.
|
||||
|
||||
You may find the license text at
|
||||
http://github.com/jquery/jquery/blob/master/GPL-LICENSE.txt
|
||||
|
||||
|
||||
Sizzle License
|
||||
--------------
|
||||
|
||||
The jQuery library uses the Sizzle selector engine (http://sizzlejs.com/) internally.
|
||||
Sizzle itself is triple-licensed under MIT, GNU GPL v2 and BSD license.
|
||||
|
||||
The ZNC project uses Sizzle under the GNU GPL v2 license.
|
||||
|
||||
You may find the license text at
|
||||
https://github.com/jquery/sizzle/blob/master/LICENSE
|
||||
|
||||
jQuery.PoshyTip License
|
||||
-----------------------
|
||||
|
||||
jQuery.Poshy Tip is dual licensed under the MIT and GPL licenses.
|
||||
@@ -1,39 +0,0 @@
|
||||
The Theme "ZNC-ATION" for "ZNC - Advanced IRC Bouncer"
|
||||
uses icons from the Nuvola Icons Set by David Vignoni (http://icon-king.com).
|
||||
|
||||
Nuvola Icons Set License - GNU LGPL v2.1 and v3
|
||||
-------------------------------------------------
|
||||
This library is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU Lesser General Public License as
|
||||
published by the Free Software Foundation; either version 2.1 of
|
||||
the License, or (at your option) any later version.
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but without any warranty; without even the implied warranty of
|
||||
merchantability or fitness for a particular purpose.
|
||||
See version 2.1 and version 3 of the GNU Lesser General Public
|
||||
License for more details.
|
||||
|
||||
The ZNC project uses the Nuvola Icons Set under the
|
||||
GNU LGPL v2.1 license. See file "LGPL-2.1-license.txt" for
|
||||
the full license text.
|
||||
|
||||
Only a selected set of icons is used.
|
||||
Files are renamed, due to the length of original filenames.
|
||||
|
||||
Our Filename | Original Nuvola Icon Set Filename
|
||||
----------------|----------------------------------
|
||||
key.png | Nuvola_apps_password
|
||||
gears.png | Nuvola_apps_kcmsystem
|
||||
error.png | Nuvola_apps_error
|
||||
user.png | Nuvola_apps_personal
|
||||
|
||||
Icon Set Overview
|
||||
-----------------
|
||||
http://commons.wikimedia.org/wiki/Nuvola/all
|
||||
|
||||
How to get more icons
|
||||
---------------------
|
||||
|
||||
Use the following link and save the image.
|
||||
http://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Nuvola_devices_blockdevice.png/32px-Nuvola_devices_blockdevice.png
|
||||
You might adjust the pixel size in the link to 24px.
|
||||
@@ -1,61 +0,0 @@
|
||||
/* CSS Stylesheet for jQuery PoshyTip */
|
||||
.tip-yellowsimple {
|
||||
z-index:1000;
|
||||
text-align:left;
|
||||
border:1px solid #c7bf93;
|
||||
border-radius:4px;
|
||||
-moz-border-radius:4px;
|
||||
-webkit-border-radius:4px;
|
||||
padding:6px 8px;
|
||||
min-width:50px;
|
||||
max-width:300px;
|
||||
color:#000;
|
||||
background-color:#fff9c9;
|
||||
/**
|
||||
* - If you set a background-image, border/padding/background-color will be ingnored.
|
||||
* You can set any padding to .tip-inner instead if you need.
|
||||
* - If you want a tiled background-image and border/padding for the tip,
|
||||
* set the background-image to .tip-inner instead.
|
||||
*/
|
||||
}
|
||||
.tip-yellowsimple .tip-inner {
|
||||
font:12px/16px arial,helvetica,sans-serif;
|
||||
}
|
||||
|
||||
/* Configure an arrow image - the script will automatically position it on the correct side of the tip */
|
||||
.tip-yellowsimple .tip-arrow-top {
|
||||
margin-top:-6px;
|
||||
margin-left:-5px; /* approx. half the width to center it */
|
||||
top:0;
|
||||
left:50%;
|
||||
width:9px;
|
||||
height:6px;
|
||||
background:url(../img/tip-yellowsimple_arrows.gif) no-repeat;
|
||||
}
|
||||
.tip-yellowsimple .tip-arrow-right {
|
||||
margin-top:-4px; /* approx. half the height to center it */
|
||||
margin-left:0;
|
||||
top:50%;
|
||||
left:100%;
|
||||
width:6px;
|
||||
height:9px;
|
||||
background:url(../img/tip-yellowsimple_arrows.gif) no-repeat -9px 0;
|
||||
}
|
||||
.tip-yellowsimple .tip-arrow-bottom {
|
||||
margin-top:0;
|
||||
margin-left:-5px; /* approx. half the width to center it */
|
||||
top:100%;
|
||||
left:50%;
|
||||
width:9px;
|
||||
height:6px;
|
||||
background:url(../img/tip-yellowsimple_arrows.gif) no-repeat -18px 0;
|
||||
}
|
||||
.tip-yellowsimple .tip-arrow-left {
|
||||
margin-top:-4px; /* approx. half the height to center it */
|
||||
margin-left:-6px;
|
||||
top:50%;
|
||||
left:0;
|
||||
width:6px;
|
||||
height:9px;
|
||||
background:url(../img/tip-yellowsimple_arrows.gif) no-repeat -27px 0;
|
||||
}
|
||||
@@ -1,530 +0,0 @@
|
||||
/* reset */
|
||||
* {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #DDDDDD;
|
||||
color: #333333;
|
||||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
|
||||
font-size: 13px;
|
||||
font-weight: normal;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
/* anchors */
|
||||
a, a:link, a:active, a:visited, a:focus {
|
||||
color: #00008B;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a:hover {color: red} /* mouse over link */
|
||||
|
||||
#wrapper {
|
||||
width: 960px;
|
||||
margin: 20px auto;
|
||||
border: 1px solid #BABABA;
|
||||
min-height: 450px;
|
||||
/* box-shadow */
|
||||
-webkit-box-shadow: 1px 1px 2px #ccc;
|
||||
-moz-box-shadow: 1px 1px 2px #ccc;
|
||||
box-shadow: 1px 1px 2px #ccc;
|
||||
}
|
||||
|
||||
.errorbar {
|
||||
background-color: #FFBABA;
|
||||
background-position: 10px center;
|
||||
background-repeat: no-repeat;
|
||||
border: 2px double #C50A1F;
|
||||
color: #D8000C;
|
||||
float: left;
|
||||
margin: 10px 0;
|
||||
padding: 15px 10px 15px 50px;
|
||||
width: 64%;
|
||||
margin-left: 10px;
|
||||
background-image: url('/pub/img/error.png');
|
||||
}
|
||||
|
||||
#main {
|
||||
background-color: #F8F8F8;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
aside {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
#banner_top {
|
||||
background-color: #B8B8B8;
|
||||
}
|
||||
|
||||
.zncversion
|
||||
{
|
||||
padding-right: 30px;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
.zncversion a:hover {
|
||||
|
||||
color: white;
|
||||
}
|
||||
|
||||
.zncversion a, .zncversion a:link, .zncversion a:active, .zncversion a:visited, .zncversion a:focus {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
#breadcrumb {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
border-bottom: 1px solid #CCCCCC;
|
||||
/* 2/3 of the main content width */
|
||||
width: 67%;
|
||||
margin-bottom: 15px;
|
||||
padding: 0 0 3px 1px;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 67%;
|
||||
}
|
||||
|
||||
/* raquo vertical alignment in breadcrumb */
|
||||
.raquo {
|
||||
font-size: large;
|
||||
font-weight: normal;
|
||||
line-height: 18px;
|
||||
margin-left: 3px;
|
||||
margin-right: 3px;
|
||||
position: relative;
|
||||
top: -3px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* tables */
|
||||
table {
|
||||
font-size: 14px;
|
||||
}
|
||||
thead td, th {
|
||||
background-color: #BEBEBE;
|
||||
}
|
||||
|
||||
tbody td {
|
||||
background-color: #E0E0E0;
|
||||
}
|
||||
|
||||
td, th {
|
||||
min-width: 60px;
|
||||
padding: 4px 12px;
|
||||
}
|
||||
|
||||
tr.evenrow td {
|
||||
background-color: #D3D3D3;
|
||||
}
|
||||
/* sections */
|
||||
.section {
|
||||
border: 1px solid #CCCCCC;
|
||||
border-radius: 3px 3px 3px 3px;
|
||||
padding: 10px;
|
||||
margin-bottom: 10px;
|
||||
padding-top: 5px;
|
||||
background-color: #EDEDED;
|
||||
width: 100%; /* of main content */
|
||||
/* box-shadow */
|
||||
-webkit-box-shadow: 1px 1px px #fff; /* inset */
|
||||
-moz-box-shadow: 1px 1px px #fff;
|
||||
box-shadow: 1px 1px px #fff;
|
||||
}
|
||||
|
||||
/* formelements */
|
||||
.sectionbody input, textarea, select {
|
||||
border: 1px solid #CCCCCC;
|
||||
font-family: Tahoma,sans-serif;
|
||||
font-size: 14px;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
.subsection { /* groups a div inputlabel (label) and formelement */
|
||||
display: table;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.checkboxandlabel {
|
||||
display: inline-block;
|
||||
width: 150px;
|
||||
margin-right: 50px;
|
||||
}
|
||||
|
||||
.subsection .inputlabel {
|
||||
text-align: left;
|
||||
width: 150px; /* table cell size */
|
||||
display: table-cell; /* input label is displayed as a table cell */
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
input {
|
||||
padding: 3px;
|
||||
width: 80%;
|
||||
border: 1px solid #999999;
|
||||
}
|
||||
|
||||
input[type=checkbox],
|
||||
input[type=radio]
|
||||
{
|
||||
margin: 2px 5px 2px 2px; /* 2nd value is distance between checkbox/radio and labeling text */
|
||||
border: 0px;
|
||||
width: 10%;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
/* formelement focus */
|
||||
input:focus, textarea:focus, select:focus {
|
||||
border: 1px solid #333333;
|
||||
/* the shadow color used is the tooltip border color */
|
||||
/* box-shadow */
|
||||
-webkit-box-shadow: 0px 0px 2px #C7BF93;
|
||||
-moz-box-shadow: 0px 0px 2px #C7BF93;
|
||||
box-shadow: 0px 0px 2px #C7BF93;
|
||||
}
|
||||
|
||||
/* h */
|
||||
h1 {
|
||||
/* transition */
|
||||
-webkit-transition: all 0.2s linear;
|
||||
-moz-transition: all 0.2s linear;
|
||||
-ms-transition: all 0.2s linear;
|
||||
-o-transition: all 0.2s linear;
|
||||
transition: all 0.2s linear;
|
||||
/* color: #000000; black znc branding inset */
|
||||
color: #F8F8F8; /* remove black color, replaced with background col */
|
||||
font-size: 20px;
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 30px rgba(255, 255, 255, 0.125);
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 0 -11px 10px;
|
||||
padding-bottom: 4px;
|
||||
padding-left: 11px;
|
||||
border-bottom: 1px solid #DDDDDD;
|
||||
/* text-shadow */
|
||||
text-shadow: 1px 1px 0px #ffffff;
|
||||
filter: dropshadow(color=#ffffff, offx=1, offy=1);
|
||||
}
|
||||
|
||||
#banner-top {
|
||||
background-color: #999999;
|
||||
}
|
||||
|
||||
td.mod_name {
|
||||
font-size: 13px;
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
/* box */
|
||||
.box {
|
||||
background: none repeat scroll 0 0 #ffffff;
|
||||
border: 5px double #DDDDDD;
|
||||
margin: 0 0 20px;
|
||||
padding: 0;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.heading {
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
height: 20px;
|
||||
margin: 0;
|
||||
padding: 5px 10px;
|
||||
width: 50%;
|
||||
/* text-shadow */
|
||||
text-shadow: 1px 1px 1px #000000;
|
||||
filter: dropshadow(color=#00000, offx=1, offy=1);
|
||||
}
|
||||
|
||||
/* icon in box heading */
|
||||
.heading img {
|
||||
position: relative;
|
||||
top: -3px;
|
||||
vertical-align: text-top;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
.box-inner-content {
|
||||
padding: 10px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* rounded edges */
|
||||
.rounded-top-right {
|
||||
border-radius: 0 20px 0 0;
|
||||
}
|
||||
.rounded-bottom-right {
|
||||
border-radius: 0 0 20px 0;
|
||||
}
|
||||
/* universal background-colors, they are used on the box headings */
|
||||
.blue {
|
||||
background-color: #00A6FC;
|
||||
border: 1px inset #00A6FC;
|
||||
color: #ffffff;
|
||||
}
|
||||
.red {
|
||||
background-color: #E91C21;
|
||||
border: 1px inset #E91C21;
|
||||
color: #ffffff;
|
||||
}
|
||||
.#ffffff {
|
||||
background-color: #E9E9E9;
|
||||
border: 1px inset #E9E9E9;
|
||||
color: #000000;
|
||||
}
|
||||
.black {
|
||||
background-color: #141414;
|
||||
border: 1px inset #141414;
|
||||
color: #333333;
|
||||
}
|
||||
.green {
|
||||
background-color: #7FAE00;
|
||||
border: 1px inset #7FAE00;
|
||||
color: #ffffff;
|
||||
}
|
||||
.yellow {
|
||||
background-color: #fcd400;
|
||||
border: 1px inset #fcd400;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
/* login + logout boxes */
|
||||
.infobar {
|
||||
background-color: #CCCCCC;
|
||||
}
|
||||
|
||||
#infobar_ident, .logoutbox, .loginbox {
|
||||
font-size: 14px;
|
||||
display: block;
|
||||
padding: 4px;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.user_name {
|
||||
color: #000000;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
input.full, textarea.full, .full input, .full textarea {
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
input.half, textarea.half, .half input, .half textarea {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
input.third, textarea.third, .third input, .third textarea {
|
||||
width: 33%;
|
||||
}
|
||||
|
||||
input.twothird, textarea.twothird, .twothird input, .twothird textarea {
|
||||
width: 80%; /* raised to 82 */
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
/* gradient */
|
||||
background: #e1001a; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #e1001a 0%, #c50a1f 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e1001a), color-stop(100%,#c50a1f)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #e1001a 0%,#c50a1f 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #e1001a 0%,#c50a1f 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(top, #e1001a 0%,#c50a1f 100%); /* IE10+ */
|
||||
background: linear-gradient(top, #e1001a 0%,#c50a1f 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e1001a', endColorstr='#c50a1f',GradientType=0 ); /* IE6-9 */
|
||||
/* box-shadow */
|
||||
-webkit-box-shadow: 1px 0 0 #C50A1F, -1px 0 0 #C50A1F, 0 1px 0 #C50A1F, 0 -1px 0 #C50A1F, 0 5px 10px -5px #666666;
|
||||
-moz-box-shadow: 1px 0 0 #C50A1F, -1px 0 0 #C50A1F, 0 1px 0 #C50A1F, 0 -1px 0 #C50A1F, 0 5px 10px -5px #666666;
|
||||
box-shadow: 1px 0 0 #C50A1F, -1px 0 0 #C50A1F, 0 1px 0 #C50A1F, 0 -1px 0 #C50A1F, 0 5px 10px -5px #666666;
|
||||
/* text-shadow */
|
||||
text-shadow: 1px 1px 3px #E35061;
|
||||
filter: dropshadow(color=#E35061, offx=1, offy=1);
|
||||
border: 1px double #E35061;
|
||||
border-radius: 0 0 0 0;
|
||||
color: #FFFFFF;
|
||||
cursor: pointer;
|
||||
padding: 0px 25px;
|
||||
width: auto;
|
||||
heigth: 15px;
|
||||
font-weight: bold;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
input[type="submit"]:hover {
|
||||
background: none repeat scroll 0 0 #C50A1F;
|
||||
text-shadow: none;
|
||||
}
|
||||
|
||||
div.submitline {
|
||||
line-heigth: 15px;
|
||||
}
|
||||
|
||||
/* header banner - 3d css ribbon */
|
||||
header {
|
||||
margin: 0px auto;
|
||||
width: 980px;
|
||||
}
|
||||
|
||||
.ribbon {
|
||||
float: left;
|
||||
position: relative;
|
||||
top: 30px;
|
||||
width: 992px;
|
||||
left: -6px;
|
||||
height: 50px;
|
||||
z-index: 100; /* the stack order: foreground */
|
||||
/* gradient - colors used: red high contrast ( #E1001A, #C50A1F ) - bit darker: #BF3030, #B50A0A; */
|
||||
background: #ca1c21; /* Old browsers */
|
||||
background: -moz-linear-gradient(top, #ca1c21 0%, #b50a0a 100%); /* FF3.6+ */
|
||||
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ca1c21), color-stop(100%,#b50a0a)); /* Chrome,Safari4+ */
|
||||
background: -webkit-linear-gradient(top, #ca1c21 0%,#b50a0a 100%); /* Chrome10+,Safari5.1+ */
|
||||
background: -o-linear-gradient(top, #ca1c21 0%,#b50a0a 100%); /* Opera 11.10+ */
|
||||
background: -ms-linear-gradient(top, #ca1c21 0%,#b50a0a 100%); /* IE10+ */
|
||||
background: linear-gradient(top, #ca1c21 0%,#b50a0a 100%); /* W3C */
|
||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ca1c21', endColorstr='#b50a0a',GradientType=0 ); /* IE6-9 */
|
||||
/* box shadow */
|
||||
-moz-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
|
||||
-khtml-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
|
||||
-webkit-box-shadow: 0px 0px 4px rgba(0,0,0,0.55);
|
||||
}
|
||||
|
||||
.ribbon h1 {
|
||||
background: none repeat scroll 0 0 transparent;
|
||||
font-size: 30px;
|
||||
padding-left: 35px;
|
||||
padding-top: 6px;
|
||||
text-align: left;
|
||||
/* black text 1px inset, kind of a relief look */
|
||||
/*text-shadow: 1px 1px 0 #E1001A, -1px -1px 0 #C50A1F;*/
|
||||
/* white inset, on request */
|
||||
text-shadow: 1px 1px 0 #111111, -1px -1px 0 #777777;
|
||||
width: auto;
|
||||
line-height: 37px;
|
||||
}
|
||||
|
||||
.ribbon small {
|
||||
font-size: 40%;
|
||||
}
|
||||
|
||||
.triangle-left {
|
||||
border-color: transparent #8B0000 transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 15px;
|
||||
height: 0;
|
||||
left: -21px;
|
||||
position: relative;
|
||||
top: 65px;
|
||||
width: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.triangle-right {
|
||||
border-color: transparent transparent transparent #8B0000;
|
||||
border-style: solid;
|
||||
border-width: 15px;
|
||||
height: 0;
|
||||
left: 971px;
|
||||
position: relative;
|
||||
top: 35px;
|
||||
width: 0;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
/* fake content box above the ribbon */
|
||||
.content-above-ribbon {
|
||||
background-color: #F8F8F8;
|
||||
border: 1px solid #BABABA;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
top: 31px;
|
||||
width: 960px;
|
||||
height: 20px;
|
||||
/* box-shadow */
|
||||
-webkit-box-shadow: 1px 1px 2px #ccc;
|
||||
-moz-box-shadow: 1px 1px 2px #ccc;
|
||||
box-shadow: 1px 1px 2px #ccc;
|
||||
}
|
||||
|
||||
/* float left and right */
|
||||
.float-left {
|
||||
float:left;
|
||||
}
|
||||
.float-right {
|
||||
float:right;
|
||||
}
|
||||
/* paddings */
|
||||
.pad-5 {
|
||||
padding: 5px;
|
||||
}
|
||||
.pad-10 {
|
||||
padding: 10px;
|
||||
}
|
||||
/* margins */
|
||||
.marg-5 {
|
||||
margin: 5px;
|
||||
}
|
||||
.marg-10 {
|
||||
margin: 10px;
|
||||
}
|
||||
.clearfix {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* ul/li - list styling */
|
||||
ul {
|
||||
font-size: 14px;
|
||||
list-style-type: none; /* remove bullets */
|
||||
margin-left: 20px; /* indention */
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 3px 0; /* space around list items */
|
||||
}
|
||||
|
||||
ul.nav li.active:before {
|
||||
color: red;
|
||||
content: "» ";
|
||||
font-weight: bold;
|
||||
/* element is indented by size of content, so subtract width of content */
|
||||
/* add width of padding-right */
|
||||
margin-left: -16px;
|
||||
padding-right: 4px; /* distance between raqou and element */
|
||||
/* vertical-align: middle; didnt work exact (2px off :( ), workaround: */
|
||||
top: -2px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
ul.nav li .title {
|
||||
font-weight: bold;
|
||||
}
|
||||
ul.nav li .modtitle { /* title of a module */
|
||||
}
|
||||
|
||||
ul.nav li .subitem {
|
||||
padding-left: 1em;
|
||||
}
|
||||
|
||||
ul a:hover:before, ul a:focus:before {
|
||||
content: "» ";
|
||||
color: #000000;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
/* element is indented by size of content, so subtract width of content */
|
||||
/* add width of padding-right */
|
||||
margin-left: -16px;
|
||||
padding-right: 4px; /* distance between raqou and element */
|
||||
/* vertical-align: middle; didnt work exact (2px off :( ), workaround: */
|
||||
top: -2px;
|
||||
position: relative;
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 107 B |
Binary file not shown.
|
Before Width: | Height: | Size: 1.9 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,19 +0,0 @@
|
||||
/*
|
||||
* ZNC Javascript - http://znc.in
|
||||
*/
|
||||
$(document).ready(function()
|
||||
{
|
||||
/**
|
||||
* jQ.Poshytip
|
||||
* This binds the tooltip to input formelements
|
||||
* and uses "title" attr as source for tooltip text.
|
||||
*/
|
||||
$('input[title]').poshytip({
|
||||
className: 'tip-yellowsimple',
|
||||
showOn: 'focus',
|
||||
alignTo: 'target',
|
||||
alignX: 'inner-left',
|
||||
offsetX: 0,
|
||||
offsetY: 5
|
||||
});
|
||||
})
|
||||
@@ -1,11 +0,0 @@
|
||||
<header>
|
||||
<div class="content-above-ribbon"> </div>
|
||||
<div class="ribbon">
|
||||
<h1>ZNC
|
||||
<small>Advanced IRC Bouncer</small>
|
||||
<small class="zncversion float-right"><? VAR Tag ?></small></small>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="triangle-left"></div>
|
||||
<div class="triangle-right"></div>
|
||||
</header>
|
||||
@@ -1,72 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<? INC Options.tmpl ?>
|
||||
<? ADDROW CSSLoop HREF=/pub/css/znc-ation.css ?>
|
||||
<? ADDROW CSSLoop HREF=/pub/css/tip-yellowsimple.css ?>
|
||||
<? ADDROW CSSLoop HREF=/pub/css/jquery.checkbox.css ?>
|
||||
<? ADDROW JSLoop HREF=/pub/js/jquery-1.7.1.min.js ?>
|
||||
<? ADDROW JSLoop HREF=/pub/js/jquery.poshytip.min.js ?>
|
||||
<? ADDROW JSLoop HREF=/pub/js/jquery.checkbox.min.js ?>
|
||||
<? ADDROW JSLoop HREF=/pub/js/znc.js ?>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>ZNC - <? VAR Title DEFAULT="Web Frontend" ?></title>
|
||||
<? LOOP CSSLoop ?>
|
||||
<?IF HREF?><link rel="stylesheet" href="<? VAR HREF ?>" /><?ENDIF?>
|
||||
<?ENDLOOP?>
|
||||
<link rel="shortcut icon" href="/pub/img/favicon.ico" />
|
||||
|
||||
<? LOOP JSLoop ?>
|
||||
<?IF HREF?><script type="text/javascript" src="<? VAR HREF ?>"></script><?ENDIF?>
|
||||
<?ENDLOOP?>
|
||||
|
||||
<? INC ExtraHeader.tmpl ?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- Banner -->
|
||||
<? INC Banner.tmpl ?>
|
||||
<!-- !Banner -->
|
||||
|
||||
<!-- Wrapper -->
|
||||
<div id="wrapper">
|
||||
|
||||
<!-- MessageBar -->
|
||||
<? INC MessageBar.tmpl ?>
|
||||
<!-- !MessageBar -->
|
||||
|
||||
<!-- InfoBar -->
|
||||
<? INC InfoBar.tmpl ?>
|
||||
<!-- !InfoBar -->
|
||||
|
||||
<? IF LoggedIn ?>
|
||||
<? INC Menu.tmpl ?>
|
||||
<? ENDIF ?>
|
||||
|
||||
<!-- Main -->
|
||||
<div id="main">
|
||||
|
||||
<!-- Content -->
|
||||
<div id="content">
|
||||
|
||||
<!-- BreadCrumbs -->
|
||||
<? INC BreadCrumbs.tmpl ?>
|
||||
<!-- !BreadCrumbs -->
|
||||
|
||||
<div id="subpage">
|
||||
|
||||
<? REM ?>
|
||||
In your subpage (module page or static page) you'll probably want to do something like this...
|
||||
|
||||
<? INC Header.tmpl ?>
|
||||
This is my <b>super</b> cool sub page!
|
||||
<? INC Footer.tmpl ?>
|
||||
|
||||
If you'd like to add your own local css file to be included after the global main.css,
|
||||
you can make your own Header.tmpl like so...
|
||||
|
||||
<? ADDROW CSSLoop HREF=/pub/your_local.css ?>
|
||||
<? ADDROW JSLoop HREF=/pub/your_local.js ?>
|
||||
<? INC BaseHeader.tmpl ?>
|
||||
|
||||
<? ENDREM ?>
|
||||
@@ -1,5 +0,0 @@
|
||||
<div id="breadcrumb">ZNC
|
||||
<? IF ModName ?><span class="raquo">»</span> Module <? VAR ModName ?><? ENDIF ?>
|
||||
<? REM ?><? IF PageName ?><span class="raquo">»</span> <? VAR PageName ?><? ENDIF ?><? ENDREM ?>
|
||||
<? IF Title && Title != *ModName ?><span class="raquo">»</span> <? VAR Title ?><? ENDIF ?>
|
||||
</div>
|
||||
@@ -1,18 +0,0 @@
|
||||
</div>
|
||||
<!-- !SubPage -->
|
||||
</div>
|
||||
<!-- !Content -->
|
||||
</div>
|
||||
<!-- !Main -->
|
||||
|
||||
<!-- FooterBar -->
|
||||
<footer>
|
||||
<? INC FooterTag.tmpl ?>
|
||||
</footer>
|
||||
<!-- !FooterBar -->
|
||||
|
||||
</div>
|
||||
<!-- !Wrapper -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,22 +0,0 @@
|
||||
<? REM ?>
|
||||
This REM block disables the loading of the _global_.css intentionally.
|
||||
<? ADDROW CSSLoop HREF=/pub/_default_.css ?>
|
||||
<? ENDREM ?>
|
||||
<? INC BaseHeader.tmpl ?>
|
||||
<? REM ?>
|
||||
|
||||
This is a wrapper file which simply includes BaseHeader.tmpl so that new skins can make
|
||||
a Header.tmpl similar to...
|
||||
|
||||
<? ADDROW CSSLoop HREF=/pub/myskin.css ?>
|
||||
<? INC BaseHeader.tmpl ?>
|
||||
|
||||
...this way a skin can base itself off of the same html as the default skin but still add
|
||||
custom css/js
|
||||
|
||||
@todo In the future I'd like to support something like <? INC File.tmpl SUPER ?> or even
|
||||
just do a current file vs inc'd file comparison to make sure they aren't the same.
|
||||
This way we can <? INC Header.tmpl ?> from the "derived" Header.tmpl and not cause
|
||||
an recursive loop.
|
||||
|
||||
<? ENDREM ?>
|
||||
@@ -1,23 +0,0 @@
|
||||
<div class="box infobar marg-10 float-right">
|
||||
|
||||
<div class="heading green rounded-bottom-right auto-width">
|
||||
<? IF LoggedIn ?>
|
||||
<img src="/pub/img/user.png" alt="user.png">
|
||||
<? VAR SessionUser DEFAULT="-Guest-" ?>
|
||||
<? ELSE ?>
|
||||
<img src="/pub/img/key.png" alt="key.png">
|
||||
Login
|
||||
<? ENDIF ?>
|
||||
</div>
|
||||
|
||||
<div class="box-inner-content">
|
||||
|
||||
<? IF LoggedIn ?>
|
||||
<span id="infobar_ident">From IP <? VAR SessionIP ?></span>
|
||||
<? ENDIF ?>
|
||||
|
||||
<? INC LoginBar.tmpl ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -1,24 +0,0 @@
|
||||
<? IF LoggedIn ?>
|
||||
<span class="logoutbox">
|
||||
<a href="/logout">Logout</a>
|
||||
</span>
|
||||
<? ELSE IF !ModName && PageName == "login" ?>
|
||||
<span class="logoutbox"> </span>
|
||||
<? ELSE ?>
|
||||
<form action="/login" method="post">
|
||||
<input type="hidden" name="submitted" value="1" />
|
||||
<div class="loginbox">
|
||||
<p>
|
||||
<label for="user">Username</label>
|
||||
<input name="user" id="user" type="text" required
|
||||
title="Please enter your username." />
|
||||
</p>
|
||||
<p>
|
||||
<label for="password">Password</label>
|
||||
<input name="pass" id="password" type="password" required
|
||||
title="Enter the password for the username." />
|
||||
</p>
|
||||
<input type="submit" class="submit" value="Login" />
|
||||
</div>
|
||||
</form>
|
||||
<? ENDIF ?>
|
||||
@@ -1,72 +0,0 @@
|
||||
<menu class="box rounded-top-right marg-10 float-right clearfix">
|
||||
|
||||
<div class="heading blue rounded-bottom-right">
|
||||
<img src="/pub/img/gears.png" alt="gears.png">
|
||||
Menu
|
||||
</div>
|
||||
|
||||
<div class="box-inner-content">
|
||||
<ul class="nav">
|
||||
<li class="topitem<? IF !ModName && PageName == "index" ?> active<? ENDIF ?>">
|
||||
<a href="/">Home</a>
|
||||
</li>
|
||||
|
||||
<? IF GlobalModLoop ?>
|
||||
<li class="topitem parent">
|
||||
<span class="title">Global Modules</span>
|
||||
<ul>
|
||||
<? LOOP GlobalModLoop SORTASC=ModName ?>
|
||||
<li class="modtitle<? IF Active ?> active<? ENDIF ?>">
|
||||
<a href="<? VAR ModPath ?>"><? VAR Title ?></a>
|
||||
</li>
|
||||
<? LOOP SubPageLoop ?>
|
||||
<li class="subitem<? IF Active ?> active<? ENDIF ?>">
|
||||
<a href="<? VAR ModPath ?>/<? VAR PageName ?><? IF Params ?>?<? VAR Params ?><? ENDIF ?>"><? VAR Title ?></a>
|
||||
</li>
|
||||
<? ENDLOOP ?>
|
||||
<? ENDLOOP ?>
|
||||
</ul>
|
||||
</li>
|
||||
<? ENDIF ?>
|
||||
|
||||
<? IF UserModLoop ?>
|
||||
<li class="topitem parent">
|
||||
<span class="title">User Modules</span>
|
||||
<ul>
|
||||
<? LOOP UserModLoop SORTASC=ModName ?>
|
||||
<li class="modtitle<? IF Active ?> active<? ENDIF ?>">
|
||||
<a href="<? VAR ModPath ?>"><? VAR Title ?></a>
|
||||
</li>
|
||||
<? LOOP SubPageLoop ?>
|
||||
<li class="subitem<? IF Active ?> active<? ENDIF ?>">
|
||||
<a href="<? VAR ModPath ?>/<? VAR PageName ?><? IF Params ?>?<? VAR Params ?><? ENDIF ?>"><? VAR Title ?></a>
|
||||
</li>
|
||||
<? ENDLOOP ?>
|
||||
<? ENDLOOP ?>
|
||||
</ul>
|
||||
</li>
|
||||
<? ENDIF ?>
|
||||
|
||||
<? IF NetworkModLoop ?>
|
||||
<? LOOP NetworkModLoop SORTASC=NetworkName ?>
|
||||
<? IF ModLoop ?>
|
||||
<li class="topitem parent"><span class="title">Network Modules (<? VAR NetworkName ?>)</span>
|
||||
<ul>
|
||||
<? LOOP ModLoop SORTASC=ModName ?>
|
||||
<li class="modtitle<? IF Active ?> active<? ENDIF ?>">
|
||||
<a href="<? VAR ModPath ?>"><? VAR Title ?></a>
|
||||
</li>
|
||||
<? LOOP SubPageLoop ?>
|
||||
<li class="subitem<? IF Active ?> active<? ENDIF ?>">
|
||||
<a href="<? VAR ModPath ?>/<? VAR PageName ?><? IF Params ?>?<? VAR Params ?><? ENDIF ?>"><? VAR Title ?></a>
|
||||
</li>
|
||||
<? ENDLOOP ?>
|
||||
<? ENDLOOP ?>
|
||||
</ul>
|
||||
</li>
|
||||
<? ENDIF ?>
|
||||
<? ENDLOOP ?>
|
||||
<? ENDIF ?>
|
||||
</ul>
|
||||
</div>
|
||||
</menu>
|
||||
Reference in New Issue
Block a user