$countryname = Countries::getCountryName($userinfo->location);
//IVAO Status Badge fieldvalue = IVAO VID
$fieldvalue = PilotData::GetFieldValue($pilotid, 'IVAO-VID');
if ($fieldvalue != '') {
    $ivao = '<a href="http://www.ivao.aero/members/person/details.asp?ID=' . $fieldvalue . '" target="_blank"><img 		src="http://status.ivao.aero/' . $fieldvalue . '.png" width="220" height="66" border="0" alt="IVAO ID" /></a>';
} else {
    $ivao = 'Not a IVAO Member';
}
//Avatar
if (!file_exists(SITE_ROOT . AVATAR_PATH . '/' . $pilotcode . '.png')) {
    $avatar = 'No avatar';
} else {
    $avatar = '<img src="' . SITE_URL . AVATAR_PATH . '/' . $pilotcode . '.png' . '" alt="Pilot Avatar" /> ';
}
//Vorstellungstext
$vorstellungstext = PilotData::GetFieldValue($pilotid, 'Vorstellungstext');
if ($vorstellungstext == '') {
    $vorstellungstext = 'Pilot has set no description yet';
}
//Awards
$allawards = AwardsData::GetPilotAwards($userinfo->pilotid);
if (count($allawards) != 0) {
    $zaehler = 0;
    foreach ($allawards as $award) {
        if ($zaehler < 2) {
            $awardpics = $awardpics . '<img src="' . $award->image . '" alt="' . $award->descrip . '"/> ';
            $zaehler = $zaehler + 1;
        } else {
            $awardpics = $awardpics . '<img src="' . $award->image . '" alt="' . $award->descrip . '"/> <br/><br/>';
            $zaehler = 0;
        }