alles muss man dir in den h***ern sch****n.
PHP-Code:
<?php
$icq_error = false;
$icq = isset($_GET['icq']) ? (int)$_GET['icq'] : 0;
$icq = (preg_match('!^([0-9]){1,}$!is', $icq)) ? $icq : 0;
$fp = @fopen('http://web.icq.com/whitepages/about_me/1,,,00.html?Uin=' . $icq, 'r');
if ($fp)
{
$fr = '';
while ($buf=fread($fp, 4096))
$fr.= $buf;
if (strstr($fr, 'This not a registered ICQ number'))
$icq_error = true;
else
$icq_error = false;
}
else
$icq_error = true;
echo ($icq_error) ? 'nummer NICHT bekannt' : 'grünes licht';
?>
Kommentar