getName()); $vocation = 'Unknown vocation'; if(isset($config['vocations'][$player->getVocation()])) $vocation = $config['vocations'][$player->getVocation()]; imagettftext($image , $fontsize, 0, 20, 52, $color, $font, 'Level:'); imagettftext($image , $fontsize, 0, 70, 52, $color, $font, $player->getLevel() . ' ' . $vocation); $rank = $player->getRank(); if($rank->isLoaded()) { imagettftext($image , $fontsize, 0, 20, 75, $color, $font, 'Guild:'); imagettftext($image , $fontsize, 0, 70, 75, $color, $font, $player->getRank()->getName() . ' of the ' . $$rank->getGuild()->getName()); } imagettftext($image , $fontsize, 0, 20, 95, $color, $font, 'Last Login:'); imagettftext($image , $fontsize, 0, 100, 95, $color, $font, (($player->getLastLogin() > 0) ? date("j F Y, g:i a", $player->getLastLogin()) : 'Never logged in.')); imagepng($image, SIGNATURES_CACHE . $player->getID() . '.png'); imagedestroy($image); header('Content-type: image/png'); readfile(SIGNATURES_CACHE . $player->getId() . '.png'); ?>