mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Added 'date on reply = 2' option
SVN revision: 638
This commit is contained in:
parent
052360f517
commit
665bda543e
@ -1330,10 +1330,12 @@ resulting in all messages being locked. In those cases locking has to be turned
|
|||||||
|
|
||||||
Default for "Use Lock" is <b>0</b>.<p>
|
Default for "Use Lock" is <b>0</b>.<p>
|
||||||
|
|
||||||
<li><b><code>Date on reply = 0|1</code></b>
|
<li><b><code>Date on reply = 0|1|2</code></b>
|
||||||
</br>
|
</br>
|
||||||
If this flag is <b>1</b>, the current date is placed between the quoted original entry
|
If this flag is nozero, the current date is placed between the quoted original entry
|
||||||
and the new entry. This can be useful for email notifications, if one wants to see the
|
and the new entry. <b>1</b> causes the date to appear on top of the quoted entry,
|
||||||
|
<b>2</b> cuses the date to appear below the quoted entry.
|
||||||
|
This can be useful for email notifications, if one wants to see the
|
||||||
time history of all replies in the email messages. Default is <b>0</b>.
|
time history of all replies in the email messages. Default is <b>0</b>.
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
|
|||||||
19
src/elogd.c
19
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.167 2003/12/15 09:36:23 midas
|
||||||
|
Added 'date on reply = 2' option
|
||||||
|
|
||||||
Revision 1.166 2003/12/05 12:16:23 midas
|
Revision 1.166 2003/12/05 12:16:23 midas
|
||||||
Added .selframe style class
|
Added .selframe style class
|
||||||
|
|
||||||
@ -5772,6 +5775,20 @@ struct tm *ts;
|
|||||||
{
|
{
|
||||||
if (!getcfg(lbs->name, "Quote on reply", str) || atoi(str) > 0)
|
if (!getcfg(lbs->name, "Quote on reply", str) || atoi(str) > 0)
|
||||||
{
|
{
|
||||||
|
if (getcfg(lbs->name, "Date on reply", str) && atoi(str) == 1)
|
||||||
|
{
|
||||||
|
time(&now);
|
||||||
|
ts = localtime(&now);
|
||||||
|
if (getcfg(lbs->name, "Date format", format))
|
||||||
|
strftime(str, sizeof(str), format, ts);
|
||||||
|
else
|
||||||
|
{
|
||||||
|
strcpy(str, ctime(&now));
|
||||||
|
str[strlen(str)-1] = 0;
|
||||||
|
}
|
||||||
|
rsprintf("%s\n\n", str);
|
||||||
|
}
|
||||||
|
|
||||||
p = text;
|
p = text;
|
||||||
|
|
||||||
if (!getcfg(lbs->name, "Reply string", reply_string))
|
if (!getcfg(lbs->name, "Reply string", reply_string))
|
||||||
@ -5816,7 +5833,7 @@ struct tm *ts;
|
|||||||
|
|
||||||
} while (TRUE);
|
} while (TRUE);
|
||||||
|
|
||||||
if (getcfg(lbs->name, "Date on reply", str) && atoi(str) > 0)
|
if (getcfg(lbs->name, "Date on reply", str) && atoi(str) == 2)
|
||||||
{
|
{
|
||||||
time(&now);
|
time(&now);
|
||||||
ts = localtime(&now);
|
ts = localtime(&now);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user