char start_when[100];
buf = str_make();
- html_open(buf, "Graphs", opt_interface, /*want_graph_js=*/1);
+ html_open(buf, "Graphs", /*want_graph_js=*/1);
str_append(buf, "<p>\n");
str_append(buf, "<b>Running for</b> <span id=\"rf\">");
#define NEXT "next page >>>"
#define FULL "full table"
- html_open(buf, "Hosts", opt_interface, /*want_graph_js=*/0);
+ html_open(buf, "Hosts", /*want_graph_js=*/0);
format_table(buf, hosts_db, start, sort, full);
/* <prev | full | stats | next> */
/* Overview. */
buf = str_make();
- html_open(buf, ip, opt_interface, /*want_graph_js=*/0);
+ html_open(buf, ip, /*want_graph_js=*/0);
if (strcmp(ip, canonical) != 0)
str_appendf(buf, "(canonically <b>%s</b>)\n", canonical);
str_appendf(buf,
* GNU General Public License version 2. (see COPYING.GPL)
*/
-#include "config.h" /* for PACKAGE_STRING, PACKAGE_URL */
+#include "darkstat.h"
#include "str.h"
#include "html.h"
#include "http.h" /* for http_base_url */
-void html_open(struct str *buf, const char *title, const char *interface,
+void html_open(struct str *buf, const char *title,
const int want_graph_js)
{
str_appendf(buf,
"<meta name=\"generator\" content=\"" PACKAGE_STRING "\">\n"
"<meta name=\"robots\" content=\"noindex, noarchive\">\n"
"<link rel=\"stylesheet\" href=\"%sstyle.css\" type=\"text/css\">\n"
- , title, interface, http_base_url);
+ , title, opt_interface, http_base_url);
if (want_graph_js)
str_appendf(buf,
#include "config.h" /* for PACKAGE_STRING */
-void html_open(struct str *buf, const char *title, const char *interface,
+void html_open(struct str *buf, const char *title,
const int want_graph_js);
void html_close(struct str *buf);