Added 'date on reply = 2' option
SVN revision: 638
This commit is contained in:
+5
-3
@@ -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>
|
||||
|
||||
<li><b><code>Date on reply = 0|1</code></b>
|
||||
<li><b><code>Date on reply = 0|1|2</code></b>
|
||||
</br>
|
||||
If this flag is <b>1</b>, 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
|
||||
If this flag is nozero, the current date is placed between the quoted original entry
|
||||
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>.
|
||||
<p>
|
||||
|
||||
|
||||
+18
-1
@@ -6,6 +6,9 @@
|
||||
Contents: Web server program for Electronic Logbook ELOG
|
||||
|
||||
$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
|
||||
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, "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;
|
||||
|
||||
if (!getcfg(lbs->name, "Reply string", reply_string))
|
||||
@@ -5816,7 +5833,7 @@ struct tm *ts;
|
||||
|
||||
} 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);
|
||||
ts = localtime(&now);
|
||||
|
||||
Reference in New Issue
Block a user