diff --git a/doc/config.html b/doc/config.html
index b7bc6383..8fcd755a 100755
--- a/doc/config.html
+++ b/doc/config.html
@@ -578,6 +578,14 @@ next Routine entry and all Routine entries:
</small>
+
Guest Display = <list>
+
+This option specifies which attributes are displayed on guest access. It is possible
+to display only a subset of all attributes for guest access, but the full list
+if someone is logged in (using the option "Password file"). The list
+consists of comma separated attributes, including the word text, if one
+wants to display the entry body text for guests.+
Find Menu text = <file>
The same for the find result page. One example would be following text to
diff --git a/doc/wishlist.html b/doc/wishlist.html
index 1513c8f2..174e67db 100755
--- a/doc/wishlist.html
+++ b/doc/wishlist.html
@@ -44,7 +44,6 @@ starting at the items with the most votes. You can vote for a feature, or sugges
diff --git a/src/elog.c b/src/elog.c
index a3eb6994..f08a2fbd 100755
--- a/src/elog.c
+++ b/src/elog.c
@@ -6,6 +6,9 @@
Contents: Electronic logbook utility
$Log$
+ Revision 1.17 2004/03/14 16:43:29 midas
+ Implemented option 'guest display'
+
Revision 1.16 2004/02/19 08:18:31 midas
Changed '-p' for email suppress to '-x'
@@ -1023,7 +1026,7 @@ int main(int argc, char *argv[])
size = lseek(fh, 0, SEEK_END);
lseek(fh, 0, SEEK_SET);
- if (size > (int)sizeof(text) - 1) {
+ if (size > (int) sizeof(text) - 1) {
printf("Message file \"%s\" is too long (%d bytes max).\n", textfile,
sizeof(text));
return 1;
diff --git a/src/elogd.c b/src/elogd.c
index 4843fefc..674b311e 100755
--- a/src/elogd.c
+++ b/src/elogd.c
@@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG
$Log$
+ Revision 1.294 2004/03/14 16:43:29 midas
+ Implemented option 'guest display'
+
Revision 1.293 2004/03/13 21:07:58 midas
Implemented and between conditions
@@ -2001,14 +2004,14 @@ BOOL match_param(char *str, char *param)
{
int ncl, npl, nand, i, j, k;
char *p, pcond[256], clist[10][NAME_LENGTH], plist[10][NAME_LENGTH],
- alist[10][NAME_LENGTH];
+ alist[10][NAME_LENGTH];
if (!_condition[0] || str[0] != '{')
return strieq(str, param);
p = str;
if (strchr(p, '}'))
- p = strchr(p, '}')+1;
+ p = strchr(p, '}') + 1;
while (*p == ' ')
p++;
@@ -2021,19 +2024,19 @@ BOOL match_param(char *str, char *param)
npl = strbreak(pcond, plist, 10, ",");
ncl = strbreak(_condition, clist, 10, ",");
- for (i=0 ; i
");
@@ -6861,14 +6866,16 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
for (i = 0; i < MAX_N_LIST && attr_options[index][i][0]; i++) {
if (strstr(attrib[index], attr_options[index][i]))
- rsprintf("
");
@@ -7030,10 +7037,10 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
if (bedit) {
if (bupload || (!bupload && !breedit)
- || (breedit && !getcfg(lbs->name, "Preset text", str))) {
+ || (breedit && !getcfg(lbs->name, "Preset text", str))) {
j = build_subst_list(lbs, slist, svalue, attrib, TRUE);
- sprintf(mid, "%d", message_id);
+ sprintf(mid, "%d", message_id);
add_subst_list(slist, svalue, "message id", mid, &j);
add_subst_time(lbs, slist, svalue, "entry time", date, &j);
@@ -7058,7 +7065,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
|| atoi(str) > 0) {
if (getcfg(lbs->name, "Prepend on reply", str)) {
j = build_subst_list(lbs, slist, svalue, attrib, TRUE);
- sprintf(mid, "%d", message_id);
+ sprintf(mid, "%d", message_id);
add_subst_list(slist, svalue, "message id", mid, &j);
add_subst_time(lbs, slist, svalue, "entry time", date, &j);
@@ -7107,7 +7114,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
if (getcfg(lbs->name, "Append on reply", str)) {
j = build_subst_list(lbs, slist, svalue, attrib, TRUE);
- sprintf(mid, "%d", message_id);
+ sprintf(mid, "%d", message_id);
add_subst_list(slist, svalue, "message id", mid, &j);
add_subst_time(lbs, slist, svalue, "entry time", date, &j);
strsubst(str, slist, svalue, j);
@@ -7189,8 +7196,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL
}
/* Suppress email check box */
- if (!(bedit && !breedit && !bupload
- && getcfg(lbs->name, "Suppress Email on edit", str)
+ if (!(bedit && !breedit && !bupload && getcfg(lbs->name, "Suppress Email on edit", str)
&& atoi(str) == 1)) {
if (getcfg(lbs->name, "Suppress default", str)) {
if (atoi(str) == 0) {
@@ -7371,10 +7377,12 @@ void show_find_form(LOGBOOK * lbs)
rsprintf("");
else
rsprintf("");
- rsprintf("\n", loc("Display full entries"));
+ rsprintf("\n",
+ loc("Display full entries"));
if (strieq(mode, "Summary"))
- rsprintf("");
+ rsprintf
+ ("");
else
rsprintf("");
rsprintf("\n", loc("Summary only"));
@@ -7382,14 +7390,16 @@ void show_find_form(LOGBOOK * lbs)
} else {
if (strieq(mode, "Full") || strieq(mode, "Summary"))
- rsprintf("");
+ rsprintf
+ ("");
else
rsprintf("");
rsprintf("\n", loc("Summary"));
}
if (strieq(mode, "Threaded"))
- rsprintf("");
+ rsprintf
+ ("");
else
rsprintf("");
rsprintf("\n", loc("Display threads"));
@@ -7398,8 +7408,9 @@ void show_find_form(LOGBOOK * lbs)
rsprintf("");
else
rsprintf("");
-
- rsprintf("\n", loc("Display comma-separated values (CSV)"));
+
+ rsprintf("\n",
+ loc("Display comma-separated values (CSV)"));
rsprintf("\n");
@@ -8843,22 +8854,25 @@ void show_import_page(LOGBOOK * lbs)
/*---- entry form ----*/
- rsprintf("%s: \n", loc("CSV filename"));
+ rsprintf(" \n");
- rsprintf("%s: \n",
+ loc("CSV filename"));
rsprintf("");
rsprintf(" %s: \n", loc("Field separator"));
+ rsprintf(" \n");
- rsprintf("%s: \n",
+ loc("Field separator"));
rsprintf("");
rsprintf("");
rsprintf(" %s: \n", loc("Options"));
+ rsprintf(" \n");
-
+
rsprintf("\n\n");
show_bottom_text(lbs);
rsprintf("%s: \n",
+ loc("Options"));
rsprintf("");
rsprintf("\n");
- rsprintf("\n", loc("Derive attributes from CSV file"));
+ rsprintf("\n", loc("Derive attributes from CSV file"));
rsprintf("