2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * Author : Boris Mikhailenko <stg34@ua.fm>
24 $Date: 2008/01/11 17:33:50 $
32 #define SYS_IFACE_LEN (9)
33 #define IFACE_LEN (255)
35 #define USERDATA_NUM (10)
37 #define LOGIN_LEN (32)
38 #define PASSWD_LEN (32)
39 #define ADDR_LEN (255)
40 #define NOTE_LEN (255)
41 #define REALNM_LEN (255)
42 #define GROUP_LEN (255)
43 #define PHONE_LEN (255)
44 #define EMAIL_LEN (255)
45 #define USR_IFACE_LEN (255)
46 #define USER_DATA_LEN (255)
47 #define IP_STRING_LEN (255)
49 #define ADM_LOGIN_LEN (32)
50 #define ADM_PASSWD_LEN (32)
51 #define TARIFF_NAME_LEN (32)
52 #define SERVER_NAME_LEN (255)
54 #define DIR_NAME_LEN (16)
56 #define MAX_MSG_LEN (235)
57 #define MAX_MSG_LEN_8 (1030)
62 #define USERNOCASH (0)
63 #define USERDISCONNECT (1)
65 #define LOGEVENT_CONNECT (0)
66 #define LOGEVENT_DISCONNECT (1)
67 #define LOGEVENT_NEW_MONTH (2)
68 #define LOGEVENT_NO_CASH (3)
69 #define LOGEVENT_CONNECT_NO_CASH (4)
70 #define LOGEVENT_USER_DOWN (5)
71 #define LOGEVENT_DELETED (6)
73 #define SET_TARIFF_NOW (0)
74 #define SET_TARIFF_DELAYED (1)
75 #define SET_TARIFF_RECALC (2)
80 #define NO_TARIFF_NAME "*_NO_TARIFF_*"
81 #define NO_CORP_NAME "*_NO_CORP_*"
83 #define mega (1024 * 1024)
85 #define MONITOR_TIME_DELAY_SEC (60)