If webadmin.ini doesn't exist, example one is written immediately.
This commit is contained in:
parent
f2b5790776
commit
ab2dfb44fa
@ -89,6 +89,7 @@ bool cWebAdmin::Init(void)
|
||||
m_IniFile.AddHeaderComment(" Password format: Password=*password*; for example:");
|
||||
m_IniFile.AddHeaderComment(" [User:admin]");
|
||||
m_IniFile.AddHeaderComment(" Password=admin");
|
||||
m_IniFile.WriteFile("webadmin.ini");
|
||||
}
|
||||
|
||||
if (!m_IniFile.GetValueSetB("WebAdmin", "Enabled", true))
|
||||
|
Loading…
Reference in New Issue
Block a user