/* * First-time setup wizard */ #include "webcit.h" void do_setup_wizard(void) { char *step; FILE *fp; step = bstr("step"); if (!strcasecmp(step, "Finish")) { fp = fopen(wizard_filename, "w"); if (fp != NULL) { fprintf(fp, "%d\n", WC->serv_info->serv_rev_level); fclose(fp); } do_welcome(); return; } output_headers(1, 1, 1, 0, 0, 0); wc_printf("
\n"); wc_printf(" First time setup"); wc_printf("
\n"); wc_printf("
\n"); wc_printf("
\n"); wc_printf("\n", WC->nonce); wc_printf("
" "This is where the setup wizard will be placed.
\n" "For now, just click Finish.

\n" ); wc_printf("\n"); wc_printf("\n"); wc_printf("
\n"); wDumpContent(1); } void InitModule_SETUP_WIZARD (void) { WebcitAddUrlHandler(HKEY("setup_wizard"), "", 0, do_setup_wizard, 0); }