* copy daves great handler script and modify it to fit the simpler needs of webcit.
[citadel.git] / webcit / siteconfig.c
index a18bbd18e56602a5064b329de0d90d85454e15a0..5a2ee2e6f4f780db460788e1d6513f24fe9ad12c 100644 (file)
@@ -113,7 +113,7 @@ void display_siteconfig(void)
                );
                
        wprintf("<form method=\"post\" action=\"siteconfig\">\n");
-       wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%ld\">\n", WC->nonce);
+       wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
        
        sprintf(&general[strlen(general)], "<tr><td><a href=\"display_edithello\"> %s </a></td>",           _("Change Login Logo"));
        sprintf(&general[strlen(general)],     "<td><a href=\"display_editgoodbuye\"> %s </a></td></tr>\n", _("Change Logout Logo"));
@@ -845,5 +845,11 @@ void siteconfig(void)
        display_aide_menu();
 }
 
-
+void 
+InitModule_SITECONFIG
+(void)
+{
+       WebcitAddUrlHandler(HKEY("display_siteconfig"), display_siteconfig, 0);
+       WebcitAddUrlHandler(HKEY("siteconfig"), siteconfig, 0);
+}
 /*@}*/