id) { error_page("You can't be friends with yourself"); } $destuser = BoincUser::lookup_id($destid); if (!$destuser) error_page("No such user"); $friend = BoincFriend::lookup($user->id, $destid); if ($friend) { error_page("Friend request already exists"); } page_head("Add friend"); echo "