longer have any callers which require it.
+Sun Jan 29 23:20:48 EST 2006 ajc
+* Removed the "convert_to_html" option from text_to_server() because we no
+ longer have any callers which require it.
+
Sun Jan 29 13:08:59 EST 2006 ajc
* Removed all references to "font-family" style. We will now go with
whatever font the user has chosen as his favorite.
Sun Jan 29 13:08:59 EST 2006 ajc
* Removed all references to "font-family" style. We will now go with
whatever font the user has chosen as his favorite.
wprintf("000");
}
if (buf[0] == '4') {
wprintf("000");
}
if (buf[0] == '4') {
- text_to_server(bstr("g_input"), 0);
+ text_to_server(bstr("g_input"));
serv_puts("000");
}
if (buf[0] == '6') {
serv_puts("000");
}
if (buf[0] == '6') {
serv_puts("Content-type: text/html; charset=utf-8");
serv_puts("");
serv_puts("<html><body>\n"); /** Future templates go here */
serv_puts("Content-type: text/html; charset=utf-8");
serv_puts("");
serv_puts("<html><body>\n"); /** Future templates go here */
- text_to_server(bstr("msgtext"), 0);
+ text_to_server(bstr("msgtext"));
serv_puts("</body></html>\n");
serv_puts("</body></html>\n");
serv_printf("ENT0 1||0|0||||||%s", bstr("eid"));
serv_getln(buf, sizeof buf);
if (buf[0] == '4') {
serv_printf("ENT0 1||0|0||||||%s", bstr("eid"));
serv_getln(buf, sizeof buf);
if (buf[0] == '4') {
- text_to_server(bstr("value"), 0);
+ text_to_server(bstr("value"));
serv_getln(buf, sizeof buf);
if (buf[0] == '4') {
serv_getln(buf, sizeof buf);
if (buf[0] == '4') {
- text_to_server(bstr("msgtext"), 0);
+ text_to_server(bstr("msgtext"));
serv_puts("000");
wprintf("<EM>");
wprintf(_("Message has been sent to "));
serv_puts("000");
wprintf("<EM>");
wprintf(_("Message has been sent to "));
/**
* \brief Transmit message text (in memory) to the server.
/**
* \brief Transmit message text (in memory) to the server.
- * \param ptr the output buffer
- * \param convert_to_html if set to 1, the message is converted into something
- * which kind of resembles HTML.
+ *
+ * \param ptr Pointer to the message being transmitted
-void text_to_server(char *ptr, int convert_to_html)
+void text_to_server(char *ptr)
- char buf[SIZ];
- char conv[4];
buf[strlen(buf) - 1] = 0;
serv_puts(buf);
buf[0] = 0;
buf[strlen(buf) - 1] = 0;
serv_puts(buf);
buf[0] = 0;
- if (convert_to_html) {
- strcat(buf, "<br />");
- }
- else {
- if (ptr[pos] != 0) strcat(buf, " ");
- }
- } else if ((convert_to_html)&&(strchr("#&;`'|*?-~<>^()[]{}$\\", ch) != NULL)) {
- sprintf(conv, "%c", ch);
- stresc(&buf[strlen(buf)], conv, 0, 0);
+ if (ptr[pos] != 0) strcat(buf, " ");
} else {
a = strlen(buf);
buf[a + 1] = 0;
} else {
a = strlen(buf);
buf[a + 1] = 0;
display_main_menu();
return;
}
display_main_menu();
return;
}
- text_to_server(bstr("msgtext"), 0);
+ text_to_server(bstr("msgtext"));
serv_puts("000");
if (regoto) {
serv_puts("000");
if (regoto) {
wprintf("000");
}
if (buf[0] == '4') {
wprintf("000");
}
if (buf[0] == '4') {
- text_to_server(bstr("g_input"), 0);
+ text_to_server(bstr("g_input"));
serv_puts("000");
}
if (buf[0] == '6') {
serv_puts("000");
}
if (buf[0] == '6') {
void embed_message(char *msgnum_as_string);
void print_message(char *msgnum_as_string);
void display_headers(char *msgnum_as_string);
void embed_message(char *msgnum_as_string);
void print_message(char *msgnum_as_string);
void display_headers(char *msgnum_as_string);
-void text_to_server(char *ptr, int convert_to_html);
+void text_to_server(char *ptr);
void display_enter(void);
void post_message(void);
void confirm_delete_msg(void);
void display_enter(void);
void post_message(void);
void confirm_delete_msg(void);