diff --git a/NT/elogd.vcproj b/NT/elogd.vcproj index 8cecbddf..195668d6 100755 --- a/NT/elogd.vcproj +++ b/NT/elogd.vcproj @@ -160,6 +160,9 @@ BrowseInformation="1"/> + + + + diff --git a/doc/config.html b/doc/config.html index 7a9872b8..58c9b672 100755 --- a/doc/config.html +++ b/doc/config.html @@ -940,6 +940,26 @@ If a logbook uses some icons for an attribute, these icons can be displayed in the search result page instead of the default icons contained in the themes directory.

+

  • RSS Title = <string> +
    +ELOG supports so-called RSS feeds. Once can subscribe to new logbook entries +with RSS readers such as Mozilla Firefox. Once new entries are submitted to the logbook, +the become visible in the subscripition. By default, all attributes of the last 15 +logbook entries are used as the RSS title. With this option once can changed this +behaviour. Following substitutions are possible: +

    +

    +
    +A typical example would be +
    +
    RSS Title = $subject, posted by $author on $entry time
    +

    +

  • Subst <attribute> = <string>
    When submitting logbook entries, attribute values can be substituted by some diff --git a/src/elogd.c b/src/elogd.c index 75c1c7a1..6174b819 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.498 2004/10/25 21:07:07 midas + Implemented RSS feeds + Revision 1.497 2004/10/14 21:27:29 midas Finished regular expressions @@ -6005,7 +6008,7 @@ void show_plain_header(int size, char *file_name) rsprintf("\r\n"); } -void show_html_header(LOGBOOK * lbs, BOOL expires, char *title, BOOL close_head) +void show_html_header(LOGBOOK * lbs, BOOL expires, char *title, BOOL close_head, BOOL rss_feed) { char css[256], str[256]; @@ -6031,13 +6034,19 @@ void show_html_header(LOGBOOK * lbs, BOOL expires, char *title, BOOL close_head) rsprintf("\n"); rsprintf("\n"); + if (rss_feed) { + rsprintf("name); + rsprintf("href=\"rss-feed\">\n"); + } + if (close_head) rsprintf("\n"); } -void show_standard_header(LOGBOOK * lbs, BOOL expires, char *title, char *path) +void show_standard_header(LOGBOOK * lbs, BOOL expires, char *title, char *path, BOOL rss_feed) { - show_html_header(lbs, expires, title, TRUE); + show_html_header(lbs, expires, title, TRUE, rss_feed); rsprintf("\n"); @@ -6055,7 +6064,7 @@ void show_upgrade_page(LOGBOOK * lbs) { char str[1000]; - show_html_header(lbs, FALSE, "ELOG Upgrade Information", TRUE); + show_html_header(lbs, FALSE, "ELOG Upgrade Information", TRUE, FALSE); rsprintf("\n"); @@ -6552,7 +6561,7 @@ void show_bottom_text(LOGBOOK * lbs) void show_error(char *error) { /* header */ - show_html_header(NULL, FALSE, "ELOG error", TRUE); + show_html_header(NULL, FALSE, "ELOG error", TRUE, FALSE); rsprintf("
    \n"); rsprintf("

    Not Found

    \r\n"); rsprintf("The requested file %s was not found on this server

    \r\n", file_name); @@ -7077,7 +7086,7 @@ void show_change_pwd_page(LOGBOOK * lbs) } } - show_standard_header(lbs, TRUE, loc("ELOG change password"), NULL); + show_standard_header(lbs, TRUE, loc("ELOG change password"), NULL, FALSE); rsprintf("

    "); @@ -7502,7 +7511,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL } /* header */ - show_html_header(lbs, FALSE, "ELOG", FALSE); + show_html_header(lbs, FALSE, "ELOG", FALSE, FALSE); /* java script for checking required attributes and to check for cancelled edits */ rsprintf("