mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Fixed missing icons in top groups
SVN revision: 1331
This commit is contained in:
parent
9fcddc879f
commit
77b8bee707
29
src/elogd.c
29
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.635 2005/04/21 20:50:02 ritt
|
||||||
|
Fixed missing icons in top groups
|
||||||
|
|
||||||
Revision 1.634 2005/04/21 06:58:16 ritt
|
Revision 1.634 2005/04/21 06:58:16 ritt
|
||||||
Fixed wrong year under IE with datetime attibutes
|
Fixed wrong year under IE with datetime attibutes
|
||||||
|
|
||||||
@ -20373,6 +20376,7 @@ void interprete(char *lbook, char *path)
|
|||||||
lb_index = i;
|
lb_index = i;
|
||||||
lbs = lb_list + i;
|
lbs = lb_list + i;
|
||||||
lbs->n_attr = scan_attributes(lbs->name);
|
lbs->n_attr = scan_attributes(lbs->name);
|
||||||
|
|
||||||
if (*getparam("wpassword")) {
|
if (*getparam("wpassword")) {
|
||||||
/* check if password correct */
|
/* check if password correct */
|
||||||
do_crypt(getparam("wpassword"), enc_pwd);
|
do_crypt(getparam("wpassword"), enc_pwd);
|
||||||
@ -20438,6 +20442,31 @@ void interprete(char *lbook, char *path)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* deliver icons without password */
|
||||||
|
if (chkext(path, ".gif") || chkext(path, ".jpg") ||
|
||||||
|
chkext(path, ".png") || chkext(path, ".ico") ||
|
||||||
|
chkext(path, ".htm") || chkext(path, ".css")) {
|
||||||
|
/* check if file in resource directory */
|
||||||
|
strlcpy(str, resource_dir, sizeof(str));
|
||||||
|
strlcat(str, path, sizeof(str));
|
||||||
|
if (exist_file(str)) {
|
||||||
|
send_file_direct(str);
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
|
/* else search file in themes directory */
|
||||||
|
strlcpy(str, resource_dir, sizeof(str));
|
||||||
|
strlcat(str, "themes", sizeof(str));
|
||||||
|
strlcat(str, DIR_SEPARATOR_STR, sizeof(str));
|
||||||
|
strlcat(str, theme_name, sizeof(str));
|
||||||
|
strlcat(str, DIR_SEPARATOR_STR, sizeof(str));
|
||||||
|
strlcat(str, path, sizeof(str));
|
||||||
|
if (exist_file(str)) {
|
||||||
|
send_file_direct(str);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* if password file given, check password and user name */
|
/* if password file given, check password and user name */
|
||||||
if (getcfg(logbook, "Password file", str, sizeof(str))) {
|
if (getcfg(logbook, "Password file", str, sizeof(str))) {
|
||||||
/* get current CSS */
|
/* get current CSS */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user