From fcf62632708da42a9fd1a603dc7742426aed039b Mon Sep 17 00:00:00 2001 From: Michael Hampton Date: Thu, 14 Sep 2000 11:43:37 +0000 Subject: [PATCH] Replace occurrences of % throughout the HTML with %% so as to be friendly to HP/UX printf() and possibly others. --- webcit/ChangeLog | 5 +++++ webcit/auth.c | 4 ++-- webcit/graphics.c | 4 ++-- webcit/mainmenu.c | 16 ++++++++-------- webcit/messages.c | 8 ++++---- webcit/netconf.c | 14 +++++++------- webcit/paging.c | 6 +++--- webcit/roomops.c | 16 ++++++++-------- webcit/siteconfig.c | 4 ++-- webcit/sysmsgs.c | 2 +- webcit/userlist.c | 4 ++-- webcit/webcit.c | 8 ++++---- webcit/who.c | 8 ++++---- 13 files changed, 52 insertions(+), 47 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 28c30b57c..8ea52dd12 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,8 @@ $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. @@ -477,3 +481,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/auth.c b/webcit/auth.c index 5ec9b829e..df051242c 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -276,7 +276,7 @@ void display_reg(int during_login) output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Enter registration info\n"); wprintf("
\n"); @@ -379,7 +379,7 @@ void display_changepw(void) output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Change your password\n"); wprintf("
\n"); diff --git a/webcit/graphics.c b/webcit/graphics.c index 043c96c53..d2fa9994c 100644 --- a/webcit/graphics.c +++ b/webcit/graphics.c @@ -31,7 +31,7 @@ void display_graphics_upload(char *description, char *check_cmd, char *uplurl) return; } output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Set/change %s\n", description); wprintf("
\n"); @@ -105,7 +105,7 @@ void select_floor_to_edit_pic(void) output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Select floor to edit label graphic\n"); wprintf("
\n"); diff --git a/webcit/mainmenu.c b/webcit/mainmenu.c index 53af244cb..4d28b103b 100644 --- a/webcit/mainmenu.c +++ b/webcit/mainmenu.c @@ -98,10 +98,10 @@ void embed_main_menu(void) void embed_advanced_menu(void) { - wprintf("
"); + wprintf("
"); - wprintf("
"); + wprintf("
"); wprintf("Interaction\n"); wprintf("
\n"); @@ -120,7 +120,7 @@ void embed_advanced_menu(void) wprintf("
"); - wprintf("
"); + wprintf("
"); wprintf("Your info\n"); wprintf("
\n"); @@ -143,7 +143,7 @@ void embed_advanced_menu(void) wprintf("
"); - wprintf("
"); + wprintf("
"); wprintf("Advanced room commands\n"); wprintf("
\n"); @@ -166,7 +166,7 @@ void embed_advanced_menu(void) wprintf("
"); if ((WC->axlevel >= 6) || (WC->is_room_aide)) { - wprintf("
"); + wprintf("
"); wprintf("Administrative functions\n"); wprintf("
\n"); @@ -192,7 +192,7 @@ void embed_advanced_menu(void) } wprintf("
"); - wprintf("
"); + wprintf("
"); wprintf("Basic commands\n"); wprintf("
\n"); @@ -229,7 +229,7 @@ void display_generic(void) { output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Enter a server command\n"); wprintf("
\n"); @@ -271,7 +271,7 @@ void do_generic(void) serv_printf("%s", bstr("g_cmd")); serv_gets(buf); - wprintf("
"); + wprintf("
"); wprintf("Server command results\n"); wprintf("
\n"); diff --git a/webcit/messages.c b/webcit/messages.c index eafa14212..5ce75793a 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -102,7 +102,7 @@ void read_message(long msgnum, int is_summary) { wprintf("ERROR: %s
\n", &buf[4]); return; } - wprintf("
\n"); + wprintf("
\n"); wprintf(" "); @@ -421,7 +421,7 @@ void post_message(void) void prompt_for_recipient() { - wprintf("
"); + wprintf("
"); wprintf("Send private e-mail\n"); wprintf("
\n"); @@ -511,7 +511,7 @@ void confirm_delete_msg(void) output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Confirm deletion of message\n"); wprintf("
\n"); @@ -570,7 +570,7 @@ void confirm_move_msg(void) output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Confirm move of message\n"); wprintf("
\n"); diff --git a/webcit/netconf.c b/webcit/netconf.c index e069fe6ac..ee2095031 100644 --- a/webcit/netconf.c +++ b/webcit/netconf.c @@ -42,7 +42,7 @@ void display_edit_node(void) strcpy(node, bstr("node")); output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Edit share list for "); escputs(node); @@ -86,7 +86,7 @@ void display_netconf(void) char node[256]; output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Network configuration\n"); wprintf("
\n"); @@ -96,7 +96,7 @@ void display_netconf(void) wprintf("Add a new node
\n"); wprintf(""); - wprintf("
"); + wprintf("
"); wprintf("Currently configured nodes\n"); wprintf("
\n"); @@ -129,7 +129,7 @@ void display_confirm_unshare(void) char sroom[256]; output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Confirm unshare\n"); wprintf("
\n"); @@ -156,7 +156,7 @@ void display_confirm_delete_node(void) char node[256]; output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Confirm delete\n"); wprintf("
\n"); @@ -220,7 +220,7 @@ void display_add_node(void) { output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Add a new node\n"); wprintf("
\n"); @@ -278,7 +278,7 @@ void display_share(void) strcpy(node, bstr("node")); output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Add a shared room\n"); wprintf("
\n"); diff --git a/webcit/paging.c b/webcit/paging.c index ce7d05775..1465e2545 100644 --- a/webcit/paging.c +++ b/webcit/paging.c @@ -32,7 +32,7 @@ void display_page(void) output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Page another user\n"); wprintf("
\n"); @@ -120,7 +120,7 @@ void do_chat(void) output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Real-time chat\n"); wprintf("
\n"); @@ -157,7 +157,7 @@ void page_popup(void) extract(pagefrom, &buf[4], 3); - wprintf("
"); + wprintf("
"); wprintf("Express message from "); escputs(pagefrom); diff --git a/webcit/roomops.c b/webcit/roomops.c index cf3bc44d8..4ece0e836 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -226,7 +226,7 @@ void list_all_rooms_by_floor(void) output_headers(1); - wprintf(""); + wprintf("
Floor
"); wprintf(""); wprintf("\n"); @@ -271,7 +271,7 @@ void list_all_rooms_by_floor(void) void zapped_list(void) { output_headers(1); - wprintf("
FloorRooms with new messagesRooms with no new messages
"); + wprintf("
"); wprintf("SIZE=+1 COLOR=\"FFFFFF\""); wprintf("Zapped (forgotten) rooms\n"); wprintf("

\n"); @@ -627,7 +627,7 @@ void display_editroom(void) output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Room administration\n"); wprintf("
\n"); @@ -641,7 +641,7 @@ void display_editroom(void) "Edit this room's Info file\n" ""); - wprintf("
"); + wprintf("
"); wprintf("Room editing\n"); wprintf("
\n"); @@ -943,7 +943,7 @@ void display_entroom(void) } output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Enter (create) a new room\n"); wprintf("
\n"); @@ -1024,7 +1024,7 @@ void display_private(char *rname, int req_pass) output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Goto a private room\n"); wprintf("
\n"); @@ -1098,7 +1098,7 @@ void display_zap(void) { output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Zap (forget) the current room\n"); wprintf("
\n"); @@ -1163,7 +1163,7 @@ void confirm_delete_room(void) return; } output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Confirm deletion of room\n"); wprintf("
\n"); diff --git a/webcit/siteconfig.c b/webcit/siteconfig.c index cc9433fc9..2e5c29527 100644 --- a/webcit/siteconfig.c +++ b/webcit/siteconfig.c @@ -39,7 +39,7 @@ void display_siteconfig(void) serv_printf("CONF get"); serv_gets(buf); if (buf[0] != '1') { - wprintf("
"); + wprintf("
"); wprintf("Error\n"); wprintf("

\n"); @@ -48,7 +48,7 @@ void display_siteconfig(void) return; } - wprintf("
"); + wprintf("
"); wprintf("Site configuration"); wprintf("
\n"); diff --git a/webcit/sysmsgs.c b/webcit/sysmsgs.c index 0e3dc6a64..5934e3db1 100644 --- a/webcit/sysmsgs.c +++ b/webcit/sysmsgs.c @@ -45,7 +45,7 @@ void display_edit(char *description, char *check_cmd, } output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("Edit "); escputs(description); diff --git a/webcit/userlist.c b/webcit/userlist.c index ca2fb3864..45ba3f421 100644 --- a/webcit/userlist.c +++ b/webcit/userlist.c @@ -57,7 +57,7 @@ void userlist(void) wprintf("%s
\n", &buf[4]); goto DONE; } - wprintf("
"); + wprintf("
"); wprintf("User list for "); escputs(serv_info.serv_humannode); @@ -116,7 +116,7 @@ void showuser(void) output_headers(1); - wprintf("
"); + wprintf("
"); wprintf("User profile"); wprintf("
\n"); diff --git a/webcit/webcit.c b/webcit/webcit.c index 9751dd47d..a854240f6 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -174,7 +174,7 @@ void wDumpContent(int print_standard_html_footer) { if (WC->fake_frames) { wprintf("
" - "" + "
" ""); @@ -364,13 +364,13 @@ void output_headers(int controlcode) if (print_standard_html_head == 1) { wprintf("" - "
" "" "Ungoto
" + "
" "
"); display_menubar(0); wprintf("" - "" + "
" "
\n"); embed_room_banner(NULL); @@ -514,7 +514,7 @@ void convenience_page(char *titlebarcolor, char *titlebarmsg, char *messagetext) { wprintf("HTTP/1.0 200 OK\n"); output_headers(1); - wprintf("
", titlebarcolor); + wprintf("
", titlebarcolor); wprintf("%s\n", titlebarmsg); wprintf("

\n"); diff --git a/webcit/who.c b/webcit/who.c index dadbf041c..ab2ad90bd 100644 --- a/webcit/who.c +++ b/webcit/who.c @@ -59,12 +59,12 @@ void whobbs(void) "\n" ); - wprintf("
"); + wprintf("
"); wprintf("Users currently on "); escputs(serv_info.serv_humannode); wprintf("
\n"); - wprintf("
\n\n\n"); + wprintf("
\n
\n\n"); wprintf("\n"); wprintf("\n"); wprintf(""); @@ -184,7 +184,7 @@ void edit_me(void) output_headers(3); - wprintf("
Session IDUser NameRoom
"); + wprintf("
"); wprintf(""); wprintf("Edit your session display"); wprintf("
\n"); @@ -197,7 +197,7 @@ void edit_me(void) wprintf("
\n"); - wprintf("\n"); + wprintf("
\n"); wprintf("\n
Room name:"); wprintf("\n"); -- 2.30.2