mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Added charset= option
SVN revision: 282
This commit is contained in:
parent
84cebb6a5c
commit
a85a691cd1
@ -111,6 +111,12 @@ The online help for <code><b>elogd</b></code> is contained in the file <b>eloghe
|
|||||||
<i>xx</i> are the first two letters of the language (like "<I>en</I>", "<I>ge</I>" and "<I>fr</I>"). For new languages, a new file of that type must be created as well.
|
<i>xx</i> are the first two letters of the language (like "<I>en</I>", "<I>ge</I>" and "<I>fr</I>"). For new languages, a new file of that type must be created as well.
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
|
<LI><b><code>charset = <name></code></b>
|
||||||
|
<br>
|
||||||
|
Specifies the charset of the pages produced by <b><code>elogd</b></code>. Can be used to switch to
|
||||||
|
Russian or Asian fonts.
|
||||||
|
<p>
|
||||||
|
|
||||||
<LI><b><code>Logbook Tabs = [0|1]</code></b>
|
<LI><b><code>Logbook Tabs = [0|1]</code></b>
|
||||||
<br>
|
<br>
|
||||||
This flag controls the display of "<I>tabs</I>" on top of the logbook page which
|
This flag controls the display of "<I>tabs</I>" on top of the logbook page which
|
||||||
|
|||||||
12
elogd.c
12
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.96 2002/11/06 13:39:29 midas
|
||||||
|
Added charset= option
|
||||||
|
|
||||||
Revision 2.95 2002/11/06 08:59:18 midas
|
Revision 2.95 2002/11/06 08:59:18 midas
|
||||||
Files can be specified with absolute path
|
Files can be specified with absolute path
|
||||||
|
|
||||||
@ -3556,9 +3559,16 @@ char str[1000];
|
|||||||
|
|
||||||
void show_http_header()
|
void show_http_header()
|
||||||
{
|
{
|
||||||
|
char str[256];
|
||||||
|
|
||||||
rsprintf("HTTP/1.1 200 Document follows\r\n");
|
rsprintf("HTTP/1.1 200 Document follows\r\n");
|
||||||
rsprintf("Server: ELOG HTTP %s\r\n", VERSION);
|
rsprintf("Server: ELOG HTTP %s\r\n", VERSION);
|
||||||
rsprintf("Content-Type: text/html\r\n");
|
|
||||||
|
if (getcfg("global", "charset", str))
|
||||||
|
rsprintf("Content-Type: text/html;charset=%s\r\n", str);
|
||||||
|
else
|
||||||
|
rsprintf("Content-Type: text/html\r\n");
|
||||||
|
|
||||||
rsprintf("Pragma: no-cache\r\n");
|
rsprintf("Pragma: no-cache\r\n");
|
||||||
if (use_keepalive)
|
if (use_keepalive)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user