]> code.citadel.org Git - citadel.git/blobdiff - webcit/graphics.c
* move some more vars from the session context to strbuf (the use of StrBufAppendTemp...
[citadel.git] / webcit / graphics.c
index 601b4d0a43359aed77fef439aa3a2394dcc02ab6..ba879dc35aac4bd09d9e47da2acff8444d594160 100644 (file)
@@ -9,6 +9,8 @@
 
 void display_graphics_upload(char *description, char *filename, char *uplurl)
 {
+       WCTemplputParams SubTP;
+       StrBuf *Buf;
        char buf[SIZ];
 
 
@@ -24,8 +26,13 @@ void display_graphics_upload(char *description, char *filename, char *uplurl)
 
        output_headers(1, 1, 1, 0, 0, 0);
 
-       svput("BOXTITLE", WCS_STRING, _("Image upload"));
-       do_template("beginbox", NULL);
+       Buf = NewStrBufPlain(_("Image upload"), -1);
+       memset(&SubTP, 0, sizeof(WCTemplputParams));
+       SubTP.ContextType = CTX_STRBUF;
+       SubTP.Context = Buf;
+       DoTemplate(HKEY("beginbox"), NULL, &SubTP);
+
+       FreeStrBuf(&Buf);
 
        wprintf("<form enctype=\"multipart/form-data\" action=\"%s\" "
                "method=\"post\" name=\"graphicsupload\">\n", uplurl);