From f863c35ad9d5b4428d8f9809ec3c5f5a6281ba1a Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Mon, 24 Feb 2003 16:07:43 +0000 Subject: [PATCH] Changed mode display with 'show text = 0' SVN revision: 414 --- src/elogd.c | 51 ++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 40 insertions(+), 11 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index 85f67b5d..076941e8 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.27 2003/02/24 16:07:43 midas + Changed mode display with 'show text = 0' + Revision 1.26 2003/02/24 13:53:39 midas Improved display of links in messages @@ -5383,12 +5386,20 @@ char str[NAME_LENGTH], mode[256]; rsprintf("%s  \n", loc("Summary only")); else rsprintf("%s  \n", loc("Summary only")); - - if (equal_ustring(mode, "Threaded")) - rsprintf("%s  \n", loc("Display threads")); - else - rsprintf("%s  \n", loc("Display threads")); } + else + { + if (equal_ustring(mode, "Full") || equal_ustring(mode, "Summary")) + rsprintf("%s  \n", loc("Summary")); + else + rsprintf("%s  \n", loc("Summary")); + } + + + if (equal_ustring(mode, "Threaded")) + rsprintf("%s  \n", loc("Display threads")); + else + rsprintf("%s  \n", loc("Display threads")); rsprintf("\n"); @@ -7179,12 +7190,15 @@ char list[MAX_N_LIST][NAME_LENGTH]; { rsprintf("\n"); - if (page_n != 1) - sprintf(ref, "page%d", page_n); - else - ref[0] = 0; - build_ref(ref, sizeof(ref), "full", ""); - rsprintf(" %s |", ref, loc("Full")); + if (!getcfg(lbs->name, "Show text", str) || atoi(str) == 1) + { + if (page_n != 1) + sprintf(ref, "page%d", page_n); + else + ref[0] = 0; + build_ref(ref, sizeof(ref), "full", ""); + rsprintf(" %s |", ref, loc("Full")); + } if (page_n != 1) sprintf(ref, "page%d", page_n); @@ -10823,6 +10837,18 @@ FILE *f; return; } + if (equal_ustring(command, loc("Last day"))) + { + redirect(lbs, "past1"); + return; + } + + if (equal_ustring(command, loc("Last 10"))) + { + redirect(lbs, "last10"); + return; + } + if (equal_ustring(command, loc("Copy to"))) { copy_to(lbs, message_id, getparam("destc"), 0); @@ -12038,6 +12064,9 @@ struct timeval timeout; if (equal_ustring(logbook, lb_list[i].name)) break; + if (strstr(net_buffer+header_length, "line1")) + strcpy(str, strstr(net_buffer+header_length, "line1")); + decode_post(&lb_list[i], net_buffer+header_length, boundary, content_length); } else