summaryrefslogtreecommitdiffstats
path: root/source/WebAdmin.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-26 19:43:34 +0200
committermadmaxoft <github@xoft.cz>2013-10-26 19:43:34 +0200
commit52f88b9595f28c3c14ab1868dbed1eba1093c078 (patch)
treec8e9a5174269258e5a5caa9a1a8d22fe7475a3f7 /source/WebAdmin.cpp
parentcMonster: Improved doxycomments. (diff)
parentAPIDump: Documented cIniFile. (diff)
downloadcuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar.gz
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar.bz2
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar.lz
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar.xz
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar.zst
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.zip
Diffstat (limited to 'source/WebAdmin.cpp')
-rw-r--r--source/WebAdmin.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/WebAdmin.cpp b/source/WebAdmin.cpp
index 882969746..8c95e4e21 100644
--- a/source/WebAdmin.cpp
+++ b/source/WebAdmin.cpp
@@ -44,8 +44,7 @@ public:
cWebAdmin::cWebAdmin(void) :
m_IsInitialized(false),
- m_TemplateScript("<webadmin_template>"),
- m_IniFile("webadmin.ini")
+ m_TemplateScript("<webadmin_template>")
{
}
@@ -86,19 +85,19 @@ void cWebAdmin::RemovePlugin( cWebPlugin * a_Plugin )
bool cWebAdmin::Init(void)
{
- if (!m_IniFile.ReadFile())
+ if (!m_IniFile.ReadFile("webadmin.ini"))
{
return false;
}
- LOG("Initialising WebAdmin...");
-
if (!m_IniFile.GetValueSetB("WebAdmin", "Enabled", true))
{
// WebAdmin is disabled, bail out faking a success
return true;
}
+ LOG("Initialising WebAdmin...");
+
AString PortsIPv4 = m_IniFile.GetValueSet("WebAdmin", "Port", "8080");
AString PortsIPv6 = m_IniFile.GetValueSet("WebAdmin", "PortsIPv6", "");