setup_wizard.c

00001 /*
00002  * $Id: setup_wizard.c 5147 2007-05-08 15:36:22Z ajc $
00003  *
00004  * First-time setup wizard
00005  */
00006 
00007 #include "webcit.h"
00008 
00009 
00010 /*
00011  */
00012 void do_setup_wizard(void)
00013 {
00014         char *step;
00015         FILE *fp;
00016 
00017         step = bstr("step");
00018 
00019         if (!strcasecmp(step, "Finish")) {
00020                 fp = fopen(wizard_filename, "w");
00021                 if (fp != NULL) {
00022                         fprintf(fp, "%d\n", serv_info.serv_rev_level);
00023                         fclose(fp);
00024                 }
00025                 do_welcome();
00026                 return;
00027         }
00028 
00029         output_headers(1, 1, 2, 0, 0, 0);
00030 
00031         wprintf("<div id=\"banner\">\n");
00032         wprintf("<TABLE class=\"setup_banner\"><TR><TD>");
00033         wprintf("<img src=\"static/citadel-logo.gif\" WIDTH=64 HEIGHT=64 ALT=\" \" ALIGN=MIDDLE>");
00034         wprintf("<SPAN CLASS=\"titlebar\">&nbsp;First time setup");
00035         wprintf("</SPAN></TD><TD ALIGN=RIGHT>");
00036         wprintf("</TD></TR></TABLE>\n");
00037         wprintf("</div>\n"
00038                 "<div id=\"content\">\n");
00039 
00040         wprintf("<div class=\"fix_scrollbar_bug\">"
00041                 "<form method=\"post\" action=\"setup_wizard\">\n"
00042         );
00043 
00044         wprintf("<div align=center>"
00045                 "This is where the setup wizard will be placed.<br>\n"
00046                 "For now, just click Finish.<br><br>\n"
00047         );
00048 
00049         wprintf("<INPUT TYPE=\"submit\" NAME=\"step\" VALUE=\"Next\">\n");
00050         wprintf("<INPUT TYPE=\"submit\" NAME=\"step\" VALUE=\"Finish\">\n");
00051 
00052         wprintf("</form></div></div>\n");
00053         wDumpContent(1);
00054 }
00055 
00056 

Generated on Wed Jun 20 23:13:10 2007 for webcit by  doxygen 1.5.2