Tous les collages #271689 Brut Modifier

Miscellany

public text v1 · immuable
·publié 2006-12-08 11:24 UTC
corps du collage affiché
on *:TEXT:!socktest:#:{ /sockopen msforum mircscripts.org 80 

on *:sockopen:msforum:{ 
sockwrite -n $sockname GET /forumlist.php HTTP/1.0 

; This is telling the socket to connect to the specific page, using "GET".
sockwrite -n $sockname Host: mircscripts.org $+ $crlf $+ $crlf

; This states the host once again.

}

on *:sockread:msforum:{
if ($sockerr) {
echo -a Error.
halt
}
else {

var %temptext

sockread %temptext
if (<span class="smallText">Stats: * posts / * threads / * users</span><br> iswm %temptext) || (<span class="smallText">Last 24 hours: * posts / * new users</span><br> iswm %temptext) {

echo -a -

echo -a $htmlfree(%temptext)

}
}
}