fix for bug 1074486 - Web interface doesn't save some options

This commit is contained in:
Ron Pedde 2004-11-28 08:45:26 +00:00
parent 1261535d75
commit 7f1ca1f552
2 changed files with 12 additions and 0 deletions

View File

@ -36,6 +36,14 @@ take effect.
<TD>Server Name</TD>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="SERVERNAME" VALUE="@SERVERNAME@"></TD>
</TR>
<TR>
<TD>Logfile</TD>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="LOGFILE" VALUE="@LOGFILE@"></TD>
</TR>
<TR>
<TD>Art Filename</TD>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="ART_FILENAME" VALUE="@ART_FILENAME@"></TD>
</TR>
<TR>
<TD>Run As</TD>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="RUNAS" VALUE="@RUNAS@"></TD>

View File

@ -337,6 +337,10 @@ int config_write(WS_CONNINFO *pwsc) {
fprintf(configfile,"db_dir\t\t%s\n",ws_getvar(pwsc,"db_dir"));
fprintf(configfile,"rescan_interval\t%s\n",ws_getvar(pwsc,"rescan_interval"));
fprintf(configfile,"always_scan\t%s\n",ws_getvar(pwsc,"always_scan"));
if(ws_getvar(pwsc,"art_filename") && strlen(ws_getvar(pwsc,"art_filename")))
fprintf(configfile,"art_filename\t%s\n",ws_getvar(pwsc,"art_filename"));
if(ws_getvar(pwsc,"logfile") && strlen(ws_getvar(pwsc,"logfile")))
fprintf(configfile,"logfile\t\t%s\n",ws_getvar(pwsc,"logfile"));
fprintf(configfile,"process_m3u\t%s\n",ws_getvar(pwsc,"process_m3u"));
fclose(configfile);