$Log$
+Revision 323.35 2002/05/12 15:21:43 error
+* do_template() now parses a .wml file for WAP clients, and a .html file
+ for everybody else
+
Revision 323.34 2002/05/11 22:46:19 error
* Track whether user-agent is a WAP gateway
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
svprintf("hello", WCS_SERVCMD, "MESG hello");
- do_template("login.html");
+ do_template("login");
clear_local_substs();
wDumpContent(0); /* No menu here; not logged in yet! */
"BODY { text-decoration: none; }\n"
"</STYLE>\n"
"</HEAD>\n");
- do_template("background.html");
+ do_template("background");
}
- do_template("menubar.html");
+ do_template("menubar");
if (as_single_page) {
wDumpContent(2);
if (strlen(bstr("recp")) > 0) {
wprintf("<EM>%s</EM><BR>\n", &buf[4]);
}
- do_template("prompt_for_recipient.html");
+ do_template("prompt_for_recipient");
goto DONE;
}
if (buf[0] != '2') {
svcallback("YOUHAVEMAIL", embed_newmail_button);
svcallback("VIEWOMATIC", embed_view_o_matic);
- do_template("roombanner.html");
+ do_template("roombanner");
clear_local_substs();
}
"<META HTTP-EQUIV=\"expired\" CONTENT=\"28-May-1971 18:10:00 GMT\">\n"
"<meta name=\"MSSmartTagsPreventParsing\" content=\"TRUE\">\n"
"</HEAD>\n");
- do_template("background.html");
+ do_template("background");
}
if (display_name != 2) {
/* store ungoto information */
strcpy(filename, "static/");
strcat(filename, templatename);
+ if (WC->is_wap)
+ strcat(filename, ".wml");
+ else
+ strcat(filename, ".html");
fp = fopen(filename, "r");
if (fp == NULL) {
"onload=\"launch_page_popup()\" ");
WC->HaveExpressMessages = 0;
}
- do_template("background.html");
+ do_template("background");
clear_local_substs();
if (print_standard_html_head == 1) {