]> Git repositories of Nishi - keine.git/commitdiff
add footer
authorNishi <nishi@nishi.boats>
Wed, 11 Sep 2024 10:27:37 +0000 (10:27 +0000)
committerNishi <nishi@nishi.boats>
Wed, 11 Sep 2024 10:27:37 +0000 (10:27 +0000)
git-svn-id: file:///raid/svn-personal/keine/trunk@5 a3977ea8-0dc0-2842-9144-a1a46b47fd40

CGI/cgi.c
config.h.tmpl

index 36e72c0f8b0d5dda85acb9f3bbec37e38e9b97fb..0788d9cba46a80638adf14bf5005d052c80aecfd 100644 (file)
--- a/CGI/cgi.c
+++ b/CGI/cgi.c
@@ -145,6 +145,10 @@ void kn_cgi(void) {
                printf("</pre>\n");
        }
        printf("                <hr>\n");
+#ifdef FOOTER_HTML
+       printf("%s\n", FOOTER_HTML);
+       printf("                <hr>\n");
+#endif
        printf("                <i>Generated by <a href=\"http://nishi.boats/keine\">Keine</a> %s</i>\n", kn_get_version());
        printf("        </body>\n");
        printf("</html>\n");
index 962441571ab6a7c9e80888e798b3079ebac79577..6653292ffeccb8bd5ca0fef38f5381a90cb01b34 100644 (file)
@@ -9,6 +9,9 @@
 /* Manual page root */
 #define MANPAGE_DIR "/usr/share/man"
 
+/* Footer, comment it for no footer */
+#define FOOTER_HTML "some footer"
+
 #endif
 
 /*