X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/85513928f6a270af94c1477f5ae2773647b04cd7..5a98249bfadbe1d22d316dc3e9e770e0c305e5d6:/projects/sgconf/request.h?ds=sidebyside diff --git a/projects/sgconf/request.h b/projects/sgconf/request.h deleted file mode 100644 index bca3c148..00000000 --- a/projects/sgconf/request.h +++ /dev/null @@ -1,113 +0,0 @@ -/* - * 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++) - { - sessionUpload[i].reset(); - sessionDownload[i].reset(); - monthUpload[i].reset(); - monthDownload[i].reset(); - } - - for (int i = 0; i < USERDATA_NUM; i++) - userData[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 sessionUpload[DIR_NUM]; -RESETABLE sessionDownload[DIR_NUM]; - -RESETABLE monthUpload[DIR_NUM]; -RESETABLE monthDownload[DIR_NUM]; - -RESETABLE userData[USERDATA_NUM]; - -RESETABLE note; -RESETABLE name; -RESETABLE address; -RESETABLE email; -RESETABLE phone; -RESETABLE group; -RESETABLE ips; // IP-address of user -}; -//----------------------------------------------------------------------------- - -#endif - -