ljr/livejournal/htdocs/syn/raw.bml

18 lines
395 B
Plaintext
Raw Permalink Normal View History

2019-02-05 21:49:12 +00:00
<?_code
{
my $ret;
my $db = LJ::get_db_reader();
my $popsyn = LJ::Syn::get_popular_feeds();
foreach (@$popsyn) {
my ($user, $name, $userid, $url, $count) = @$_;
$name =~ s/[\t\n]//g; $url =~ s/[\t\n]//g;
$ret .= join("\t", $user, $name, $url, $count) . "\n";
}
BML::set_content_type("text/plain; charset=utf-8");
return $ret;
}
_code?>