summaryrefslogtreecommitdiffstats
path: root/source/WebAdmin.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-21 13:22:47 +0200
committermadmaxoft <github@xoft.cz>2013-10-21 13:22:47 +0200
commit5174d9cbd6acf116349a976430f1f3ae84bb7c82 (patch)
tree13699ead1cea7a45c636569a40f6ca4b9f759f87 /source/WebAdmin.h
parentAPIDump: Added link from cItem to the global ItemToString() et al. (diff)
downloadcuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar.gz
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar.bz2
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar.lz
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar.xz
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.tar.zst
cuberite-5174d9cbd6acf116349a976430f1f3ae84bb7c82.zip
Diffstat (limited to '')
-rw-r--r--source/WebAdmin.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/source/WebAdmin.h b/source/WebAdmin.h
index fbe6a6b4a..acd81ebfa 100644
--- a/source/WebAdmin.h
+++ b/source/WebAdmin.h
@@ -118,26 +118,25 @@ public:
void RemovePlugin( cWebPlugin* a_Plugin );
// TODO: Convert this to the auto-locking callback mechanism used for looping players in worlds and such
- PluginList GetPlugins() const { return m_Plugins; } // >> EXPORTED IN MANUALBINDINGS <<
+ PluginList GetPlugins() const { return m_Plugins; } // >> EXPORTED IN MANUALBINDINGS <<
// tolua_begin
- /// Returns the amount of currently used memory, in KiB, or -1 if it cannot be queried
- static int GetMemoryUsage(void);
-
- sWebAdminPage GetPage(const HTTPRequest& a_Request);
+ sWebAdminPage GetPage(const HTTPRequest & a_Request);
/// Returns the contents of the default page - the list of plugins and players
AString GetDefaultPage(void);
- 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)
+ AString GetBaseURL(const AString & a_URL);
- // Escapes text passed into it, so it can be embedded into html.
- AString GetHTMLEscapedString( const AString& a_Input );
+ /// Escapes text passed into it, so it can be embedded into html.
+ static AString GetHTMLEscapedString(const AString & a_Input);
// tolua_end
- AString GetBaseURL(const AStringVector& a_URLSplit);
+ /// Returns the prefix needed for making a link point to the webadmin root from the given URL ("../../../webadmin"-style)
+ AString GetBaseURL(const AStringVector& a_URLSplit);
protected:
/// Common base class for request body data handlers