Added charset= option

SVN revision: 282
This commit is contained in:
2002-11-06 13:39:39 +00:00
parent 84cebb6a5c
commit a85a691cd1
2 changed files with 17 additions and 1 deletions
+6
View File
@@ -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.
<p>
<LI><b><code>charset = &lt;name&gt;</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>
<br>
This flag controls the display of "<I>tabs</I>" on top of the logbook page which
+11 -1
View File
@@ -6,6 +6,9 @@
Contents: Web server program for Electronic Logbook ELOG
$Log$
Revision 2.96 2002/11/06 13:39:29 midas
Added charset= option
Revision 2.95 2002/11/06 08:59:18 midas
Files can be specified with absolute path
@@ -3556,9 +3559,16 @@ char str[1000];
void show_http_header()
{
char str[256];
rsprintf("HTTP/1.1 200 Document follows\r\n");
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");
if (use_keepalive)
{