@@ -53,6 +53,18 @@ cWebAdmin::cWebAdmin(void) :
|
||||
|
||||
|
||||
|
||||
cWebAdmin::~cWebAdmin()
|
||||
{
|
||||
if (m_IsInitialized)
|
||||
{
|
||||
LOG("Stopping WebAdmin...");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cWebAdmin::AddPlugin( cWebPlugin * a_Plugin )
|
||||
{
|
||||
m_Plugins.remove( a_Plugin );
|
||||
@@ -79,6 +91,8 @@ bool cWebAdmin::Init(void)
|
||||
return false;
|
||||
}
|
||||
|
||||
LOG("Initialising WebAdmin...");
|
||||
|
||||
if (!m_IniFile.GetValueSetB("WebAdmin", "Enabled", true))
|
||||
{
|
||||
// WebAdmin is disabled, bail out faking a success
|
||||
@@ -108,6 +122,8 @@ bool cWebAdmin::Start(void)
|
||||
return false;
|
||||
}
|
||||
|
||||
LOG("Starting WebAdmin...");
|
||||
|
||||
// Initialize the WebAdmin template script and load the file
|
||||
m_TemplateScript.Create();
|
||||
if (!m_TemplateScript.LoadFile(FILE_IO_PREFIX "webadmin/template.lua"))
|
||||
|
||||
Reference in New Issue
Block a user