ob_start(); $host=$path=str_replace(http://,,$img); $Content = ;
$img=$_GET[url];
$host=explode(/,$host);
$host=$host[0];
$path=strstr($path, /);
$fp = fsockopen($host, 80, $errno, $errstr, 30);
if ($fp)
{
@fputs($fp, "GET $path HTTP/1.1
");
@fputs($fp, "ホスト: $host
");
@fputs($fp, "受け入れる: */*
");
@fputs($fp, "リファラー: http://$host/
");
@fputs($fp, "ユーザーエージェント: Mozilla/4.0 (互換性; MSIE 6.0; Windows NT 5.1; SV1)
");
@fputs($fp, "接続: 閉じます
");
}
while ($str = fread($fp, 4096))
$Content .= $str;
@fclose($fp);
$pos=strpos($Content,"
");
$head=substr($Content,0,$pos);
$text=substr($Content,$pos+4);
header("Content-Type: image/jpeg");
echo $テキスト;
?>