Made all html xhtml 1.0 strict compliant

lowercase tag names, make sure attributes as quoted and don't leave
any unclosed tags. also moved the 'http-equiv refresh' to the head tag
(it isn't allowed in the body)
This commit is contained in:
Anders Betnér 2005-03-03 13:50:57 +00:00
parent c1f455b16f
commit a9785ade36
6 changed files with 135 additions and 133 deletions

View File

@ -2,88 +2,88 @@
<h1>Configuration</h1> <h1>Configuration</h1>
<P> <p>
Note that the following fields will only be editable if the Note that the following fields will only be editable if the
configuration file itself is writable by the mt-daapd server. If you configuration file itself is writable by the mt-daapd server. If you
make changes to these settings, they will not be reflected in the make changes to these settings, they will not be reflected in the
running server. The server must be restarted for these values to running server. The server must be restarted for these values to
take effect. take effect.
</p>
<div class="stx"> <div class="stx">
<FORM METHOD="POST" ACTION="/config-update.html"> <form method="post" action="/config-update.html">
<TABLE> <table>
<TR> <tr>
<TD>Web Root</TD> <td>Web Root</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="WEB_ROOT" SIZE="80" VALUE="@WEB_ROOT@"></TD> <td><input type="text" @READONLY@ name="WEB_ROOT" size="80" value="@WEB_ROOT@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Playlist File</TD> <td>Playlist File</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="PLAYLIST" SIZE="80" VALUE="@PLAYLIST@" SIZE="80"></TD> <td><input type="text" @READONLY@ name="PLAYLIST" size="80" value="@PLAYLIST@" /></td>
</TR> </tr>
<TR> <tr>
<TD>MP3 Dir</TD> <td>MP3 Dir</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="MP3_DIR" SIZE="80" VALUE="@MP3_DIR@"></TD> <td><input type="text" @READONLY@ name="MP3_DIR" size="80" value="@MP3_DIR@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Database Dir</TD> <td>Database Dir</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="DB_DIR" SIZE="80" VALUE="@DB_DIR@"></TD> <td><input type="text" @READONLY@ name="DB_DIR" size="80" value="@DB_DIR@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Port</TD> <td>Port</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="PORT" VALUE="@PORT@"></TD> <td><input type="text" @READONLY@ name="PORT" value="@PORT@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Server Name</TD> <td>Server Name</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="SERVERNAME" VALUE="@SERVERNAME@"></TD> <td><input type="text" @READONLY@ name="SERVERNAME" value="@SERVERNAME@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Logfile</TD> <td>Logfile</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="LOGFILE" VALUE="@LOGFILE@"></TD> <td><input type="text" @READONLY@ name="LOGFILE" value="@LOGFILE@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Art Filename</TD> <td>Art Filename</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="ART_FILENAME" VALUE="@ART_FILENAME@"></TD> <td><input type="text" @READONLY@ name="ART_FILENAME" value="@ART_FILENAME@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Run As</TD> <td>Run As</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="RUNAS" VALUE="@RUNAS@"></TD> <td><input type="text" @READONLY@ name="RUNAS" value="@RUNAS@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Admin Password</TD> <td>Admin Password</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="ADMIN_PW" VALUE="@ADMIN_PW@"></TD> <td><input type="text" @READONLY@ name="ADMIN_PW" value="@ADMIN_PW@" /></td>
</TR> </tr>
<TR> <tr>
<TD>MP3 Password</TD> <td>MP3 Password</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="PASSWORD" VALUE="@PASSWORD@"></TD> <td><input type="text" @READONLY@ name="PASSWORD" value="@PASSWORD@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Extensions</TD> <td>Extensions</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="EXTENSIONS" VALUE="@EXTENSIONS@"></TD> <td><input type="text" @READONLY@ name="EXTENSIONS" value="@EXTENSIONS@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Rescan Interval</TD> <td>Rescan Interval</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="RESCAN_INTERVAL" VALUE="@RESCAN_INTERVAL@"></TD> <td><input type="text" @READONLY@ name="RESCAN_INTERVAL" value="@RESCAN_INTERVAL@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Scan Type</TD> <td>Scan type</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="SCAN_TYPE" VALUE="@SCAN_TYPE@"></TD> <td><input type="text" @READONLY@ name="SCAN_TYPE" value="@SCAN_TYPE@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Always Scan</TD> <td>Always Scan</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="ALWAYS_SCAN" VALUE="@ALWAYS_SCAN@"></TD> <td><input type="text" @READONLY@ name="ALWAYS_SCAN" value="@ALWAYS_SCAN@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Compress</TD> <td>Compress</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="COMPRESS" VALUE="@COMPRESS@"></TD> <td><input type="text" @READONLY@ name="COMPRESS" value="@COMPRESS@" /></td>
</TR> </tr>
<TR> <tr>
<TD>Process .m3u Files</TD> <td>Process .m3u Files</td>
<TD><INPUT TYPE="TEXT" @READONLY@ NAME="PROCESS_M3U" VALUE="@PROCESS_M3U@"></TD> <td><input type="text" @READONLY@ name="PROCESS_M3U" value="@PROCESS_M3U@" /></td>
</TR> </tr>
</TABLE> </table>
<INPUT TYPE="SUBMIT" NAME="SUBMIT" VALUE="Submit"> <div><input type="submit" name="SUBMIT" value="Submit" /></div>
</FORM> </form>
</div> </div>
@include ftr.html@ @include ftr.html@

View File

@ -4,12 +4,12 @@
<div class="stx"> <div class="stx">
<FORM ACTION="http://www.pedde.com/mt-daapd/register.php" METHOD="POST"> <form action="http://www.pedde.com/mt-daapd/register.php" method="post">
<table> <table>
<tr valign="top"> <tr valign="top">
<th>Works?</th> <th>Works?</th>
<td><input type="checkbox" name="works" value="CHECKED" CHECKED></td> <td><input type="checkbox" name="works" value="CHECKED" checked="checked" /></td>
<td> <td>
The most important question. Did this version work for you? The most important question. Did this version work for you?
If not, uncheck the box, and put an explanation in the NOTES If not, uncheck the box, and put an explanation in the NOTES
@ -19,7 +19,7 @@
<tr valign="top"> <tr valign="top">
<th>Version</th> <th>Version</th>
<td><input type="text" name="version" value="@VERSION@"></td> <td><input type="text" name="version" value="@VERSION@" /></td>
<td> <td>
This is the version of mt-daapd you are running. If you are using a This is the version of mt-daapd you are running. If you are using a
public release, use the version number (0.1.0, 0.1.1, etc). If it is public release, use the version number (0.1.0, 0.1.1, etc). If it is
@ -30,7 +30,7 @@
<tr valign="top"> <tr valign="top">
<th>System</th> <th>System</th>
<td><input type="text" name="system" value="@SYSTEM@"></td> <td><input type="text" name="system" value="@SYSTEM@" /></td>
<td> <td>
This is the operating system and version you are running. This is the operating system and version you are running.
Use something like "Sparc Solaris 9" or "x86 Linux 2.6.3" or Use something like "Sparc Solaris 9" or "x86 Linux 2.6.3" or
@ -41,7 +41,7 @@
<tr valign="top"> <tr valign="top">
<th>Compile args</th> <th>Compile args</th>
<td><input type="text" name="compile" value="@FLAGS@"></td> <td><input type="text" name="compile" value="@FLAGS@" /></td>
<td> <td>
If you used any compile flags, that would be helpful. Examples If you used any compile flags, that would be helpful. Examples
might include '--with-gdbm', or '--enable-howl' or something else. might include '--with-gdbm', or '--enable-howl' or something else.
@ -50,7 +50,7 @@
<tr valign="top"> <tr valign="top">
<th>Notes</th> <th>Notes</th>
<td><textarea rows=3 cols=40 name="notes"></textarea></td> <td><textarea rows="3" cols="40" name="notes"></textarea></td>
<td> <td>
If it didn't work for you, or if you just want to make a If it didn't work for you, or if you just want to make a
suggestion, leave those notes here. Remember that these suggestion, leave those notes here. Remember that these
@ -60,7 +60,7 @@
<tr valign="top"> <tr valign="top">
<th>Rating</th> <th>Rating</th>
<td><input type="text" name="rating"></td> <td><input type="text" name="rating" /></td>
<td> <td>
Just for fun, give this release a rating from 1 to 10, 1 being Just for fun, give this release a rating from 1 to 10, 1 being
so bad it started your computer on fire, 10 meaning works so so bad it started your computer on fire, 10 meaning works so
@ -69,7 +69,8 @@
</tr> </tr>
</table> </table>
<input type="submit" value="Leave Feedback"> <div><input type="submit" value="Leave Feedback" /></div>
</form>
</div> </div>
@include ftr.html@ @include ftr.html@

View File

@ -1,9 +1,11 @@
<html> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
<title>.: m t - d a a p d :.</title> <title>.: m t - d a a p d :.</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="mt-daapd.css"> <link rel="stylesheet" type="text/css" href="mt-daapd.css" />
@ispage status.html:<meta http-equiv="refresh" content="10" />:@
</head> </head>
<body> <body>
@ -11,8 +13,8 @@
<div> <div>
<!-- <h1>.: m t - d a a p d :.</h1> --> <!-- <h1>.: m t - d a a p d :.</h1> -->
<table border="0" width="100%"> <table border="0" width="100%">
<tr><td width="90%">&nbsp;</td><td align="center"><img src="mt-daapd.png" <tr><td style="width: 90%;">&nbsp;</td><td align="center"><img src="mt-daapd.png" alt="mt-daap logo"/>
border="0"><br>Version @VERSION@</td></tr> <br />Version @VERSION@</td></tr>
</table> </table>
</div> </div>

View File

@ -1,13 +1,12 @@
@include hdr.html@ @include hdr.html@
<META HTTP-EQUIV="refresh" content="10">
<h1>Status</h1> <h1>Status</h1>
<div class="stx"> <div class="stx">
@THREADSTAT@ @THREADSTAT@
<br> <br />
@SERVICE-STATUS@ @SERVICE-STATUS@
</div> </div>

View File

@ -26,5 +26,5 @@ Special thanks to the following people:
this page</a>, as I found it to be an excellent reference this page</a>, as I found it to be an excellent reference
</li> </li>
</ul> </ul>
</div>
@include ftr.html@ @include ftr.html@

View File

@ -789,10 +789,10 @@ void config_emit_service_status(WS_CONNINFO *pwsc, void *value, char *arg) {
int r_days, r_hours, r_mins, r_secs; int r_days, r_hours, r_mins, r_secs;
int scanning; int scanning;
ws_writefd(pwsc,"<TABLE><TR><TH ALIGN=LEFT>Service</TH>"); ws_writefd(pwsc,"<table><tr><th align=\"left\">Service</th>");
ws_writefd(pwsc,"<TH ALIGN=LEFT>Status</TH><TH ALIGN=LEFT>Control</TH></TR>\n"); ws_writefd(pwsc,"<th align=\"left\">Status</th><th align=\"left\">Control</th></tr>\n");
ws_writefd(pwsc,"<TR><TD>Rendezvous</TD>"); ws_writefd(pwsc,"<tr><td>Rendezvous</td>");
#ifndef WITHOUT_MDNS #ifndef WITHOUT_MDNS
if(config.use_mdns) { if(config.use_mdns) {
mdns_running=!rend_running(); mdns_running=!rend_running();
@ -803,35 +803,35 @@ void config_emit_service_status(WS_CONNINFO *pwsc, void *value, char *arg) {
html="<a href=\"config-update.html?action=startmdns\">Start MDNS Server</a>"; html="<a href=\"config-update.html?action=startmdns\">Start MDNS Server</a>";
} }
ws_writefd(pwsc,"<TD>%s</TD><TD>%s</TD></TR>\n",mdns_running ? "Running":"Stopped", ws_writefd(pwsc,"<td>%s</td><td>%s</td></tr>\n",mdns_running ? "Running":"Stopped",
html); html);
} else { } else {
ws_writefd(pwsc,"<TD>Not configured</TD><TD>&nbsp;</TD></TR>\n"); ws_writefd(pwsc,"<td>Not configured</td><td>&nbsp;</td></tr>\n");
} }
#else #else
ws_writefd(pwsc,"<TD>No Support</TD><TD>&nbsp;</TD></TR>\n"); ws_writefd(pwsc,"<td>No Support</td><td>&nbsp;</td></tr>\n");
#endif #endif
ws_writefd(pwsc,"<TR><TD>DAAP Server</TD><TD>%s</TD>",config.stop ? "Stopping":"Running"); ws_writefd(pwsc,"<tr><td>DAAP Server</td><td>%s</td>",config.stop ? "Stopping":"Running");
if(config.stop) { if(config.stop) {
ws_writefd(pwsc,"<TD>Wait...</TD></TR>\n"); ws_writefd(pwsc,"<td>Wait...</td></tr>\n");
} else { } else {
ws_writefd(pwsc,"<TD><a href=\"config-update.html?action=stopdaap\">Stop DAAP Server</a></TD></TR>"); ws_writefd(pwsc,"<td><a href=\"config-update.html?action=stopdaap\">Stop DAAP Server</a></td></tr>");
} }
scanning = config.reload; scanning = config.reload;
ws_writefd(pwsc,"<TR><TD>Background scanner</TD><TD>%s</TD>",scanning ? "Running":"Idle"); ws_writefd(pwsc,"<tr><td>Background scanner</td><td>%s</td>",scanning ? "Running":"Idle");
if(scanning) { if(scanning) {
ws_writefd(pwsc,"<TD>Wait...</TD></TR>"); ws_writefd(pwsc,"<td>Wait...</td></tr>");
} else { } else {
ws_writefd(pwsc,"<TD><A HREF=\"config-update.html?action=rescan\">Start Scan</A></TD></TR>"); ws_writefd(pwsc,"<td><a href=\"config-update.html?action=rescan\">Start Scan</a></td></tr>");
} }
ws_writefd(pwsc,"</TABLE>\n"); ws_writefd(pwsc,"</table>\n");
ws_writefd(pwsc,"<TABLE>\n"); ws_writefd(pwsc,"<table>\n");
ws_writefd(pwsc,"<TR>\n"); ws_writefd(pwsc,"<tr>\n");
ws_writefd(pwsc," <TH>Uptime</TH>\n"); ws_writefd(pwsc," <th>Uptime</th>\n");
r_secs=time(NULL)-config.stats.start_time; r_secs=time(NULL)-config.stats.start_time;
@ -860,34 +860,34 @@ void config_emit_service_status(WS_CONNINFO *pwsc, void *value, char *arg) {
sprintf((char*)&buf[strlen(buf)],"%d second%s ", r_secs, sprintf((char*)&buf[strlen(buf)],"%d second%s ", r_secs,
r_secs == 1 ? "" : "s"); r_secs == 1 ? "" : "s");
ws_writefd(pwsc," <TD>%s</TD>\n",buf); ws_writefd(pwsc," <td>%s</td>\n",buf);
ws_writefd(pwsc,"</TR>\n"); ws_writefd(pwsc,"</tr>\n");
ws_writefd(pwsc,"<TR>\n"); ws_writefd(pwsc,"<tr>\n");
ws_writefd(pwsc," <TH>Songs</TH>\n"); ws_writefd(pwsc," <th>Songs</th>\n");
ws_writefd(pwsc," <TD>%d</TD>\n",db_get_song_count()); ws_writefd(pwsc," <td>%d</td>\n",db_get_song_count());
ws_writefd(pwsc,"</TR>\n"); ws_writefd(pwsc,"</tr>\n");
ws_writefd(pwsc,"<TR>\n"); ws_writefd(pwsc,"<tr>\n");
ws_writefd(pwsc," <TH>Songs Served</TH>\n"); ws_writefd(pwsc," <th>Songs Served</th>\n");
ws_writefd(pwsc," <TD>%d</TD>\n",config.stats.songs_served); ws_writefd(pwsc," <td>%d</td>\n",config.stats.songs_served);
ws_writefd(pwsc,"</TR>\n"); ws_writefd(pwsc,"</tr>\n");
if(!scanning) { if(!scanning) {
ws_writefd(pwsc,"<TR>\n"); ws_writefd(pwsc,"<tr>\n");
ws_writefd(pwsc," <TH>DB Version</TH>\n"); ws_writefd(pwsc," <th>DB Version</th>\n");
ws_writefd(pwsc," <TD>%d</TD>\n",db_version()); ws_writefd(pwsc," <td>%d</td>\n",db_version());
ws_writefd(pwsc,"</TR>\n"); ws_writefd(pwsc,"</tr>\n");
} }
/* /*
ws_writefd(pwsc,"<TR>\n"); ws_writefd(pwsc,"<tr>\n");
ws_writefd(pwsc," <TH>Bytes Served</TH>\n"); ws_writefd(pwsc," <th>Bytes Served</th>\n");
ws_writefd(pwsc," <TD>%d</TD>\n",config.stats.songs_served); ws_writefd(pwsc," <td>%d</td>\n",config.stats.songs_served);
ws_writefd(pwsc,"</TR>\n"); ws_writefd(pwsc,"</tr>\n");
*/ */
ws_writefd(pwsc,"</TABLE>\n"); ws_writefd(pwsc,"</table>\n");
} }
@ -954,19 +954,19 @@ void config_emit_threadstatus(WS_CONNINFO *pwsc, void *value, char *arg) {
if(config_mutex_lock()) if(config_mutex_lock())
return; return;
ws_writefd(pwsc,"<TABLE><TR><TH ALIGN=LEFT>Thread</TH>"); ws_writefd(pwsc,"<table><tr><th align=\"left\">Thread</th>");
ws_writefd(pwsc,"<TH ALIGN=LEFT>Session</TH><TH ALIGN=LEFT>Host</TH>"); ws_writefd(pwsc,"<th align=\"left\">Session</th><th align=\"left\">Host</th>");
ws_writefd(pwsc,"<TH ALIGN=LEFT>Action</TH></TR>\n"); ws_writefd(pwsc,"<th align=\"left\">Action</th></tr>\n");
pss=scan_status.next; pss=scan_status.next;
while(pss) { while(pss) {
ws_writefd(pwsc,"<TR><TD>%d</TD><TD>%d</TD><TD>%s</TD><TD>%s</TD></TR>\n", ws_writefd(pwsc,"<tr><td>%d</td><td>%d</td><td>%s</td><td>%s</td></tr>\n",
pss->thread,pss->session,pss->host,pss->what); pss->thread,pss->session,pss->host,pss->what);
pss=pss->next; pss=pss->next;
} }
ws_writefd(pwsc,"</TABLE>\n"); ws_writefd(pwsc,"</table>\n");
config_mutex_unlock(); config_mutex_unlock();
} }
@ -1076,7 +1076,7 @@ int config_file_is_readonly(void) {
*/ */
void config_emit_readonly(WS_CONNINFO *pwsc, void *value, char *arg) { void config_emit_readonly(WS_CONNINFO *pwsc, void *value, char *arg) {
if(config_file_is_readonly()) { if(config_file_is_readonly()) {
ws_writefd(pwsc,"READONLY"); ws_writefd(pwsc,"readonly=\"readonly\"");
} }
} }