[Help] Guilds mark code

Gasolincho

Well-Known Member
Joined
May 15, 2008
Messages
683
Reaction score
693
i need guilds mark code :) becouse on my web don't show me guild logo ...
 
Guild mark logo function
PHP:
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;
}

guild mark decode
PHP:
$logo = urlencode(bin2hex($row['G_Mark']));
$mark = logo($logo,3);

Number in logo() function is for size bigger number => bigger logo