X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fwebcit.c;h=eeed42acca84a9f7ad9a4cd3475abb7df4283d7b;hb=a66cce670c39f513565011e93e7865c44806b501;hp=37289dea89ba649811642f70d8c9f0e82f4afa2b;hpb=78d99d2101a80d3be43211352b03fddfdd82bcd9;p=citadel.git diff --git a/webcit/webcit.c b/webcit/webcit.c index 37289dea8..eeed42acc 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -13,14 +13,6 @@ #include "webserver.h" #include "mime_parser.h" -/** - * Subdirectories from which the client may request static content - */ -char *static_content_dirs[] = { - "static", /** static templates */ - "tiny_mce" /** the JS editor */ -}; - /** * String to unset the cookie. * Any date "in the past" will work, so I chose my birthday, right down to @@ -110,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); */ } } @@ -262,7 +256,6 @@ void escputs(char *strbuf) /** * \brief Escape a string for feeding out as a URL. - * Returns a pointer to a buffer that must be freed by the caller! * \param outbuf the output buffer * \param strbuf the input buffer */ @@ -435,6 +428,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, + "" + ); + } do_template("head"); } @@ -445,8 +443,8 @@ void output_headers( int do_httpheaders, /**< 1 = output HTTP headers /** check for ImportantMessages (these display in a div overlaying the main screen) */ if (strlen(WC->ImportantMessage) > 0) { wprintf("
\n"); - wprintf("" - "%s
\n", WC->ImportantMessage); + wprintf("" + "%s
\n", WC->ImportantMessage); wprintf("
\n"); wprintf("