quote($url); my $eurl = LJ::ehtml($url); my $uurl = LJ::eurl($url); $body .= "$eurlp?>"; $body .= ""; $body .= "\n"; $sth = $dbr->prepare("SELECT u.user, m.itemid FROM meme m LEFT JOIN useridmap u ON m.journalid=u.userid WHERE m.url=$qurl LIMIT $qskip,500"); $sth->execute; my $count = 0; while (my ($journal, $itemid) = $sth->fetchrow_array) { $body .= ""; my $jarg = $journal ? "journal=$journal&" : ""; $body .= ""; $body .= ""; $count++; } $body .= "
UserPost Link
"; $body .= "" if $journal; $body .= "post
"; my @pagers; if ($skip > 0) { my $newskip = $skip - 500; push @pagers, "<< Previous 500"; } if ($count == 500) { my $newskip = 500; if ($skip) { $newskip = $skip + 500; } push @pagers, "Next 500 >>"; } if (@pagers) { $body .= "

[ " . join(" | ", @pagers) . " ]

"; } $body .= "<< Back to Meme Listing"; return; } $body .= "\n"; $body .= ""; $sth = $dbr->prepare("SELECT statkey, statval FROM stats WHERE statcat='popmeme' ORDER BY 2 DESC LIMIT 100"); $sth->execute; $body .= "\n"; $body .= "\n"; while (my ($url, $ct) = $sth->fetchrow_array) { my $eurl = LJ::ehtml($url); my $uurl = LJ::eurl($url); $body .= ""; $body .= "\n"; } $body .= "
CountURL
$ct links$eurl
"; $body .= ""; $body .= ""; $sth->finish; return; _code?> body=> page?> link: htdocs/talkread.bml, htdocs/meme.bml lib: cgi-bin/cleanhtml.pl _c?>