+ Buf = NewStrBuf();
+ StrBuf_ServGetln(Buf);
+ if (GetServerStatus(Buf, NULL) == 1) {
+ StrBuf *pagetitle = NewStrBuf();
+
+ wc_printf("<table class=\"wiki_pagelist_background\">");
+ wc_printf("<th>%s</th>", _("Page title"));
+
+ while((StrBuf_ServGetln(Buf) >= 0) && strcmp(ChrPtr(Buf), "000")) {
+ StrBufExtract_token(pagetitle, Buf, 1, '|');
+
+ if (!bmstrcasestr((char *)ChrPtr(pagetitle), "_HISTORY_")) { /* no history pages */
+ wc_printf("<tr bgcolor=\"%s\">", ((row%2) ? "#FFFFFF" : "#DDDDDD"));
+ wc_printf("<td><a href=\"wiki?page=");
+ urlescputs(ChrPtr(pagetitle));
+ wc_printf("\">");
+ escputs(ChrPtr(pagetitle));
+ wc_printf("</a></td>");
+ wc_printf("</tr>\n");
+ ++row;
+ }
+ }
+ wc_printf("</table>\n");
+ FreeStrBuf(&pagetitle);
+ }