72 lines
993 B
D
72 lines
993 B
D
module structures;
|
|
|
|
struct ServerInfo {
|
|
string name;
|
|
}
|
|
|
|
struct AuthData {
|
|
string login;
|
|
string password;
|
|
}
|
|
|
|
struct UserData {
|
|
bool login = false;
|
|
}
|
|
|
|
struct WebHost {
|
|
string[] addresses;
|
|
ushort http = 0;
|
|
ushort https = 0;
|
|
string cert;
|
|
string key;
|
|
string data;
|
|
string title;
|
|
int loglevel = -1;
|
|
int logoutput = 0;
|
|
string logfile;
|
|
}
|
|
|
|
struct GroupDB {
|
|
string name;
|
|
string comment;
|
|
}
|
|
|
|
struct ListDB {
|
|
string name;
|
|
string comment;
|
|
}
|
|
|
|
struct NumberDB {
|
|
string number;
|
|
string group;
|
|
string list;
|
|
int all_cc;
|
|
int white_cc;
|
|
int black_cc;
|
|
string comment;
|
|
}
|
|
|
|
struct SMSDB {
|
|
int id;
|
|
string date;
|
|
string to;
|
|
string from;
|
|
string text;
|
|
}
|
|
|
|
struct USSDDB {
|
|
int id;
|
|
string date;
|
|
string to;
|
|
int type;
|
|
string type_comment;
|
|
string text;
|
|
}
|
|
|
|
struct ServerDB {
|
|
bool transparent_mode;
|
|
string internal_number;
|
|
string external_number;
|
|
bool external_number_on;
|
|
}
|