diff --git a/elogd.c b/elogd.c index 86ad1f14..6b0669ed 100755 --- a/elogd.c +++ b/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 2.1 2002/06/07 09:37:02 midas + Added 'HTML default = 3' + Revision 2.0 2002/06/06 15:16:39 midas First version with new database scheme @@ -104,7 +107,7 @@ \********************************************************************/ /* Version of ELOG */ -#define VERSION "1.3.6" +#define VERSION "2.0.0" #include #include @@ -3643,10 +3646,27 @@ time_t now; /* HTML check box */ if (message_id) { - if (encoding[0] == 'H') - rsprintf("%s\n", loc("Submit as HTML text")); + if (getcfg(lbs->name, "HTML default", str)) + { + if (atoi(str) < 2) + { + if (encoding[0] == 'H') + rsprintf("%s\n", loc("Submit as HTML text")); + else + rsprintf("%s\n", loc("Submit as HTML text")); + } + else if (atoi(str) == 3) + { + rsprintf("\n"); + } + } else - rsprintf("%s\n", loc("Submit as HTML text")); + { + if (encoding[0] == 'H') + rsprintf("%s\n", loc("Submit as HTML text")); + else + rsprintf("%s\n", loc("Submit as HTML text")); + } } else { @@ -3660,6 +3680,10 @@ time_t now; { rsprintf("%s\n", loc("Submit as HTML text")); } + else if (atoi(str) == 3) + { + rsprintf("\n"); + } } else rsprintf("%s\n", loc("Submit as HTML text"));