X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Futils_cgi.c;h=ed4c4468861e89dcac5a75cfe1a08f8448f59868;hb=8a3753760230b270c8f4615891cba2586a661d21;hp=92bda3e960fdd8946c67d8f0af03def2589084a4;hpb=e05de8dc7bc5a2f0fa7da365e2f3c60b2f42ef4a;p=collection4.git diff --git a/src/utils_cgi.c b/src/utils_cgi.c index 92bda3e..ed4c446 100644 --- a/src/utils_cgi.c +++ b/src/utils_cgi.c @@ -1,3 +1,5 @@ +#include "config.h" + #include #include #include @@ -549,7 +551,9 @@ int html_print_page (const char *title, /* {{{ */ { char *title_html; - printf ("Content-Type: text/html\n\n"); + printf ("Content-Type: text/html\n" + "X-Generator: "PACKAGE_STRING"\n" + "\n\n"); if (title == NULL) title = "c4: collection4 graph interface"; @@ -573,6 +577,8 @@ int html_print_page (const char *title, /* {{{ */ " "); if (cb->top_left != NULL) (*cb->top_left) (user_data); + else + html_print_logo (NULL); printf ("\n" " "); if (cb->top_center != NULL) @@ -621,6 +627,16 @@ int html_print_page (const char *title, /* {{{ */ return (0); } /* }}} int html_print_page */ +int html_print_logo (__attribute__((unused)) void *user_data) /* {{{ */ +{ + printf ("\n" + "

c4

\n" + "
collection 4
\n" + "
\n"); + + return (0); +} /* }}} int html_print_search_box */ + int html_print_search_box (__attribute__((unused)) void *user_data) /* {{{ */ { char *term_html;