diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-08 19:57:04 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-02-08 19:57:04 +0100 |
commit | a204e3325010fd7baa8f30a5b05e3ba8450a73c7 (patch) | |
tree | f2ce933d000a1294c67cb92ab300ffd2aa56a7f8 /source/cWebAdmin.cpp | |
parent | cPluginManager: slight cleanup (diff) | |
download | cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar.gz cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar.bz2 cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar.lz cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar.xz cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.tar.zst cuberite-a204e3325010fd7baa8f30a5b05e3ba8450a73c7.zip |
Diffstat (limited to 'source/cWebAdmin.cpp')
-rw-r--r-- | source/cWebAdmin.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/source/cWebAdmin.cpp b/source/cWebAdmin.cpp index efac32866..b33d28e16 100644 --- a/source/cWebAdmin.cpp +++ b/source/cWebAdmin.cpp @@ -232,11 +232,15 @@ void cWebAdmin::Request_Handler(webserver::http_request* r) #endif
// end mem usage
- ReplaceString( Template, std::string("{USERNAME}"), r->username_ );
- ReplaceString( Template, std::string("{MENU}"), Menu );
- ReplaceString( Template, std::string("{PLUGIN_NAME}"), FoundPlugin );
- ReplaceString( Template, std::string("{CONTENT}"), Content );
- ReplaceString( Template, std::string("{TITLE}"), "MCServer" );
+ ReplaceString( Template, "{USERNAME}", r->username_ );
+ ReplaceString( Template, "{MENU}", Menu );
+ ReplaceString( Template, "{PLUGIN_NAME}", FoundPlugin );
+ ReplaceString( Template, "{CONTENT}", Content );
+ ReplaceString( Template, "{TITLE}", "MCServer" );
+
+ AString NumChunks;
+ Printf(NumChunks, "%d", cRoot::Get()->GetTotalChunkCount());
+ ReplaceString(Template, "{NUMCHUNKS}", NumChunks);
r->answer_ = Template;
}
|