diff --git a/src/elogd.c b/src/elogd.c
index d209c386..1a3d98f0 100755
--- a/src/elogd.c
+++ b/src/elogd.c
@@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG
$Log$
+ Revision 1.316 2004/03/27 14:33:59 midas
+ Implemeted first version of favicon
+
Revision 1.315 2004/03/26 08:28:29 midas
Version 2.5.2
@@ -684,6 +687,7 @@ struct {
".JPEG", "image/jpeg"}, {
".GIF", "image/gif"}, {
".PNG", "image/png"}, {
+ ".ICO", "text/plain"}, {
".PS", "application/postscript"}, {
".EPS", "application/postscript"}, {
".HTML", "text/html"}, {
@@ -5204,6 +5208,9 @@ void show_html_header(LOGBOOK * lbs, BOOL expires, char *title, BOOL close_head)
rsprintf("\n", css);
+ rsprintf("\n");
+ rsprintf("\n");
+
if (close_head)
rsprintf("\n");
}
@@ -16355,7 +16362,7 @@ void interprete(char *lbook, char *path)
if ((strlen(pfile) > 13 && pfile[6] == '_' && pfile[13] == '_')
|| (strlen(pfile) > 13 && pfile[6] == '_' && pfile[13] == '/')
- || strstr(pfile, ".gif")
+ || strstr(pfile, ".gif") || strstr(pfile, ".ico")
|| strstr(pfile, ".jpg") || strstr(pfile, ".jpeg")
|| strstr(pfile, ".png") || strstr(pfile, ".css")
|| strstr(pfile, ".js")) {
@@ -17607,8 +17614,8 @@ void server_loop(int tcp_port, int daemon)
}
if (strstr(logbook, ".gif") || strstr(logbook, ".jpg") ||
- strstr(logbook, ".jpg") || strstr(logbook, ".png")
- || strstr(logbook, ".htm")
+ strstr(logbook, ".jpg") || strstr(logbook, ".png") ||
+ strstr(logbook, ".ico") || strstr(logbook, ".htm")
|| strstr(logbook, ".css")) {
/* check if file in resource directory */
strlcpy(str, resource_dir, sizeof(str));
diff --git a/themes/default/favicon.ico b/themes/default/favicon.ico
new file mode 100755
index 00000000..ee85485c
Binary files /dev/null and b/themes/default/favicon.ico differ
diff --git a/themes/default/favicon.png b/themes/default/favicon.png
new file mode 100755
index 00000000..f6b6ddfd
Binary files /dev/null and b/themes/default/favicon.png differ