<hey!>
evilwalrus.com has got some usefull php stuff for ignorants like me who like to cut and paste. i got this from there:
but is'nt there something missing on the end?Code:<? function check_stat($uin) { $arr = @file("http://wwp.icq.com/scripts/online.dll?icq=$uin&img=1"); $len = strlen($arr[1]); if ($len == "") return "1"; if ($len == 96) return "2"; if ($len == 83) return "3"; if ($len == 1) return "4"; } switch ($task) { case 'lookup': if (check_stat($uin)=="1" OR "2"){ ?> <form action="<? print $PHP_SELF ?>" method="post"> <b>The ICQ Online-Message Panel</b><br><br> <b>Sender Name</b> (optional):<br> <input type="text" name="from" value="" size=15 maxlength=40><br> <b>Sender EMail</b> (optional):<br> <input type="text" name="fromemail" value="" size=15 maxlength=40><br> <input type="hidden" name="subject" value="PHP ICQ Jobbler!"> Message:<br> <textarea name="body" rows="3" cols="30" wrap="Virtual"></textarea> <input type="hidden" name="to" value="<? print $uin; ?>"> <input type="hidden" name="task" value="send"> <input type="submit" name="Send" value="Send Message"> <input type="reset" value="Clear"> </form> <?} else { ?> Moose! <?} break; case 'send': mail($to . "@pager.icq.com", "$subject", "$body", "Return-path:$fromemail\nFrom: $from"); print "emailto:" . $to . "@pager.icq.com<br><br>\n\n"; print "subject:" . $subject . "<br><br>\n\n"; print "body:" . $body . "<br><br>\n\n"; break; default: ?> <h1>ICQ Jobbler!</h1> <form method="post" action="<? print $PHP_SELF; ?>"> <input type="text" name="uin"> <input type="hidden" name="task" value="lookup"> <input type="submit" value="Check that number!"> </form> <? break; }
is it meant to end with a }?? or is the whole thing incomplete?
let me know, i'm getting confused.
<ahh!> last thing... do i just put my icq uin# stright into the code?
nice one.







Bookmarks