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>
++
SMTP host = <host.domain>
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; }