4 * First-time setup wizard
13 #include <sys/types.h>
15 #include <sys/socket.h>
18 #include <netinet/in.h>
31 void do_setup_wizard(void)
38 if (!strcasecmp(step, "Finish")) {
39 fp = fopen(wizard_filename, "w");
41 fprintf(fp, "%d\n", serv_info.serv_rev_level);
48 output_headers(1, 1, 2, 0, 1, 0, 0);
50 wprintf("<div id=\"banner\">\n");
51 wprintf("<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>");
52 wprintf("<IMG SRC=\"/static/citadel-logo.gif\" WIDTH=64 HEIGHT=64 ALT=\" \" ALIGN=MIDDLE>");
53 wprintf("<SPAN CLASS=\"titlebar\"> First time setup");
54 wprintf("</SPAN></TD><TD ALIGN=RIGHT>");
55 wprintf("</TD></TR></TABLE>\n");
57 "<div id=\"content\">\n");
59 wprintf("<div id=\"fix_scrollbar_bug\">"
60 "<form method=\"post\" action=\"/setup_wizard\">\n"
63 wprintf("<div align=center>"
64 "This is where the setup wizard will be placed.<br>\n"
65 "For now, just click Finish.<br><br>\n"
68 wprintf("<INPUT TYPE=\"submit\" NAME=\"step\" VALUE=\"Next\">\n");
69 wprintf("<INPUT TYPE=\"submit\" NAME=\"step\" VALUE=\"Finish\">\n");
71 wprintf("</form></div></div>\n");