X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ac3670b33981698a02c5e95ab4f11cb3fe57562d..29e9a2de0b45893850bbf56ee38e7fd235a6df15:/projects/sgconf/request.h diff --git a/projects/sgconf/request.h b/projects/sgconf/request.h new file mode 100644 index 00000000..61222127 --- /dev/null +++ b/projects/sgconf/request.h @@ -0,0 +1,108 @@ +/* + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * Date: 27.10.2002 + */ + +/* + * Author : Boris Mikhailenko + */ + + /* + $Author: faust $ + $Revision: 1.14 $ + $Date: 2009/06/08 10:02:28 $ + */ + +#ifndef request_h +#define request_h + +#include + +#include "stg/resetable.h" +#include "stg/const.h" +#include "stg/os_int.h" + +#define TARIFF_NOW (0) +#define TARIFF_DEL (1) +#define TARIFF_REC (2) + +using namespace std; +//----------------------------------------------------------------------------- +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(); + } + + for (int i = 0; i < USERDATA_NUM; i++) + ud[i].reset(); +} + +RESETABLE server; +RESETABLE port; +RESETABLE admLogin; +RESETABLE admPasswd; +RESETABLE login; + +RESETABLE tariff; +int chgTariff; + +RESETABLE cash; +RESETABLE setCash; +string message; +bool createUser; +bool deleteUser; +bool authBy; + +RESETABLE usrMsg; +RESETABLE credit; +RESETABLE creditExpire; +RESETABLE usrPasswd; +RESETABLE down; +RESETABLE passive; +RESETABLE disableDetailStat; +RESETABLE alwaysOnline; +RESETABLE prepaidTraff; + +RESETABLE u[DIR_NUM]; +RESETABLE d[DIR_NUM]; + +RESETABLE ud[USERDATA_NUM]; + +RESETABLE note; +RESETABLE name; +RESETABLE address; +RESETABLE email; +RESETABLE phone; +RESETABLE group; +RESETABLE ips; // IP-address of user +}; +//----------------------------------------------------------------------------- + +#endif + +