/** * Profile::editprofile() * * @return */ public function editprofile() { if (!Auth::LoggedIn()) { $this->set('message', 'You must be logged in to access this feature!'); $this->render('core_error.tpl'); return; } $this->set('userinfo', Auth::$pilot); $this->set('pilot', Auth::$pilot); $this->set('customfields', PilotData::getFieldData(Auth::$pilotid, true)); $this->set('bgimages', PilotData::getBackgroundImages()); $this->set('countries', Countries::getAllCountries()); $this->set('pilotcode', PilotData::getPilotCode(Auth::$pilot->code, Auth::$pilot->pilotid)); $this->render('profile_edit.tpl'); }