function logo($code,$xy) {
$color[0] = '';
$color[1]='#000000';
$color[2]='#8c8a8d';
$color[3]='#ffffff';
$color[4]='#fe0000';
$color[5]='#ff8a00';
$color[6]='#ffff00';
$color[7]='#8cff01';
$color[8]='#00ff00';
$color[9]='#01ff8d';
$color['a']='#00ffff';
$color['b']='#008aff';
$color['c']='#0000fe';
$color['d']='#8c00ff';
$color['e']='#ff00fe';
$color['f']='#ff008c';
$i = 0;
$ii = 0;
$it = "<table class=table cellpadding=0 cellspacing=0><tr>";
while ($i<64) {
$place = $code{$i};
$i++;
$ii++;
$add = $color[$place];
$it .= "<td style=background-color:$add; width=$xy height=$xy></td>";
if ($ii==8) {
$it .= "</tr>";
if ($ii != 64)
$it .="<tr>"; $ii =0;
}
}
$it .= "</table>";
return $it;
}