using STG::PARSER::DEL_ADMIN;
using STG::PARSER::CHG_ADMIN;
+const char * GET_ADMINS::tag = "GetAdmins";
+const char * ADD_ADMIN::tag = "AddAdmin";
+const char * DEL_ADMIN::tag = "DelAdmin";
+const char * CHG_ADMIN::tag = "ChgAdmin";
+
void GET_ADMINS::CreateAnswer()
{
const PRIV * priv = m_currAdmin.GetPriv();
{
if (strcasecmp(el, m_tag.c_str()) == 0)
{
- admin = attr[1];
+ m_admin = attr[1];
return 0;
}
return -1;
void DEL_ADMIN::CreateAnswer()
{
- if (m_admins.Del(admin, &m_currAdmin) == 0)
+ if (m_admins.Del(m_admin, &m_currAdmin) == 0)
m_answer = "<" + m_tag + " Result=\"Ok\"/>";
else
m_answer = "<" + m_tag + " Result=\"Error. " + m_admins.GetStrError() + "\"/>";
{
if (strcasecmp(el, m_tag.c_str()) == 0)
{
- admin = attr[1];
+ m_admin = attr[1];
return 0;
}
return -1;
void ADD_ADMIN::CreateAnswer()
{
- if (m_admins.Add(admin, &m_currAdmin) == 0)
+ if (m_admins.Add(m_admin, &m_currAdmin) == 0)
m_answer = "<" + m_tag + " Result=\"Ok\"/>";
else
m_answer = "<" + m_tag + " Result=\"Error. " + m_admins.GetStrError() + "\"/>";