diff --git a/doc/ChangeLog b/doc/ChangeLog index 187cf0c4..c81d87c0 100755 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -5,6 +5,7 @@ Version 2.3.8, released June xxth, 2003 - On config user page, don't go back to logbook page after changing a user as admin - Check for .gif & co files in resource directory, then in themes directory - for printable search result output, display all pages +- Added "Guest selection page" option Version 2.3.7, released May 15th, 2003 ====================================== diff --git a/doc/config.html b/doc/config.html index e78921b3..efb9e499 100755 --- a/doc/config.html +++ b/doc/config.html @@ -186,6 +186,15 @@ It can be completely customized in order to contain logos etc. As a template, the standard selection page produced by elogd can be used.

+

  • Guest Selection page = <file> +
    +The same for installations which have a global password file. This means that the +logbook selection page is also password protected. It might be however that some +logbooks have guest access, in which case guest access to the selection page should +be allowed as well (maybe with only a subset of the available logbooks). In that case +this options can be used, to show a list of logbooks with guest access. +

    +

  • SMTP host = <host.domain>
    This defines the SMTP host needed to send automatic email notifications. The host diff --git a/doc/wishlist.html b/doc/wishlist.html index f14749f8..7734a7a7 100755 --- a/doc/wishlist.html +++ b/doc/wishlist.html @@ -45,6 +45,7 @@ starting at the items with the most votes. You can vote for a feature, or sugges Make attributes to display selectable in "Find" page1 Convert elog text files into XML files and comma separated files with elconv1 Edit existing messages with elog utility1 +Implement multi-line attributes1

    diff --git a/src/elogd.c b/src/elogd.c index 2aa9f313..15b661a1 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.114 2003/06/04 10:33:49 midas + Added 'Guest Selection page' option + Revision 1.113 2003/06/04 08:17:35 midas Fixed problem with registration notification @@ -11494,6 +11497,29 @@ FILE *f; return; } + /* check for Guest Selection Page */ + if (getcfg("global", "Guest Selection Page", str) && + !(isparam("unm") && isparam("upwd"))) + { + /* check for URL */ + if (strstr(str, "http://")) + { + redirect(NULL, str); + return; + } + + /* check if file starts with an absolute directory */ + if (str[0] == DIR_SEPARATOR || str[1] == ':') + strlcpy(file_name, str, sizeof(file_name)); + else + { + strlcpy(file_name, resource_dir, sizeof(file_name)); + strlcat(file_name, str, sizeof(file_name)); + } + send_file_direct(file_name); + return; + } + if (!check_user_password(NULL, getparam("unm"), getparam("upwd"), "")) return; }