/*
* Functions which deal with the fetching and displaying of messages.
+ *
+ * Copyright (c) 1996-2011 by the citadel.org team
+ *
+ * This program is open source software. You can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "webcit.h"
*Error = NewStrBuf();
StrBufAppendPrintf(*Error, "<strong>");
StrBufAppendPrintf(*Error, _("ERROR:"));
- StrBufAppendPrintf(*Error, "</strong> %s<br />\n", &buf[4]);
+ StrBufAppendPrintf(*Error, "</strong> %s<br>\n", &buf[4]);
FreeStrBuf(&Buf);
return 0;
}
Msg->MsgBody->ContentType = NewStrBufPlain(HKEY("text/html"));
StrBufAppendPrintf(Msg->MsgBody->Data, "<div><i>");
StrBufAppendPrintf(Msg->MsgBody->Data, _("Empty message"));
- StrBufAppendPrintf(Msg->MsgBody->Data, "</i><br /><br />\n");
+ StrBufAppendPrintf(Msg->MsgBody->Data, "</i><br><br>\n");
StrBufAppendPrintf(Msg->MsgBody->Data, "</div>\n");
}
break;
return;
}
+ if (WCC->CurRoom.view == VIEW_WIKI) {
+ http_redirect("wiki?page=home");
+ return;
+ }
+
memset(&Stat, 0, sizeof(SharedMessageStatus));
Stat.maxload = 10000;
Stat.lowest_found = (-1);
}
}
else if (buf[0] != '2') { /* Any other error means that we cannot continue */
- wc_printf("<em>%s</em><br />\n", &buf[4]); /* TODO -> important message */
+ wc_printf("<em>%s</em><br>\n", &buf[4]); /* TODO -> important message */
return;
}
}
wc_printf("<CENTER>");
wc_printf(_("Move this message to:"));
- wc_printf("<br />\n");
+ wc_printf("<br>\n");
wc_printf("<form METHOD=\"POST\" action=\"move_msg\">\n");
wc_printf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
}
}
wc_printf("</SELECT>\n");
- wc_printf("<br />\n");
+ wc_printf("<br>\n");
wc_printf("<INPUT TYPE=\"submit\" NAME=\"move_button\" VALUE=\"%s\">", _("Move"));
wc_printf(" ");