<?
    $handle
=@fopen('http://setiathome.ssl.berkeley.edu/fcgi-bin/fcgi?email='.$user.'&cmd=user_stats_new','r');
    if (!
$handle) exit;
    while (!
feof ($handle))
    {
        
$buffer fgets($handle4096);
        
$line[++$i]=trim($buffer);
    }
    
fclose ($handle);

    
$chaine='Statistiques SETI de '.$line[17].' : '.strip_tags($line[28]).' units / '.$line[35].'.';

    
header("Content-type: image/png");
    
$img=ImageCreateTrueColor(strlen($chaine)*7,14);
    
    
$blanc=ImageColorAllocate($img,255,255,255);
    
ImageFill($img,0,0,$blanc);
    
ImageColorTransparent($img,$blanc);
    
    
$noir=ImageColorAllocate($img,0,0,0);
    
    
ImageString($img,3,0,0,$chaine,$noir);
    
    
ImagePng($img);
?>