summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2008-07-14 15:02:41 +0530
committerMukund Sivaraman <muks@banu.com>2008-07-14 15:02:41 +0530
commit74f5c3e417bece7fdd6e38011ac9e6cdabaeefea (patch)
tree4e48e009ff22b692fddd158e6826dadd576bdbba
parent4caa397ec58ef03d30b8e2129b9ff5a5fc872cbc (diff)
downloadtinyproxy-74f5c3e417bece7fdd6e38011ac9e6cdabaeefea.tar.gz
tinyproxy-74f5c3e417bece7fdd6e38011ac9e6cdabaeefea.zip
Spruce up error page footers a bit
-rw-r--r--doc/debug.html2
-rw-r--r--doc/default.html2
-rw-r--r--doc/stats.html8
-rw-r--r--src/html-error.c1
4 files changed, 9 insertions, 4 deletions
diff --git a/doc/debug.html b/doc/debug.html
index 1116c00..72d89c9 100644
--- a/doc/debug.html
+++ b/doc/debug.html
@@ -49,7 +49,7 @@
<hr />
-<p><em>Generated by {package} ({version})</em></p>
+<p><em>Generated by <a href="{website}">{package}</a> version {version}.</em></p>
</body>
diff --git a/doc/default.html b/doc/default.html
index b0a7d8f..0245254 100644
--- a/doc/default.html
+++ b/doc/default.html
@@ -16,7 +16,7 @@
<hr />
-<p><em>Generated by {package} ({version})</em></p>
+<p><em>Generated by <a href="{website}">{package}</a> version {version}.</em></p>
</body>
diff --git a/doc/stats.html b/doc/stats.html
index 7ec6acc..7179859 100644
--- a/doc/stats.html
+++ b/doc/stats.html
@@ -4,7 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
-<title>{package} {version} run-time statistics</title>
+<title>{package} version {version} run-time statistics</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css" media="screen">
@@ -24,7 +24,7 @@ th, td
<body>
-<h1>{package} {version} run-time statistics</h1>
+<h1>{package} version {version} run-time statistics</h1>
<table>
@@ -60,6 +60,10 @@ th, td
</table>
+<hr />
+
+<p><em>Generated by <a href="{website}">{package}</a> version {version}.</em></p>
+
</body>
</html>
diff --git a/src/html-error.c b/src/html-error.c
index 4a07793..6f4fd9e 100644
--- a/src/html-error.c
+++ b/src/html-error.c
@@ -260,6 +260,7 @@ add_standard_vars(struct conn_s *connptr)
ADD_VAR_RET("clienthost", connptr->client_string_addr);
ADD_VAR_RET("version", VERSION);
ADD_VAR_RET("package", PACKAGE);
+ ADD_VAR_RET("website", "http://tinyproxy.banu.com/");
ADD_VAR_RET("date", timebuf);
return (0);
}