mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Made '../last10?mode=summary' work
SVN revision: 116
This commit is contained in:
parent
ac8f0cb153
commit
18b200e338
11
elogd.c
11
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 2.13 2002/06/13 08:59:53 midas
|
||||||
|
Made '../last10?mode=summary' work
|
||||||
|
|
||||||
Revision 2.12 2002/06/12 10:18:16 midas
|
Revision 2.12 2002/06/12 10:18:16 midas
|
||||||
Added redirection if '/' is missing after logbook
|
Added redirection if '/' is missing after logbook
|
||||||
|
|
||||||
@ -2898,7 +2901,7 @@ int i;
|
|||||||
|
|
||||||
/*---- logbook selection row ----*/
|
/*---- logbook selection row ----*/
|
||||||
|
|
||||||
if (!printable && getcfg("global", "logbook tabs", str) && atoi(str) == 1)
|
if (!printable && getcfg(logbook, "logbook tabs", str) && atoi(str) == 1)
|
||||||
{
|
{
|
||||||
if (!getcfg("global", "tab cellpadding", str))
|
if (!getcfg("global", "tab cellpadding", str))
|
||||||
strcpy(str, "5");
|
strcpy(str, "5");
|
||||||
@ -4982,6 +4985,8 @@ struct tm tms, *ptms;
|
|||||||
{
|
{
|
||||||
if (getcfg(lbs->name, "Display Mode", str))
|
if (getcfg(lbs->name, "Display Mode", str))
|
||||||
strcpy(mode, str);
|
strcpy(mode, str);
|
||||||
|
if (*getparam("mode"))
|
||||||
|
strcpy(mode, getparam("mode"));
|
||||||
show_attachments = FALSE;
|
show_attachments = FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -8408,7 +8413,7 @@ struct timeval timeout;
|
|||||||
/* check for trailing '/' after logbook */
|
/* check for trailing '/' after logbook */
|
||||||
if (logbook[0] && *p == ' ')
|
if (logbook[0] && *p == ' ')
|
||||||
{
|
{
|
||||||
sprintf(str, "../%s/", logbook_enc);
|
sprintf(str, "%s/", logbook_enc);
|
||||||
redirect(str);
|
redirect(str);
|
||||||
goto redir;
|
goto redir;
|
||||||
}
|
}
|
||||||
@ -8696,7 +8701,7 @@ struct timeval timeout;
|
|||||||
goto error;
|
goto error;
|
||||||
*(strstr(net_buffer, "HTTP")-1)=0;
|
*(strstr(net_buffer, "HTTP")-1)=0;
|
||||||
|
|
||||||
/* skip logbook from path */
|
/* strip logbook from path */
|
||||||
p = net_buffer+5;
|
p = net_buffer+5;
|
||||||
for (i=0 ; *p && *p != '/' && *p != '?'; p++);
|
for (i=0 ; *p && *p != '/' && *p != '?'; p++);
|
||||||
while (*p && *p == '/')
|
while (*p && *p == '/')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user