summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordusty <dusty>2004-06-19 18:53:42 +0200
committerdusty <dusty>2004-06-19 18:53:42 +0200
commita329ff3c01a502a967f6f5a5dbe7635fa93841e2 (patch)
treee801a288d24fe77b23e1151e644e991c30e8fbe8
parent22e8556691d134c4bf778837d4a0c24e4504b8cf (diff)
downloadaur-a329ff3c01a502a967f6f5a5dbe7635fa93841e2.tar.gz
aur-a329ff3c01a502a967f6f5a5dbe7635fa93841e2.tar.xz
sanitize and XHTMLize header and footer functions
-rw-r--r--web/lib/aur.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index 87309e46..70c7c5bb 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -74,7 +74,9 @@ function set_lang() {
# common header
#
function html_header() {
- print "<html>\n";
+ print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
+ print "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
+ print "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">";
print "<head>\n";
print "<title>AUR</title>\n";
print "<link rel='stylesheet' type='text/css' href='/css/fonts.css'/>\n";
@@ -111,6 +113,7 @@ function html_header() {
print " </td>\n";
print " </tr>\n";
print " </table>\n";
+ print " </td>\n";
print " </tr>\n";
# Menu items
@@ -155,6 +158,7 @@ function html_footer($ver="") {
print "<tr><td align='right'><span class='fix'>".$ver."</span></td></tr>\n";
print "</table>\n";
}
+ print "<\p>\n";
print "</body>\n</html>";
return;
}