+ if (!WC) {
+ wc_printf("no session");
+ return;
+ }
+
+ FreeStrBuf(&WC->PushedDestination);
+ WC->PushedDestination = NewStrBufDup(sbstr("url"));
+ if (verbose)
+ syslog(LOG_DEBUG, "Push: %s", ChrPtr(WC->PushedDestination));
+ wc_printf("OK");
+}
+
+
+/*
+ * Go to the URL saved by push_destination()
+ */
+void pop_destination(void) {
+ /*
+ * If we are in the middle of a new user signup, the server may request that
+ * we first pass through a registration screen.
+ */
+ if ((WC) && (WC->need_regi)) {
+ if ((WC->PushedDestination != NULL) && (StrLength(WC->PushedDestination) > 0)) {
+ /* Registering will take us to the My Citadel Config room, so save our place */
+ StrBufAppendBufPlain(WC->PushedDestination, HKEY("?go="), 0);
+ StrBufUrlescAppend(WC->PushedDestination, WC->CurRoom.name, NULL);
+ }
+ WC->need_regi = 0;
+ display_reg(1);
+ return;
+ }
+
+ /*
+ * Do something reasonable if we somehow ended up requesting a pop without
+ * having first done a push.
+ */
+ if ( (!WC) || (WC->PushedDestination == NULL) || (StrLength(WC->PushedDestination) == 0) ) {
+ do_welcome();
+ return;
+ }
+
+ /*
+ * All righty then! We have a destination saved, so go there now.
+ */
+ if (verbose) {
+ syslog(LOG_DEBUG, "Pop: %s", ChrPtr(WC->PushedDestination));
+ }
+ http_redirect(ChrPtr(WC->PushedDestination));
+}
+
+
+int ReadPostData(void) {
+ int rc;
+ int urlencoded_post = 0;