[MINOR] report haproxy's version by default on the stats page

For people who manage many haproxies, it is sometimes convenient
to be informed of their version. This patch adds this, with the
option to disable this report by specifying "stats hide-version".

Also, the feature may be permanently disabled by setting the
STATS_VERSION_STRING to "" (empty string), or the format can
simply be adjusted.
diff --git a/include/common/defaults.h b/include/common/defaults.h
index 2c757d2..5b18767 100644
--- a/include/common/defaults.h
+++ b/include/common/defaults.h
@@ -125,4 +125,12 @@
 #define SRV_CHK_INTER_THRES 1000
 #endif
 
+/* Specifies the string used to report the version and release date on the
+ * statistics page. May be defined to the empty string ("") to permanently
+ * disable the feature.
+ */
+#ifndef STATS_VERSION_STRING
+#define STATS_VERSION_STRING " version " HAPROXY_VERSION ", released " HAPROXY_DATE
+#endif
+
 #endif /* _COMMON_DEFAULTS_H */
diff --git a/include/common/uri_auth.h b/include/common/uri_auth.h
index 9f675db..fbbe7df 100644
--- a/include/common/uri_auth.h
+++ b/include/common/uri_auth.h
@@ -31,12 +31,15 @@
 	char *px_id;			/* proxy id */
 };
 
+#define	ST_HIDEVER	0x00000001	/* do not report the version and reldate */
+
 /* later we may link them to support multiple URI matching */
 struct uri_auth {
 	int uri_len;			/* the prefix length */
 	char *uri_prefix;		/* the prefix we want to match */
 	char *auth_realm;		/* the realm reported to the client */
 	int refresh;			/* refresh interval for the browser (in seconds) */
+	int flags;			/* some flags describing the statistics page */
 	struct user_auth *users;	/* linked list of valid user:passwd couples */
 	struct stat_scope *scope;	/* linked list of authorized proxies */
 };
@@ -67,6 +70,7 @@
 struct uri_auth *stats_set_uri(struct uri_auth **root, char *uri);
 struct uri_auth *stats_set_realm(struct uri_auth **root, char *realm);
 struct uri_auth *stats_set_refresh(struct uri_auth **root, int interval);
+struct uri_auth *stats_set_flag(struct uri_auth **root, int flag);
 struct uri_auth *stats_add_auth(struct uri_auth **root, char *user);
 struct uri_auth *stats_add_scope(struct uri_auth **root, char *scope);