mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Deleted obsolete modules/webadmin dir, copied CSS files for ice & default to
webskins dir, made default the _default_ skin, moved dark-clouds to dark-clouds, added /skinfiles/ feature to base skins on each other (and not only on default). Next up: re-adding help texts that got lost during webadmin->webmods transition, making skins look nice again. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1868 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -555,6 +555,23 @@ CWebSock::EPageReqResult CWebSock::OnPageRequestInternal(const CString& sURI, CS
|
||||
return PrintTemplate("login", sPageRet);
|
||||
} else if (sURI.Left(5) == "/pub/") {
|
||||
return PrintStaticFile(sURI, sPageRet);
|
||||
} else if (sURI.Left(11) == "/skinfiles/") {
|
||||
CString sSkinName = sURI.substr(11);
|
||||
CString::size_type uPathStart = sSkinName.find("/");
|
||||
if (uPathStart != CString::npos) {
|
||||
CString sFilePath = sSkinName.substr(uPathStart + 1);
|
||||
sSkinName.erase(uPathStart);
|
||||
|
||||
m_Template.ClearPaths();
|
||||
m_Template.AppendPath(GetSkinPath(sSkinName) + "pub");
|
||||
|
||||
if (PrintFile(m_Template.ExpandFile(sFilePath))) {
|
||||
return PAGE_DONE;
|
||||
} else {
|
||||
return PAGE_NOTFOUND;
|
||||
}
|
||||
}
|
||||
return PAGE_NOTFOUND;
|
||||
} else if (sURI.Left(6) == "/mods/" || sURI.Left(10) == "/modfiles/") {
|
||||
ParsePath();
|
||||
// Make sure modules are treated as directories
|
||||
|
||||
Reference in New Issue
Block a user