Rozdiely pre scripts/shell/atlantis/add-profile-line.sh medzi verziami 1.2 a 1.3
| verzia 1.2, 2002/06/20 14:51:08 |
verzia 1.3, 2002/06/20 14:53:55 |
|
|
| text=`echo "$text" | sed 's/%/%25/g; s/\+/%2B/g; s/ /+/g; s/&/%26/g'`; |
text=`echo "$text" | sed 's/%/%25/g; s/\+/%2B/g; s/ /+/g; s/&/%26/g'`; |
| |
|
| # download the file via special wget which stores session cookie to a file |
# download the file via special wget which stores session cookie to a file |
| echo "Logging in as '$NAME':'$PASS'"; |
# debug |
| |
#echo "Logging in as '$NAME':'$PASS'"; |
| GET http://www.atlantis.sk/profile/index.php?username="$NAME"\&password="$PASS"\&action=login >tmp.html; |
GET http://www.atlantis.sk/profile/index.php?username="$NAME"\&password="$PASS"\&action=login >tmp.html; |
| |
|
| PHPSESSID=`grep '<input type="hidden" name="PHPSESSID" value="[a-f0-9]*" \/><' tmp.html | head -n 1 | sed 's/.*<input type="hidden" name="PHPSESSID" value="\([a-f0-9]\+\)" \/>.*/\1/'` |
PHPSESSID=`grep '<input type="hidden" name="PHPSESSID" value="[a-f0-9]*" \/><' tmp.html | head -n 1 | sed 's/.*<input type="hidden" name="PHPSESSID" value="\([a-f0-9]\+\)" \/>.*/\1/'` |
Platon Group <platon@platon.sk> http://platon.sk/
|
|