My bad you want the view function... Assuming you haven't modified it, and I haven't modified it (taking this from EUG profile.php which I may have edited):
public function view($pilotid='')
{
if(!is_numeric($pilotid))
{
preg_match('/^([A-Za-z]*)(\d*)/', $pilotid, $matches);
$code = $matches[1];
$pilotid = intval($matches[2]) - Config::Get('PILOTID_OFFSET');
}
$userinfo = PilotData::getPilotData($pilotid);
if($userinfo->retired == '1'){
$this->set('message', 'Sorry, this profile is not available.');
$this->render('core_error.tpl');
return;
}
$this->title = 'Profile of '.$userinfo->firstname.' '.$userinfo->lastname;
$this->set('userinfo', $userinfo);
$this->set('allfields', PilotData::GetFieldData($pilotid, false));
$this->set('pireps', PIREPData::GetAllReportsForPilot($pilotid));
$this->set('pilotcode', PilotData::GetPilotCode($userinfo->code, $userinfo->pilotid));
$this->set('allawards', AwardsData::GetPilotAwards($userinfo->pilotid));
$this->render('pilot_public_profile.tpl');
$this->render('pireps_viewall.tpl');
}