diff options
author | Lukas Pioch <lukas@zgow.de> | 2017-05-01 10:31:18 +0200 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2017-05-01 11:10:21 +0200 |
commit | 74e6f419589607f143a8b3e2d6fae13eab62fea1 (patch) | |
tree | 2ab696e88e289c3408872791cf3b59a5eb278041 /src/WebAdmin.h | |
parent | APIDoc: Replaced incorrect param cMonster with eMonsterType (diff) | |
download | cuberite-74e6f419589607f143a8b3e2d6fae13eab62fea1.tar cuberite-74e6f419589607f143a8b3e2d6fae13eab62fea1.tar.gz cuberite-74e6f419589607f143a8b3e2d6fae13eab62fea1.tar.bz2 cuberite-74e6f419589607f143a8b3e2d6fae13eab62fea1.tar.lz cuberite-74e6f419589607f143a8b3e2d6fae13eab62fea1.tar.xz cuberite-74e6f419589607f143a8b3e2d6fae13eab62fea1.tar.zst cuberite-74e6f419589607f143a8b3e2d6fae13eab62fea1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/WebAdmin.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/WebAdmin.h b/src/WebAdmin.h index b76ca6df8..50a0487b0 100644 --- a/src/WebAdmin.h +++ b/src/WebAdmin.h @@ -192,6 +192,16 @@ public: /** Returns the list of ports on which the webadmin is configured to listen. */ AString GetPorts(void) const { return StringsConcat(m_Ports, ','); } + + /** Returns the prefix needed for making a link point to the webadmin root from the given URL ("../../../webadmin"-style). */ + static AString GetBaseURL(const AString & a_URL); + + /** Returns the content type from the file extension. + If the extension isn't in the list, the function returns an empty string. */ + static AString GetContentTypeFromFileExt(const AString & a_FileExtension); + + /** Escapes text passed into it, so it can be embedded into html. */ + static AString GetHTMLEscapedString(const AString & a_Input); // tolua_end /** Adds a new WebTab handler. @@ -212,26 +222,13 @@ public: Exported in ManualBindings.cpp */ bool DelWebTab(const AString & a_UrlPath); - /** Escapes text passed into it, so it can be embedded into html. - Exported to Lua in ManualBindings.cpp. */ - static AString GetHTMLEscapedString(const AString & a_Input); - /** Escapes the string for use in an URL Exported to Lua in ManualBindings.cpp. */ static AString GetURLEncodedString(const AString & a_Input); - /** Returns the prefix needed for making a link point to the webadmin root from the given URL ("../../../webadmin"-style). - Exported to Lua in ManualBindings.cpp. */ - static AString GetBaseURL(const AString & a_URL); - /** Returns the prefix needed for making a link point to the webadmin root from the given URL ("../../../webadmin"-style) */ static AString GetBaseURL(const AStringVector & a_URLSplit); - /** Returns the content type from the file extension. - If the extension isn't in the list, the function returns an empty string. - Exported to Lua in ManualBindings.cpp. */ - static AString GetContentTypeFromFileExt(const AString & a_FileExtension); - protected: /** Protects m_WebTabs, m_TemplateScript, m_LoginTemplate and m_IniFile against multithreaded access. */ |