]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.c
* static.local/ is now created
[citadel.git] / webcit / webcit.c
index b8b90b1c90c781b18738cf30c3ce1f87684bce52..803b877f8f2bd281dcfa8b9861fa0b798939c32a 100644 (file)
@@ -102,6 +102,8 @@ void addurls(char *url)
                unescape_input(u->url_data);
                up = ptr;
                ++up;
+
+               /* lprintf(9, "%s = %s\n", u->url_key, u->url_data); */
        }
 }
 
@@ -427,6 +429,11 @@ void output_headers(       int do_httpheaders,     /**< 1 = output HTTP headers
 
        if (do_htmlhead) {
                begin_burst();
+               if (!access("static.local/webcit.css", R_OK)) {
+                       svprintf("CSSLOCAL", WCS_STRING,
+                          "<link href=\"static.local/webcit.css\" rel=\"stylesheet\" type=\"text/css\">"
+                       );
+               }
                do_template("head");
        }