mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Added option 'Use lock'
SVN revision: 556
This commit is contained in:
parent
0c22a5d429
commit
f85a2ddbf1
24
src/elogd.c
24
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.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
|
||||||
|
|
||||||
@ -5354,17 +5357,20 @@ time_t now;
|
|||||||
|
|
||||||
if (bedit)
|
if (bedit)
|
||||||
{
|
{
|
||||||
if (*getparam("full_name"))
|
if (getcfg(lbs->name, "Use Lock", str) && atoi(str) == 1)
|
||||||
strcpy(str, getparam("full_name"));
|
{
|
||||||
else
|
if (*getparam("full_name"))
|
||||||
strcpy(str, loc("user"));
|
strcpy(str, getparam("full_name"));
|
||||||
|
else
|
||||||
|
strcpy(str, loc("user"));
|
||||||
|
|
||||||
strcat(str, " ");
|
strcat(str, " ");
|
||||||
strcat(str, loc("on"));
|
strcat(str, loc("on"));
|
||||||
strcat(str, " ");
|
strcat(str, " ");
|
||||||
strcat(str, rem_host);
|
strcat(str, rem_host);
|
||||||
|
|
||||||
el_lock_message(lbs, message_id, str);
|
el_lock_message(lbs, message_id, str);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user