$Log$
+Revision 213.24 2001/06/27 06:16:01 ajc
+* Correct generated window name in pop up pages
+* Added handling of MIME inline images (not tested)
+
Revision 213.23 2001/06/22 17:58:20 ajc
* A few performance and tuning cleanups. Increased the size of the socket
queue length to 100 for use on big systems. Also, during startup, the
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
if (atoi(bstr("during_login"))) {
do_welcome();
} else {
- display_error("Registration information has been saved.");
+ display_success("Registration information has been saved.");
}
}
mime_length = extract_int(&buf[5], 5);
if (!strcasecmp(mime_disposition, "attachment")) {
-
if (mime_http == NULL) {
mime_http = malloc(512);
strcpy(mime_http, "");
mime_http = realloc(mime_http,
strlen(mime_http) + 512);
}
-
sprintf(&mime_http[strlen(mime_http)],
"<A HREF=\"/output_mimepart?"
"msgnum=%ld&partnum=%s\" "
mime_partnum, mime_filename,
mime_content_type, mime_length);
}
+
+ if ((!strcasecmp(mime_disposition, "inline"))
+ && (!strncasecmp(mime_content_type, "image/", 6)) ){
+ if (mime_http == NULL) {
+ mime_http = malloc(512);
+ strcpy(mime_http, "");
+ }
+ else {
+ mime_http = realloc(mime_http,
+ strlen(mime_http) + 512);
+ }
+ sprintf(&mime_http[strlen(mime_http)],
+ "<IMG SRC=\"/output_mimepart?"
+ "msgnum=%ld&partnum=%s\">",
+ msgnum, mime_partnum);
+ }
+
}
}
"<META HTTP-EQUIV=\"refresh\" CONTENT=\"30\">\n");
wprintf("</HEAD>\n");
- /* script for checking for express msgs (not always launch) */
+ /* script for checking for pages (not always launched) */
wprintf("<SCRIPT LANGUAGE=\"JavaScript\">\n");
wprintf("function launch_page_popup() {\n");
- wprintf("pwin = window.open('/page_popup', 'CitaPage%d', 'toolbar=no,location=no,copyhistory=no,status=no,scrollbars=yes,resizable=no,height=150,width=400');\n");
+ wprintf("pwin = window.open('/page_popup', 'CitaPage%d', "
+ "'toolbar=no,location=no,copyhistory=no,status=no,"
+ "scrollbars=yes,resizable=no,height=150,width=400');\n",
+ ++pageseq);
wprintf("}\n");
- wprintf("</SCRIPT>\n", ++pageseq);
+ wprintf("</SCRIPT>\n");
/* end script */
- /* JavaScript keyboard-based navigation would go here if it
- * were finished
- */
+ /* (JavaScript keyboard-based navigation would go here) */
if (!suppress_check) if (WC->HaveExpressMessages) {
svprintf("extrabodyparms", WCS_STRING, "%s",