-#include "info_methods.h"
-
#include <sys/utsname.h>
-#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,
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<xmlrpc_c::value> dirnameVal;
for (int i = 0; i< DIR_NUM; i++)
{
- string dn2e;
- Encode12str(dn2e, settings->GetDirName(i));
- dirnameVal.push_back(xmlrpc_c::value_string(dn2e));
+ dirnameVal.push_back(xmlrpc_c::value_string(dirNames[i]));
}
structVal["dir_names"] = xmlrpc_c::value_array(dirnameVal);