X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..f930e6a6429d8b95504c58cdee9e0f01db5be618:/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp?ds=sidebyside diff --git a/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp b/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp index fdb56048..e4a75a87 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/info_methods.cpp @@ -1,7 +1,8 @@ -#include "info_methods.h" - #include -#include "version.h" + +#include "stg/version.h" +#include "stg/common.h" +#include "info_methods.h" #include "rpcconfig.h" void METHOD_INFO::execute(xmlrpc_c::paramList const & paramList, @@ -30,14 +31,14 @@ structVal["tariff"] = xmlrpc_c::value_int(2); structVal["users_num"] = xmlrpc_c::value_int(users->GetUserNum()); structVal["uname"] = xmlrpc_c::value_string(un); structVal["dir_num"] = xmlrpc_c::value_int(DIR_NUM); -structVal["day_fee"] = xmlrpc_c::value_int(settings->GetDayFee()); +structVal["day_fee"] = xmlrpc_c::value_int(dayFee); std::vector dirnameVal; for (int i = 0; i< DIR_NUM; i++) { - string dn2e; - Encode12str(dn2e, settings->GetDirName(i)); + std::string dn2e; + Encode12str(dn2e, dirNames[i]); dirnameVal.push_back(xmlrpc_c::value_string(dn2e)); }