| version 1.1, 2003/01/08 16:47:18 |
version 1.2, 2003/01/26 21:08:52 |
|
|
| # |
# |
| |
|
| # $Id$ |
# $Id$ |
| # $Platon$ |
# $Platon: scripts/shell/sms/e-zones.sk/sms-plugin.sh,v 1.1 2003/01/08 16:47:18 rajo Exp $ |
| |
|
| # You must set base URL in all plugins |
# You must set base URL in all plugins |
| BASE_URL="http://www.e-zones.sk" |
BASE_URL="http://www.e-zones.sk" |
| |
|
| # here specify order of requests made to site $SITE |
# here specify order of requests made to site $SITE |
| HTTP_REQUESTS_ORDER="http_get_cookies http_auth" |
HTTP_REQUESTS_ORDER="http_get_cookies1 http_auth http_get_cookies2 http_check_image read_message http_send_msg" |
| |
|
| # tuto sa nastavia cookies ETEST=TEST |
http_get_cookies1="/pls/ezones/e_single_sign_on.reload2?id=0" # --> Set-Cookie: ETEST=TEST |
| http_get_cookies="pls/ezones/e_single_sign_on.reload2?id=0'" |
|
| |
|
| http_auth="pls/ezones/!e_single_sign_on.login" |
http_auth="/pls/ezones/!e_single_sign_on.login" # --> Set-Cookie: EZONES=BCDD517FAAE26B013B5043344D21A7B4 |
| http_auth_request="frame=0&page=&menu=&extrapar=&user_name=$NAME&passwd=$PASSWD" |
http_auth_request='frame=0&page=&menu=&extrapar=&user_name=$NAME&passwd=$PASSWD' |
| |
|
| |
http_get_cookies2="/pls/ezones/!e_sms.send" # --> Set-Cookie: id=9825711db1d728f5 |
| |
|
| |
# GET /images/check/img.php?id=9825711db1d728f5 HTTP/1.1\r\n |
| |
# User-Agent: ...\r\n |
| |
# Cookie: ETEST=TEST; EZONES=BCDD517FAAE26B013B5043344D21A7B4 |
| |
http_check_image='/images/check/img.php?id=$COOKIE_id' |
| |
|
| |
# GET /pls/ezones/!e_sms.send_sms?MSG_TEXT=halo%2C+ako+sa+mas+%3F+%3B%29&SMSMsgLen=408&SMScount=1&CHECK=0685&ADDR=0903838302%0D%0A&x=43&y=15 HTTP/1.1\r\n |
| |
# User-Agent: ...\r\n |
| |
# Cookie: id=9825711db1d728f5; ETEST=TEST; EZONES=BCDD517FAAE26B013B5043344D21A7B4 |
| |
http_send_msg='/pls/ezones/!e_sms.send_sms?MSG_TEXT=$TEXT&SMSMsgLen=$TEXT_LEN&SMScount=1&CHECK=$CHECKCODE&ADDR=$NUMBER%0D%0A&x=43&y=15' |
| |
|
| |
# specify output filter |
| |
# strip_html_tags is buildin filter |
| |
OUTPUT_FILTER="strip_html_tags | tail -n 11" |
| |
|