X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/641204dfbdb9fc870cdd2e7f9e3169a44693e7bf..0f81f4643fa2ec0b158bbe8d37efae40d8366baa:/projects/sgconf/request.h diff --git a/projects/sgconf/request.h b/projects/sgconf/request.h index dbd7d6db..bca3c148 100644 --- a/projects/sgconf/request.h +++ b/projects/sgconf/request.h @@ -32,9 +32,10 @@ #define request_h #include -#include "resetable.h" -#include "stg_const.h" -#include "os_int.h" + +#include "stg/resetable.h" +#include "stg/const.h" +#include "stg/os_int.h" #define TARIFF_NOW (0) #define TARIFF_DEL (1) @@ -46,18 +47,21 @@ struct REQUEST { REQUEST() + : chgTariff(false), + createUser(false), + deleteUser(false), + authBy(false) { for (int i = 0; i < DIR_NUM; i++) { - u[i].reset(); - d[i].reset(); + sessionUpload[i].reset(); + sessionDownload[i].reset(); + monthUpload[i].reset(); + monthDownload[i].reset(); } for (int i = 0; i < USERDATA_NUM; i++) - ud[i].reset(); - - createUser = false; - deleteUser = false; + userData[i].reset(); } RESETABLE server; @@ -74,9 +78,11 @@ RESETABLE setCash; string message; bool createUser; bool deleteUser; +bool authBy; RESETABLE usrMsg; RESETABLE credit; +RESETABLE creditExpire; RESETABLE usrPasswd; RESETABLE down; RESETABLE passive; @@ -84,10 +90,13 @@ RESETABLE disableDetailStat; RESETABLE alwaysOnline; RESETABLE prepaidTraff; -RESETABLE u[DIR_NUM]; -RESETABLE d[DIR_NUM]; +RESETABLE sessionUpload[DIR_NUM]; +RESETABLE sessionDownload[DIR_NUM]; + +RESETABLE monthUpload[DIR_NUM]; +RESETABLE monthDownload[DIR_NUM]; -RESETABLE ud[USERDATA_NUM]; +RESETABLE userData[USERDATA_NUM]; RESETABLE note; RESETABLE name;