mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
- moved lock.gif to themes directory
- fixed a few bugs with </th> - added anchor <a name=attX> (X=1,2,3) for attachments SVN revision: 524
This commit is contained in:
parent
a877e6038b
commit
9fdae7159a
@ -1,3 +1,12 @@
|
|||||||
|
Version 2.3.7, released April 23rd, 2003
|
||||||
|
========================================
|
||||||
|
|
||||||
|
- Fixed bug in password recovery with logbooks containing blanks
|
||||||
|
- Fixed bug with logbooks containing blanks in registration notification
|
||||||
|
- Added icon for protected logbooks
|
||||||
|
- Increased number of attachments to 50
|
||||||
|
- Implemented 3D cell frames
|
||||||
|
|
||||||
Version 2.3.6, released April 23rd, 2003
|
Version 2.3.6, released April 23rd, 2003
|
||||||
========================================
|
========================================
|
||||||
|
|
||||||
|
|||||||
32
src/elogd.c
32
src/elogd.c
@ -6,6 +6,11 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.102 2003/05/07 18:45:42 midas
|
||||||
|
- moved lock.gif to themes directory
|
||||||
|
- fixed a few bugs with </th>
|
||||||
|
- added anchor <a name=attX> (X=1,2,3) for attachments
|
||||||
|
|
||||||
Revision 1.101 2003/05/02 21:40:06 midas
|
Revision 1.101 2003/05/02 21:40:06 midas
|
||||||
Introduced 3D cell frames
|
Introduced 3D cell frames
|
||||||
|
|
||||||
@ -824,7 +829,7 @@
|
|||||||
\********************************************************************/
|
\********************************************************************/
|
||||||
|
|
||||||
/* Version of ELOG */
|
/* Version of ELOG */
|
||||||
#define VERSION "2.3.6"
|
#define VERSION "2.3.7"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -5349,6 +5354,7 @@ time_t now;
|
|||||||
{
|
{
|
||||||
rsprintf("<td class=\"attribvalue\">\n");
|
rsprintf("<td class=\"attribvalue\">\n");
|
||||||
rsputs2(attrib[index]);
|
rsputs2(attrib[index]);
|
||||||
|
rsprintf(" ");
|
||||||
|
|
||||||
if (attr_flags[index] & AF_MULTI)
|
if (attr_flags[index] & AF_MULTI)
|
||||||
{
|
{
|
||||||
@ -9116,7 +9122,7 @@ LOGBOOK *lbs_cur;
|
|||||||
|
|
||||||
/* empty title for selection box */
|
/* empty title for selection box */
|
||||||
if (atoi(getparam("select")) == 1)
|
if (atoi(getparam("select")) == 1)
|
||||||
rsprintf("<th class=\"listtitle\"></td> \n");
|
rsprintf("<th class=\"listtitle\"></th> \n");
|
||||||
|
|
||||||
for (i=0 ; i<n_attr_disp ; i++)
|
for (i=0 ; i<n_attr_disp ; i++)
|
||||||
{
|
{
|
||||||
@ -9164,12 +9170,12 @@ LOGBOOK *lbs_cur;
|
|||||||
else if (strcmp(getparam("rsort"), disp_attr[i]) == 0)
|
else if (strcmp(getparam("rsort"), disp_attr[i]) == 0)
|
||||||
strcpy(img, "<img align=top src=\"down.gif\">");
|
strcpy(img, "<img align=top src=\"down.gif\">");
|
||||||
|
|
||||||
rsprintf("<th class=\"listtitle\"><a href=\"%s\">%s</a>%s</td>\n",
|
rsprintf("<th class=\"listtitle\"><a href=\"%s\">%s</a>%s</th>\n",
|
||||||
ref, disp_attr[i], img);
|
ref, disp_attr[i], img);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!equal_ustring(mode, "Full") && n_line > 0)
|
if (!equal_ustring(mode, "Full") && n_line > 0)
|
||||||
rsprintf("<th class=\"listtitle\">Text</td>\n");
|
rsprintf("<th class=\"listtitle\">Text</th>\n");
|
||||||
|
|
||||||
rsprintf("</tr>\n\n");
|
rsprintf("</tr>\n\n");
|
||||||
}
|
}
|
||||||
@ -10593,6 +10599,7 @@ BOOL first;
|
|||||||
strstr(att, ".PNG"))
|
strstr(att, ".PNG"))
|
||||||
{
|
{
|
||||||
rsprintf("<tr><td class=\"messageframe\">\n");
|
rsprintf("<tr><td class=\"messageframe\">\n");
|
||||||
|
rsprintf("<a name=\"att%d\">\n", index+1);
|
||||||
rsprintf("<img src=\"%s\"></td></tr>", ref);
|
rsprintf("<img src=\"%s\"></td></tr>", ref);
|
||||||
rsprintf("</td></tr>\n\n");
|
rsprintf("</td></tr>\n\n");
|
||||||
}
|
}
|
||||||
@ -10605,6 +10612,9 @@ BOOL first;
|
|||||||
/* display attachment */
|
/* display attachment */
|
||||||
rsprintf("<tr><td class=\"messageframe\">\n");
|
rsprintf("<tr><td class=\"messageframe\">\n");
|
||||||
|
|
||||||
|
/* anchor for references */
|
||||||
|
rsprintf("<a name=\"att%d\">\n", index+1);
|
||||||
|
|
||||||
if (!strstr(att, ".HTML"))
|
if (!strstr(att, ".HTML"))
|
||||||
rsprintf("<pre class=\"messagepre\">");
|
rsprintf("<pre class=\"messagepre\">");
|
||||||
|
|
||||||
@ -12770,19 +12780,9 @@ int net_buffer_size;
|
|||||||
|
|
||||||
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, ".htm") || strstr(logbook, ".css"))
|
||||||
{
|
{
|
||||||
/* serve file directly */
|
/* serve file directly from themes directory */
|
||||||
strlcpy(str, resource_dir, sizeof(str));
|
|
||||||
strlcat(str, logbook, sizeof(str));
|
|
||||||
send_file_direct(str);
|
|
||||||
send(_sock, return_buffer, return_length, 0);
|
|
||||||
|
|
||||||
goto finished;
|
|
||||||
}
|
|
||||||
else if (strstr(logbook, ".css"))
|
|
||||||
{
|
|
||||||
/* send default CSS file */
|
|
||||||
strlcpy(str, resource_dir, sizeof(str));
|
strlcpy(str, resource_dir, sizeof(str));
|
||||||
strlcat(str, "themes", sizeof(str));
|
strlcat(str, "themes", sizeof(str));
|
||||||
strlcat(str, DIR_SEPARATOR_STR, sizeof(str));
|
strlcat(str, DIR_SEPARATOR_STR, sizeof(str));
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 143 B |
Loading…
x
Reference in New Issue
Block a user