File: gmxde.sms

package info (click to toggle)
smssend 3.4-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,232 kB
  • ctags: 114
  • sloc: sh: 11,314; ansic: 2,368; perl: 104; makefile: 58
file content (52 lines) | stat: -rw-r--r-- 1,422 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
## www.gmx.de ##
# Version 0.01
# by philipp.berndt@gmx.net
# Error codes :
#  1 Password is wrong
#  2 Invalid GMX email adress
#  3 daily limit exceeded
#  4 number has wrong format
#  5 unknown Error
#  6 monthly limit exceeded
#  7 didn't log out last time

NbParams 5
%user : GMX User ID (numerical)
%password hidden : Password
%from : gmx-email to send from
%number : complete phonenumber i.e. +491791234567
%message Size=160 Convert : Your message

# Get login form and server
GetURL http://www.gmx.de/
GO

# Log in
PostURL \%RTFormAction-1-1%
PostData AREA=\%RTGetInput-1-AREA%&EXT=\%RTGetInput-1-EXT%&EXT2=\%RTGetInput-1-EXT2%&id=\%user%&p=\%password%
Referer \%RTURL-1%
Search Haben Sie Ihr Passwort vergessen?
ErrorMsg 1 Password is wrong!
ElseSearch wurde Ihre letzte Sitzung von GMX
ErrorMsg 7 Error: You didn't log out the previous time. Please retry!
GO

# Send message
PostURL http://\%RTHost-3%/de/cgi/sms
PostData CUSTOMERNO=\%user%&t=\%RTGetInput-3-t%&AREA=12&nr=\%number%&msg=\%message%&email=\%from%&USEPRO=1&SPONSOR=&Senden=Ja,+SMS+senden
Search Ungültige E-Mail-Adresse
ErrorMsg 2 Invalid GMX email adress
ElseSearch Die Nummer ist ungültig!
ErrorMsg 4 number has wrong format
ElseSearch Nachricht ist zu lang
ErrorMsg 8 Message too long!
ElseSearch SMS-Nachricht wurde an
PrintMsg Message sent successfully!
Else
ErrorMsg 5 Unknown error
GO

# Log out
GetURL \%RTFollowLink-4-Logout%
GO