1 _info?>("You must log in before posting."); $res = LJ::Protocol::do_request("login", { "ver" => $LJ::PROTOCOL_VER, "username" => $u->{'user'}, "getpickws" => 1, }, undef, { "noauth" => 1, "u" => $u, }); return "" unless LJ::did_post(); return "$ML{'Error'} $ML{'error.invalidform'}" unless LJ::check_form_auth(); my $event = LJ::Util::blogger_deserialize($POST{'event'}); my $journal = $POST{'usejournal'}; my $sec = $POST{'security'}; my $allowmask = undef; if ($sec eq "friends") { $sec = "usemask"; $allowmask = 1; } my $req = { 'usejournal' => $journal ne $u->{user} ? $journal : undef, 'ver' => 1, 'username' => $u->{'user'}, 'password' => $u->{'password'}, 'event' => $event->{'event'}, 'subject' => $POST{'subject'}, 'props' => $event->{'props'}, 'tz' => 'guess', 'security' => $sec, 'allowmask' => $allowmask, }; my $errcode; my $res = LJ::Protocol::do_request("postevent", $req, \$errcode); if ($errcode) { return $err->("Error posting: " . LJ::Protocol::error_message($errcode)); } my $url = $res->{url}; BML::finish(); my $ret = ""; $ret .= "<< Back to LiveJournal Mobile.

# Success!

"; $ret .= "Posted. Available here."; return $ret; } _code?>
<< Back to LiveJournal Mobile.

# Post

Subject:
Post:
Security: 'security', 'selected' => "public" }, @secs); } _code?>

to 'usejournal', }, "", $u->{'user'}, map { $_, $_ } @{$res->{'usejournals'} || []}); }_code?>