");
if (mids.size() > 0) {
int ad_mid = 0;
if (visitor != null && paramShow == null && paramTag == 0 && paramSearch == null) {
ad_mid = AdsQueries.getAdMID(sql, visitor.UID);
if (ad_mid > 0 && mids.indexOf(ad_mid) == -1) {
mids.add(0, ad_mid);
AdsQueries.logAdMID(sql, visitor.UID, ad_mid);
} else {
ad_mid = 0;
}
}
out.println("
");
PageTemplates.printMessages(out, sql, null, mids, visitor, locale, visitor == null ? 2 : 3, ad_mid);
out.println("
");
}
if (visitor != null) {
if (mids.size() >= 20) {
String nextpage = "?before=" + mids.get(mids.size() - 1);
if (paramShow != null) {
nextpage += "&show=" + paramShow;
}
if (paramSearch != null) {
nextpage += "&search=" + URLEncoder.encode(paramSearch, "UTF-8");
}
out.println("
Older →
");
}
} else {
out.println("
" + rb.getString("LoginToReadMore") + "
");
}
PageTemplates.pageFooter(request, out, locale, visitor, true);
out.println("