mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Implemeted first version of favicon
SVN revision: 859
This commit is contained in:
parent
ebf1a0fa9d
commit
43d8311eae
13
src/elogd.c
13
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$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
|
Revision 1.315 2004/03/26 08:28:29 midas
|
||||||
Version 2.5.2
|
Version 2.5.2
|
||||||
|
|
||||||
@ -684,6 +687,7 @@ struct {
|
|||||||
".JPEG", "image/jpeg"}, {
|
".JPEG", "image/jpeg"}, {
|
||||||
".GIF", "image/gif"}, {
|
".GIF", "image/gif"}, {
|
||||||
".PNG", "image/png"}, {
|
".PNG", "image/png"}, {
|
||||||
|
".ICO", "text/plain"}, {
|
||||||
".PS", "application/postscript"}, {
|
".PS", "application/postscript"}, {
|
||||||
".EPS", "application/postscript"}, {
|
".EPS", "application/postscript"}, {
|
||||||
".HTML", "text/html"}, {
|
".HTML", "text/html"}, {
|
||||||
@ -5204,6 +5208,9 @@ void show_html_header(LOGBOOK * lbs, BOOL expires, char *title, BOOL close_head)
|
|||||||
|
|
||||||
rsprintf("<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">\n", css);
|
rsprintf("<link rel=\"stylesheet\" type=\"text/css\" href=\"%s\">\n", css);
|
||||||
|
|
||||||
|
rsprintf("<link rel=\"shortcut icon\" href=\"favicon.ico\">\n");
|
||||||
|
rsprintf("<link rel=\"icon\" href=\"favicon.png\" type=\"image/png\">\n");
|
||||||
|
|
||||||
if (close_head)
|
if (close_head)
|
||||||
rsprintf("</head>\n");
|
rsprintf("</head>\n");
|
||||||
}
|
}
|
||||||
@ -16355,7 +16362,7 @@ void interprete(char *lbook, char *path)
|
|||||||
|
|
||||||
if ((strlen(pfile) > 13 && pfile[6] == '_' && pfile[13] == '_')
|
if ((strlen(pfile) > 13 && pfile[6] == '_' && pfile[13] == '_')
|
||||||
|| (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, ".jpg") || strstr(pfile, ".jpeg")
|
||||||
|| strstr(pfile, ".png") || strstr(pfile, ".css")
|
|| strstr(pfile, ".png") || strstr(pfile, ".css")
|
||||||
|| strstr(pfile, ".js")) {
|
|| strstr(pfile, ".js")) {
|
||||||
@ -17607,8 +17614,8 @@ void server_loop(int tcp_port, int daemon)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (strstr(logbook, ".gif") || strstr(logbook, ".jpg") ||
|
if (strstr(logbook, ".gif") || strstr(logbook, ".jpg") ||
|
||||||
strstr(logbook, ".jpg") || strstr(logbook, ".png")
|
strstr(logbook, ".jpg") || strstr(logbook, ".png") ||
|
||||||
|| strstr(logbook, ".htm")
|
strstr(logbook, ".ico") || strstr(logbook, ".htm")
|
||||||
|| strstr(logbook, ".css")) {
|
|| strstr(logbook, ".css")) {
|
||||||
/* check if file in resource directory */
|
/* check if file in resource directory */
|
||||||
strlcpy(str, resource_dir, sizeof(str));
|
strlcpy(str, resource_dir, sizeof(str));
|
||||||
|
|||||||
BIN
themes/default/favicon.ico
Executable file
BIN
themes/default/favicon.ico
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
BIN
themes/default/favicon.png
Executable file
BIN
themes/default/favicon.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 494 B |
Loading…
x
Reference in New Issue
Block a user