| verzia 1.6, 2001/10/02 16:24:47 |
verzia 1.7, 2001/10/24 19:24:49 |
|
|
| /* |
/* |
| * Author: rajo <host8@kepler.fmph.uniba.sk> |
* Author: rajo <host8@kepler.fmph.uniba.sk> |
| * $Log$ |
* $Log$ |
| |
* Revision 1.7 2001/10/24 19:24:49 host8 |
| |
* Added parameter -p (look for password). |
| |
* |
| * Revision 1.6 2001/10/02 16:24:47 jombik9 |
* Revision 1.6 2001/10/02 16:24:47 jombik9 |
| * Added suport for Subject header. |
* Added suport for Subject header. |
| * Removed white characters in SMS message. |
* Removed white characters in SMS message. |
|
|
| #define SPISNET_PORT 80 |
#define SPISNET_PORT 80 |
| #define GLOBTELNET_SERVER "213.151.200.27" |
#define GLOBTELNET_SERVER "213.151.200.27" |
| #define GLOBTELNET_PORT 80 |
#define GLOBTELNET_PORT 80 |
| |
#define MTNSMS_SERVER "196.36.119.197" |
| |
#define MTNSMS_PORT 80 |
| |
|
| //#define AZET_SMS_LEN 420 |
//#define AZET_SMS_LEN 420 |
| #define SMS_LEN 300 |
#define SMS_LEN 300 |
|
|
| #define WHIZDIARY 1 |
#define WHIZDIARY 1 |
| #define SPISNET 2 |
#define SPISNET 2 |
| #define GLOBTELNET 3 |
#define GLOBTELNET 3 |
| |
#define MTNSMS 4 |
| |
|
| |
/* |
| #define USER_AGENT "User-Agent: Lynx/2.8.4dev.7 libwww-FM/2.14\r\n" |
#define USER_AGENT "User-Agent: Lynx/2.8.4dev.7 libwww-FM/2.14\r\n" |
| // "User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; DigExt)\r\n" |
"User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; DigExt)\r\n" |
| |
*/ |
| |
#define USER_AGENT "User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Linux) Opera 5.0 [en]\r\n" |
| |
|
| #define HTTP_GET 0 |
#define HTTP_GET 0 |
| #define HTTP_POST 1 |
#define HTTP_POST 1 |
| |
|
| typedef struct GLOBALS_STRUCT { |
typedef struct GLOBALS_STRUCT { |
| char *number; |
char *number; |
| int gate; |
|
| int debug; |
int debug; |
| char text[SMS_LEN + 1]; |
char text[SMS_LEN + 1]; |
| int is_mail:1; |
int is_mail:1; |
| Riadok 67 typedef struct WWW_STRUCT { |
|
| Riadok 75 typedef struct WWW_STRUCT { |
|
| char *user_agent; |
char *user_agent; |
| } WWW; |
} WWW; |
| |
|
| |
typedef struct SERVER { |
| |
int id; |
| |
char *desc; |
| |
char *ip; |
| |
int port; |
| |
int smslen; |
| |
} SERVER; |
| |
|
| extern char *message, *scratch, *keybd; |
extern char *message, *scratch, *keybd; |
| extern GLOB g; |
extern GLOB g; |
| extern WWW www; |
extern WWW www; |
| |
extern SERVER servers[]; |
| |
extern int id; /* index to servers[] */ |
| |
|
| #endif /* #ifndef _MAIL2SMS_H */ |
#endif /* #ifndef _MAIL2SMS_H */ |
| |
|