to HP/UX printf() and possibly others.
$Log$
+Revision 212.10 2000/09/14 11:43:37 error
+Replace occurrences of % throughout the HTML with %% so as to be friendly
+to HP/UX printf() and possibly others.
+
Revision 212.9 2000/09/13 04:13:59 ajc
* Completed the initial hack of the variable substitution template thingy.
Check out static/login.html to see the first template.
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Enter registration info</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Change your password</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
return;
}
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Set/change %s</B>\n", description);
wprintf("</FONT></TD></TR></TABLE>\n");
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Select floor to edit label graphic</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
void embed_advanced_menu(void)
{
- wprintf("<TABLE WIDTH=100%><TR VALIGN=TOP><TD>");
+ wprintf("<TABLE WIDTH=100%%><TR VALIGN=TOP><TD>");
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Interaction</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
wprintf("</TD><TD>");
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Your info</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
wprintf("</TD></TR><TR VALIGN=TOP><TD>");
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=000077><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Advanced room commands</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
wprintf("</TD><TD>");
if ((WC->axlevel >= 6) || (WC->is_room_aide)) {
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007777><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007777><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Administrative functions</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
}
wprintf("</TD></TR></TABLE>");
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770077><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770077><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Basic commands</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
{
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770077><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770077><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Enter a server command</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
serv_printf("%s", bstr("g_cmd"));
serv_gets(buf);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770077><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770077><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Server command results</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
wprintf("<STRONG>ERROR:</STRONG> %s<BR>\n", &buf[4]);
return;
}
- wprintf("<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=1 BGCOLOR=000077><TR><TD>\n");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 CELLSPACING=0 CELLPADDING=1 BGCOLOR=000077><TR><TD>\n");
wprintf("<FONT ");
if (!is_summary) wprintf("SIZE=+1 ");
wprintf("COLOR=\"FFFF00\"> ");
void prompt_for_recipient()
{
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Send private e-mail</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Confirm deletion of message</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Confirm move of message</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
strcpy(node, bstr("node"));
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=000077><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Edit share list for ");
escputs(node);
char node[256];
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Network configuration</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
wprintf("Add a new node</A><BR>\n");
wprintf("</CENTER>");
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=000077><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Currently configured nodes</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
char sroom[256];
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Confirm unshare</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
char node[256];
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Confirm delete</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
{
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Add a new node</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
strcpy(node, bstr("node"));
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Add a shared room</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Page another user</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=000077><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Real-time chat</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
extract(pagefrom, &buf[4], 3);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\""
"<B>Express message from ");
escputs(pagefrom);
output_headers(1);
- wprintf("<TABLE width=100% border><TR><TH>Floor</TH>");
+ wprintf("<TABLE width=100%% border><TR><TH>Floor</TH>");
wprintf("<TH>Rooms with new messages</TH>");
wprintf("<TH>Rooms with no new messages</TH></TR>\n");
void zapped_list(void)
{
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Zapped (forgotten) rooms</B>\n");
wprintf("</TD></TR></TABLE><BR>\n");
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=000077><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Room administration</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
"Edit this room's Info file</A>\n"
"</UL>");
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=000077><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Room editing</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
}
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=000077><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Enter (create) a new room</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Goto a private room</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
{
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Zap (forget) the current room</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
return;
}
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Confirm deletion of room</B>\n");
wprintf("</FONT></TD></TR></TABLE>\n");
serv_printf("CONF get");
serv_gets(buf);
if (buf[0] != '1') {
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=770000><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=770000><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Error</B>\n");
wprintf("</FONT></TD></TR></TABLE><BR>\n");
return;
}
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>Site configuration");
wprintf("</B></FONT></TD></TR></TABLE>\n");
}
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>Edit ");
escputs(description);
wprintf("<EM>%s</EM><BR>\n", &buf[4]);
goto DONE;
}
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>User list for ");
escputs(serv_info.serv_humannode);
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>User profile");
wprintf("</B></FONT></TD></TR></TABLE>\n");
{
if (WC->fake_frames) {
wprintf("<CENTER><FONT SIZE=-1>"
- "<TABLE border=0 width=100%><TR>"
+ "<TABLE border=0 width=100%%><TR>"
"<TD><A HREF=\"/ungoto\">"
"<IMG SRC=\"/static/back.gif\" BORDER=0>"
"Ungoto</A></TD>");
if (print_standard_html_head == 1) {
wprintf("<A NAME=\"TheTop\"></A>"
- "<TABLE border=0 width=100%>"
+ "<TABLE border=0 width=100%%>"
"<TR VALIGN=TOP><TD VALIGN=LEFT CELLPADDING=0>");
display_menubar(0);
wprintf("</TD><TD VALIGN=TOP>"
- "<TABLE border=0 width=100%><TR VALIGN=TOP>"
+ "<TABLE border=0 width=100%%><TR VALIGN=TOP>"
"<TD>\n");
embed_room_banner(NULL);
{
wprintf("HTTP/1.0 200 OK\n");
output_headers(1);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=%s><TR><TD>", titlebarcolor);
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=%s><TR><TD>", titlebarcolor);
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"");
wprintf("<B>%s</B>\n", titlebarmsg);
wprintf("</FONT></TD></TR></TABLE><BR>\n");
"</SCRIPT>\n"
);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=007700><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=007700><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"<B>Users currently on ");
escputs(serv_info.serv_humannode);
wprintf("</B></FONT></TD></TR></TABLE>\n");
- wprintf("<CENTER>\n<TABLE BORDER=1 WIDTH=100%>\n<TR>\n");
+ wprintf("<CENTER>\n<TABLE BORDER=1 WIDTH=100%%>\n<TR>\n");
wprintf("<TH>Session ID</TH>\n");
wprintf("<TH>User Name</TH>\n");
wprintf("<TH>Room</TH>");
output_headers(3);
- wprintf("<TABLE WIDTH=100% BORDER=0 BGCOLOR=000077><TR><TD>");
+ wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=000077><TR><TD>");
wprintf("<FONT SIZE=+1 COLOR=\"FFFFFF\"><B>");
wprintf("Edit your session display");
wprintf("</B></FONT></TD></TR></TABLE>\n");
wprintf("<FORM METHOD=\"POST\" ACTION=\"/edit_me\">\n");
- wprintf("<TABLE border=0 width=100%>\n");
+ wprintf("<TABLE border=0 width=100%%>\n");
wprintf("<TR><TD><B>Room name:</B></TD>\n<TD>");
wprintf("<INPUT TYPE=\"text\" NAME=\"fake_roomname\" MAXLENGTH=\"64\">\n");