summaryrefslogtreecommitdiffstats
path: root/source/WebAdmin.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-25 11:15:44 +0200
committermadmaxoft <github@xoft.cz>2013-10-25 11:15:44 +0200
commit9e9198e0907d3d6fd353c683478007f418d86dd8 (patch)
tree9dd53b8f34532b135ae199e47a0e9e59d77a76f4 /source/WebAdmin.cpp
parentAPIDump: Documented cMonster. (diff)
downloadcuberite-9e9198e0907d3d6fd353c683478007f418d86dd8.tar
cuberite-9e9198e0907d3d6fd353c683478007f418d86dd8.tar.gz
cuberite-9e9198e0907d3d6fd353c683478007f418d86dd8.tar.bz2
cuberite-9e9198e0907d3d6fd353c683478007f418d86dd8.tar.lz
cuberite-9e9198e0907d3d6fd353c683478007f418d86dd8.tar.xz
cuberite-9e9198e0907d3d6fd353c683478007f418d86dd8.tar.zst
cuberite-9e9198e0907d3d6fd353c683478007f418d86dd8.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", "");