|
|
| version 1.15, 2004/02/16 21:06:54 | version 1.16, 2004/02/24 19:01:04 |
|---|---|
| Line 72 char *Docs[] = { | Line 72 char *Docs[] = { |
| NULL | NULL |
| }; | }; |
| /* | |
| * Phrases work is currently commented out. Remove comments here | |
| * and in header setup to enable. | |
| * | |
| * char *Phrases[] = { | |
| * "Tired of Penguins? Switch totheDragon!", | |
| * "Dragging BSD, kicking and screaming, into the 21st century.", | |
| * "Best thing since sliced bread.", | |
| * "A new day and a new way.", | |
| * "The way BSD should be!", | |
| * "Here be Dragons.", | |
| * "DragonFly BSD, the logical successor to FreeBSD 4.x.", | |
| * "Use the Force: DragonFly release1 in June!" | |
| * "Catch the buzz!", | |
| * "When one wing isn't enough!", | |
| * "The best breed", | |
| * "A Dragonfly a day will keep Microsoft away." | |
| * }; | |
| */ | |
| /* | |
| * suggested but not yet added: "BSD with style(9)" | |
| */ | |
| int | int |
| main(int ac, char **av) | main(int ac, char **av) |
| Line 187 main(int ac, char **av) | Line 211 main(int ac, char **av) |
| printf("</HEAD>\n"); | printf("</HEAD>\n"); |
| printf("<BODY>\n"); | printf("<BODY>\n"); |
| printf("<TABLE BORDER=0 WIDTH=100%% BGCOLOR=\"#FFFFFF\">\n"); | printf("<TABLE BORDER=0 WIDTH=760 BGCOLOR=\"#FFFFFF\">\n"); |
| printf("<TR><TD ALIGN=CENTER COLSPAN=2>"); | printf("<TR><TD WIDTH=\"134\"><IMG SRC=\"/smalldf.jpg\"></TD>"); |
| printf("<TD VALIGN=\"bottom\">"); | |
| printf("<TABLE BORDER=0 WIDTH=100%% BGCOLOR=\"#FFFFFF\">\n"); | |
| printf("<TR><TD VALIGN=\"bottom\" ALIGN=\"right\">"); | |
| if (Title) | if (Title) |
| printf("<H2>%s</H2>", Title); | printf("<SPAN CLASS=\"pagetitle\">%s</SPAN>", Title); |
| printf("</TD><TD ALIGN=\"right\"><IMG SRC=\"/smalldf.jpg\"></TD>"); | else |
| printf("</TR><TR><TD COLSPAN=\"2\"><HR></TD>"); | printf("<SPAN CLASS=\"pagetitle\">The DragonFly BSD Project</SPAN>"); |
| printf("</TR></TABLE>"); | |
| /* | |
| * Random phrase printer - commented out until more phrases notes, | |
| * or just one picked. | |
| * | |
| * printf("<BR><I><SMALL>\n"); | |
| * srandom(time(NULL)); | |
| * printf("%s", Phrases[random()%(sizeof(Phrases)/sizeof(Phrases[0]))]); | |
| * printf("</SMALL></I> | |
| */ | |
| printf("</TD></TR>"); | |
| printf("<TR><TD COLSPAN=\"2\"><HR></TD></TR>"); | |
| printf("</TD></TR>\n"); | printf("<TR><TD VALIGN=top>"); |
| printf("<TR><TD VALIGN=top WIDTH=\"150\">"); | |
| generate_side_headers("main", "Main", Main); | generate_side_headers("main", "Main", Main); |
| generate_side_headers("goals", "Goals", Goals); | generate_side_headers("goals", "Goals", Goals); |
| generate_side_headers("status", "Status", Status); | generate_side_headers("status", "Status", Status); |
| generate_side_headers("docs", "Docs", Docs); | generate_side_headers("docs", "Docs", Docs); |
| printf("</TD><TD WIDTH=100%% VALIGN=\"top\" BGCOLOR=\"#ffffff\">"); | printf("</TD><TD VALIGN=\"top\" BGCOLOR=\"#ffffff\">"); |
| fflush(stdout); | fflush(stdout); |
| buildflush(); | buildflush(); |
| printf("<PRE>\n"); | printf("<PRE>\n"); |
| Line 248 generate_side_headers(char *section1, ch | Line 281 generate_side_headers(char *section1, ch |
| ) { | ) { |
| fileclass = " CLASS=\"selected\""; | fileclass = " CLASS=\"selected\""; |
| } else { | } else { |
| fileclass = ""; | fileclass = " CLASS=\"unselected\""; |
| } | } |
| printf("<TD%s><H2><A HREF=\"../%s\">%s</A></H2>", | printf("<TD%s><A HREF=\"../%s\">%s</A>", |
| fileclass, section1, section2); | fileclass, section1, section2); |
| printf("</TD></TR>\n\t<TR><TD>\n<TABLE BORDER=\"0\" WIDTH=\"100%%\">\n"); | printf("</TD></TR>\n\t<TR><TD>\n<TABLE BORDER=\"0\" WIDTH=\"100%%\">\n"); |
| Line 260 generate_side_headers(char *section1, ch | Line 293 generate_side_headers(char *section1, ch |
| if ((strcmp(files[i], FileName) == 0) && | if ((strcmp(files[i], FileName) == 0) && |
| (strcmp(section1, DirName) == 0) | (strcmp(section1, DirName) == 0) |
| ) { | ) { |
| fileclass = " CLASS=\"topLevelSelected\""; | fileclass = " CLASS=\"subselected\""; |
| } else { | } else { |
| fileclass = " CLASS=\"topLevel\""; | fileclass = " CLASS=\"subunselected\""; |
| } | } |
| if ((ptr = strchr(files[i], '.')) != NULL && | if ((ptr = strchr(files[i], '.')) != NULL && |
| Line 270 generate_side_headers(char *section1, ch | Line 303 generate_side_headers(char *section1, ch |
| strcmp(ptr + 1, "html") == 0) | strcmp(ptr + 1, "html") == 0) |
| ) { | ) { |
| len = ptr - files[i]; | len = ptr - files[i]; |
| printf("\t<TR><TD%s><A HREF=\"/%s/%s\">%*.*s</A></TD></TR>\n", | printf("\t<TR><TD%s>", fileclass); |
| fileclass, | printf(" "); |
| printf("<A CLASS=\"nounderline\" "); | |
| printf("HREF=\"/%s/%s\">%*.*s</A></TD></TR>\n", | |
| section1, | section1, |
| files[i], len, len, files[i]); | files[i], len, len, files[i]); |
| } | } |