*/
void embed_room_banner(char *got, int navbar_style) {
+ wcsession *WCC = WC;
char buf[256];
char buf2[1024];
char with_files[256];
* we want it to remember the URL as a "/dotskip" one instead of
* a "skip" or "gotonext" or something like that.
*/
- if (WC->this_page == NULL)
- WC->this_page = NewStrBuf();
- StrBufPrintf(WC->this_page,
+ if (WCC->Hdr->this_page == NULL)
+ WCC->Hdr->this_page = NewStrBuf();
+ StrBufPrintf(WCC->Hdr->this_page,
"dotskip&room=%s",
ChrPtr(WC->wc_roomname));
default:
wprintf(
"<li class=\"readallmess\">"
- "<a href=\"readfwd\">"
+ "<a href=\"readfwd?startmsg=20&maxmsgs=20&is_summary=0&SortBy=date&SortOrder=2\">"
"<img src=\"static/readallmess3_24x.gif\" "
"alt=\"\">"
"<span class=\"navbar_link\">"
wprintf(_("The URL for subscribe/unsubscribe is: "));
wprintf("<TT>%s://%s/listsub</TT></td></tr>\n",
(is_https ? "https" : "http"),
- ChrPtr(WC->http_host));
+ ChrPtr(WC->Hdr->HR.http_host));
/* Public posting? */
wprintf("<tr><td>");
wprintf(_("Allow non-subscribers to mail to this room."));
StrBuf *FloorDiv;
FloorDiv = NewStrBuf();
- StrBufAppendBuf(FloorDiv, WCC->UrlFragment2, 0);
+ StrBufExtract_token(FloorDiv, WCC->Hdr->HR.ReqLine, 0, '/');
set_preference("floordiv_expanded", FloorDiv, 1);
WCC->floordiv_expanded = FloorDiv;
}
RegisterNamespace("ROOM:INFO", 1, 2, tmplput_ROOM_Value, CTX_ROOMS);
}
+
+
+void
+SessionDestroyModule_ROOMOPS
+(wcsession *sess)
+{
+ if (sess->cache_fold != NULL) {
+ free(sess->cache_fold);
+ }
+
+ free_march_list(sess);
+}
/*@}*/