Added option 'Use lock'

SVN revision: 556
This commit is contained in:
Stefan Ritt 2003-06-18 14:26:11 +00:00
parent 0c22a5d429
commit f85a2ddbf1

View File

@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG Contents: Web server program for Electronic Logbook ELOG
$Log$ $Log$
Revision 1.117 2003/06/18 14:26:11 midas
Added option 'Use lock'
Revision 1.116 2003/06/04 13:20:06 midas Revision 1.116 2003/06/04 13:20:06 midas
Fixed problem with 'change elogd.cfg' and user-defined menu commands Fixed problem with 'change elogd.cfg' and user-defined menu commands
@ -5353,6 +5356,8 @@ time_t now;
text, &size, orig_tag, reply_tag, att, encoding, locked_by); text, &size, orig_tag, reply_tag, att, encoding, locked_by);
if (bedit) if (bedit)
{
if (getcfg(lbs->name, "Use Lock", str) && atoi(str) == 1)
{ {
if (*getparam("full_name")) if (*getparam("full_name"))
strcpy(str, getparam("full_name")); strcpy(str, getparam("full_name"));
@ -5367,6 +5372,7 @@ time_t now;
el_lock_message(lbs, message_id, str); el_lock_message(lbs, message_id, str);
} }
} }
}
else else
{ {
/* get preset attributes */ /* get preset attributes */