diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-12-12 11:37:56 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-12-12 11:37:56 +0000 |
commit | f26da2481c122a41d8ac262a62c43dc2578b7b8c (patch) | |
tree | 6dc82793925ddc58e1cc59aad5f541b98aad7b24 /usr.bin/bgplg | |
parent | bf28b98b28ad7ea14cb372eb55baa4f3ae3eb5a4 (diff) |
Valid XHTML 1.1! (according to http://validator.w3.org/)
Diffstat (limited to 'usr.bin/bgplg')
-rw-r--r-- | usr.bin/bgplg/bgplg.c | 12 | ||||
-rw-r--r-- | usr.bin/bgplg/bgplg.css | 5 | ||||
-rw-r--r-- | usr.bin/bgplg/bgplg.head | 2 | ||||
-rw-r--r-- | usr.bin/bgplg/index.html | 14 |
4 files changed, 25 insertions, 8 deletions
diff --git a/usr.bin/bgplg/bgplg.c b/usr.bin/bgplg/bgplg.c index d08bf08e7a6..8de712be157 100644 --- a/usr.bin/bgplg/bgplg.c +++ b/usr.bin/bgplg/bgplg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgplg.c,v 1.1 2006/12/11 23:10:10 reyk Exp $ */ +/* $OpenBSD: bgplg.c,v 1.2 2006/12/12 11:37:55 reyk Exp $ */ /* * Copyright (c) 2005, 2006 Reyk Floeter <reyk@vantronix.net> @@ -251,7 +251,10 @@ main(void) printf("Content-Type: text/html\n" "Cache-Control: no-cache\n\n" - "<html>\n" + "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n" + "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" " + "\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n" + "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" "<head>\n" "<title>bgplg</title>\n"); if (stat(INC_STYLE, &st) == 0) { @@ -277,7 +280,9 @@ main(void) } if ((query = lg_getenv("QUERY_STRING", &query_length)) != NULL) cmd = lg_getarg("cmd=", query, query_length); - printf("<form action='%s'>\n" + printf( + "<form action='%s'>\n" +"<div class=\"command\">\n" "<select name='cmd'>\n", self); for (i = 0; cmds[i].name != NULL; i++) { @@ -295,6 +300,7 @@ main(void) printf("</select>\n" "<input type='text' name='req'/>\n" "<input type='submit' value='submit'/>\n" + "</div>\n" "</form>\n" "<pre>\n"); fflush(stdout); diff --git a/usr.bin/bgplg/bgplg.css b/usr.bin/bgplg/bgplg.css index 92a509f140b..d7322b277e2 100644 --- a/usr.bin/bgplg/bgplg.css +++ b/usr.bin/bgplg/bgplg.css @@ -2,3 +2,8 @@ text-align: left; width: 100%; } + +img { + border: none; + border-width: 0px; +} diff --git a/usr.bin/bgplg/bgplg.head b/usr.bin/bgplg/bgplg.head index 85b85a76c62..36d267456bc 100644 --- a/usr.bin/bgplg/bgplg.head +++ b/usr.bin/bgplg/bgplg.head @@ -2,5 +2,5 @@ <body style="text-align: center"> <div style="margin: 0px auto; text-align: left; width: 599px;"> <a href="http://www.openbgp.org/"> -<img src="/bgplg/openbgpd.gif" border="0"/> +<img src="/bgplg/openbgpd.gif" alt="OpenBGPD"/> </a> diff --git a/usr.bin/bgplg/index.html b/usr.bin/bgplg/index.html index 743b97512ae..32bebcbc897 100644 --- a/usr.bin/bgplg/index.html +++ b/usr.bin/bgplg/index.html @@ -1,5 +1,11 @@ -<html> -<head> - <meta http-equiv="refresh" content="1; URL=/cgi-bin/bgplg"/> -</head> +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>bgplg...</title> + <meta http-equiv="refresh" content="1; URL=/cgi-bin/bgplg"/> + </head> + <body> + <h1><a href="/cgi-bin/bgplg">bgplg...</a></h1> + </body> </html> |