mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Use orig_author for reply quoting
SVN revision: 1385
This commit is contained in:
parent
caaa24b145
commit
0738491f18
12
src/elogd.c
12
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.670 2005/05/17 21:12:36 ritt
|
||||||
|
Use orig_author for reply quoting
|
||||||
|
|
||||||
Revision 1.669 2005/05/17 21:00:53 ritt
|
Revision 1.669 2005/05/17 21:00:53 ritt
|
||||||
Put JS in separate file
|
Put JS in separate file
|
||||||
|
|
||||||
@ -8556,7 +8559,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
attrib[MAX_N_ATTR][NAME_LENGTH], *text, orig_tag[80], reply_tag[MAX_REPLY_TO * 10],
|
attrib[MAX_N_ATTR][NAME_LENGTH], *text, orig_tag[80], reply_tag[MAX_REPLY_TO * 10],
|
||||||
att[MAX_ATTACHMENTS][256], encoding[80], slist[MAX_N_ATTR + 10][NAME_LENGTH],
|
att[MAX_ATTACHMENTS][256], encoding[80], slist[MAX_N_ATTR + 10][NAME_LENGTH],
|
||||||
svalue[MAX_N_ATTR + 10][NAME_LENGTH], owner[256], locked_by[256], class_value[80], class_name[80],
|
svalue[MAX_N_ATTR + 10][NAME_LENGTH], owner[256], locked_by[256], class_value[80], class_name[80],
|
||||||
condition[256], ua[NAME_LENGTH], mid[80], title[256], login_name[256], cookie[256];
|
condition[256], ua[NAME_LENGTH], mid[80], title[256], login_name[256], cookie[256], orig_author[256];
|
||||||
time_t now, ltime;
|
time_t now, ltime;
|
||||||
char fl[8][NAME_LENGTH];
|
char fl[8][NAME_LENGTH];
|
||||||
struct tm *pts;
|
struct tm *pts;
|
||||||
@ -8570,6 +8573,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
|
|
||||||
text = xmalloc(TEXT_SIZE);
|
text = xmalloc(TEXT_SIZE);
|
||||||
text[0] = 0;
|
text[0] = 0;
|
||||||
|
orig_author[0] = 0;
|
||||||
|
|
||||||
if (breedit || bupload) {
|
if (breedit || bupload) {
|
||||||
/* get date from parameter */
|
/* get date from parameter */
|
||||||
@ -8597,6 +8601,8 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
el_retrieve(lbs, message_id, date, attr_list, attrib, lbs->n_attr,
|
el_retrieve(lbs, message_id, date, attr_list, attrib, lbs->n_attr,
|
||||||
text, &size, orig_tag, reply_tag, att, encoding, locked_by);
|
text, &size, orig_tag, reply_tag, att, encoding, locked_by);
|
||||||
|
|
||||||
|
get_author(lbs, attrib, orig_author);
|
||||||
|
|
||||||
if (bedit) {
|
if (bedit) {
|
||||||
if (getcfg(lbs->name, "Use Lock", str, sizeof(str)) && atoi(str) == 1) {
|
if (getcfg(lbs->name, "Use Lock", str, sizeof(str)) && atoi(str) == 1) {
|
||||||
if (*getparam("full_name"))
|
if (*getparam("full_name"))
|
||||||
@ -9866,8 +9872,8 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|
|||||||
if (enc_selected == 0) {
|
if (enc_selected == 0) {
|
||||||
|
|
||||||
/* check for author */
|
/* check for author */
|
||||||
if (get_author(lbs, attrib, str))
|
if (orig_author[0])
|
||||||
rsprintf("[quote=\"%s\"]", str);
|
rsprintf("[quote=\"%s\"]", orig_author);
|
||||||
else
|
else
|
||||||
rsprintf("[quote]");
|
rsprintf("[quote]");
|
||||||
rsputs(text);
|
rsputs(text);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user