1
0

If webadmin.ini doesn't exist, example one is written immediately.

This commit is contained in:
madmaxoft 2014-04-30 17:37:25 +02:00
parent f2b5790776
commit ab2dfb44fa

View File

@ -89,6 +89,7 @@ bool cWebAdmin::Init(void)
m_IniFile.AddHeaderComment(" Password format: Password=*password*; for example:"); m_IniFile.AddHeaderComment(" Password format: Password=*password*; for example:");
m_IniFile.AddHeaderComment(" [User:admin]"); m_IniFile.AddHeaderComment(" [User:admin]");
m_IniFile.AddHeaderComment(" Password=admin"); m_IniFile.AddHeaderComment(" Password=admin");
m_IniFile.WriteFile("webadmin.ini");
} }
if (!m_IniFile.GetValueSetB("WebAdmin", "Enabled", true)) if (!m_IniFile.GetValueSetB("WebAdmin", "Enabled", true))