"; return; } my $remote = LJ::get_remote(); return $err->($ML{'error.noremote'}) unless $remote; my $authas = $GET{'authas'} || $remote->{'user'}; my $u = LJ::get_authas_user($authas); return $err->($ML{'error.invalidauth'}) unless $u; # extra arguments for get requests my $getextra = $authas ne $remote->{'user'} ? "?authas=$authas" : ''; if ($POST{'mode'} eq "save") { my %res; $POST{'mode'} = "editfriendgroups"; $POST{'user'} = $u->{'user'}; $POST{'ver'} = $LJ::PROTOCOL_VER; LJ::do_request(\%POST, \%res, { 'u' => $u, 'noauth' => 1, }); if ($res{'success'} eq "OK") { $body .= ""; } else { $body .= ""; } return; } my %res; LJ::do_request({ 'mode' => 'getfriends', 'user' => $u->{'user'}, 'ver' => $LJ::PROTOCOL_VER, 'includegroups' => 1 }, \%res, { 'u' => $u, 'noauth' => 1, }); my @num_used; my @num_free; # authas switcher form $body .= "
\n\n"; $body .= ""; $body .= "
"; return; } _code?> body=> page?> link: htdocs/login.bml post: htdocs/friends/editgroups.bml _c?>