X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/46b0747592074017ff0ea4b33d4a7194235886e5..e483fbc3e51aca90ff4abc5347862173366c40ef:/stargazer/plugins/configuration/sgconfig/parser_users.cpp diff --git a/stargazer/plugins/configuration/sgconfig/parser_users.cpp b/stargazer/plugins/configuration/sgconfig/parser_users.cpp index 5707b726..4f9d3021 100644 --- a/stargazer/plugins/configuration/sgconfig/parser_users.cpp +++ b/stargazer/plugins/configuration/sgconfig/parser_users.cpp @@ -67,11 +67,11 @@ std::string UserToXML(const USER & user, bool loginInStart, bool showPass, time_ } if (user.GetProperty().cash.ModificationTime() > lastTime) - answer += ""; + answer += ""; if (user.GetProperty().freeMb.ModificationTime() > lastTime) - answer += ""; + answer += ""; if (user.GetProperty().credit.ModificationTime() > lastTime) - answer += ""; + answer += ""; if (user.GetProperty().nextTariff.Get() != "") { @@ -108,7 +108,7 @@ std::string UserToXML(const USER & user, bool loginInStart, bool showPass, time_ for (size_t i = 0; i < userdata.size(); i++) if (userdata[i]->ModificationTime() > lastTime) - answer += "Get()) + "\" />"; + answer += "Get()) + "\" />"; if (user.GetProperty().realName.ModificationTime() > lastTime) answer += ""; @@ -121,7 +121,7 @@ std::string UserToXML(const USER & user, bool loginInStart, bool showPass, time_ if (user.GetCurrIPModificationTime() > lastTime) answer += ""; if (user.GetPingTime() > lastTime) - answer += ""; + answer += ""; if (user.GetProperty().ips.ModificationTime() > lastTime) answer += ""; @@ -130,16 +130,16 @@ std::string UserToXML(const USER & user, bool loginInStart, bool showPass, time_ const DIR_TRAFF & download(user.GetProperty().down.Get()); if (user.GetProperty().up.ModificationTime() > lastTime) for (size_t j = 0; j < DIR_NUM; j++) - answer += " MU" + x2str(j) + "=\"" + x2str(upload[j]) + "\""; + answer += " MU" + std::to_string(j) + "=\"" + std::to_string(upload[j]) + "\""; if (user.GetProperty().down.ModificationTime() > lastTime) for (size_t j = 0; j < DIR_NUM; j++) - answer += " MD" + x2str(j) + "=\"" + x2str(download[j]) + "\""; + answer += " MD" + std::to_string(j) + "=\"" + std::to_string(download[j]) + "\""; if (user.GetSessionUploadModificationTime() > lastTime) for (size_t j = 0; j < DIR_NUM; j++) - answer += " SU" + x2str(j) + "=\"" + x2str(user.GetSessionUpload()[j]) + "\""; + answer += " SU" + std::to_string(j) + "=\"" + std::to_string(user.GetSessionUpload()[j]) + "\""; if (user.GetSessionDownloadModificationTime() > lastTime) for (size_t j = 0; j < DIR_NUM; j++) - answer += " SD" + x2str(j) + "=\"" + x2str(user.GetSessionDownload()[j]) + "\""; + answer += " SD" + std::to_string(j) + "=\"" + std::to_string(user.GetSessionDownload()[j]) + "\""; answer += "/>"; if (user.GetProperty().disabled.ModificationTime() > lastTime) @@ -149,13 +149,13 @@ std::string UserToXML(const USER & user, bool loginInStart, bool showPass, time_ if (user.GetProperty().passive.ModificationTime() > lastTime) answer += std::string(""; if (user.GetProperty().lastCashAdd.ModificationTime() > lastTime) - answer += ""; + answer += ""; if (user.GetProperty().lastCashAddTime.ModificationTime() > lastTime) - answer += ""; + answer += ""; if (user.GetProperty().lastActivityTime.ModificationTime() > lastTime) - answer += ""; + answer += ""; if (user.GetProperty().creditExpire.ModificationTime() > lastTime) - answer += ""; + answer += ""; if (lastTime == 0) { @@ -197,7 +197,7 @@ void GET_USERS::CreateAnswer() assert(h); if (m_lastUserUpdateTime > 0) - m_answer = ""; + m_answer = ""; else m_answer = "";