serv_printf("MSG0 %d", msgnum);
serv_getln(buf, sizeof buf);
if (buf[0] == '1') {
+ int i =0;
while (serv_getln(buf, sizeof buf),
(strcmp(buf, "text") && strcmp(buf, "000"))) {
}
- int i =0;
if (!strcmp(buf, "text")) {
while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
if (strncasecmp(buf, "none", 4) == 0) {
serv_printf("GOTO %s", WC->wc_roomname);
serv_getln(buf, sizeof buf);
}
-output_headers(1, 1, 2, 0, 0, 0);
-do_template("pushemail");
-//do_template("endbox");
-wDumpContent(1);
+ output_headers(1, 1, 2, 0, 0, 0);
+ do_template("pushemail", NULL);
+/*do_template("endbox"); */
+ wDumpContent(1);
}
void save_pushemail(void) {
serv_getln(buf, sizeof buf);
http_redirect("display_pushemail");
}
+
+void
+InitModule_PUSHMAIL
+(void)
+{
+ WebcitAddUrlHandler(HKEY("display_pushemail"), display_pushemail, 0);
+ WebcitAddUrlHandler(HKEY("save_pushemail"), save_pushemail, 0);
+}