]> code.citadel.org Git - citadel.git/blob - webcit/auth.c
oooh, lotsa good stuff
[citadel.git] / webcit / auth.c
1 /*
2  * auth.c
3  *
4  * This file contains code which relates to authentication of users to Citadel.
5  *
6  */
7
8 #include <stdlib.h>
9 #include <unistd.h>
10 #include <stdio.h>
11 #include <ctype.h>
12 #include <string.h>
13 #include <errno.h>
14 #include "webcit.h"
15
16 void display_login_page() {
17         
18         printf("HTTP/1.0 200 OK\n");
19         output_headers();
20
21         wprintf("<HTML><HEAD><TITLE>Please log in</TITLE></HEAD><BODY>\n");
22         wprintf("<TABLE border=0><TR><TD>\n");
23         wprintf("<IMG SRC=\"/static/velma.gif\">\n");   
24         wprintf("</TD><TD>");
25         wprintf("<H1>&quot;Velma&quot;</H1><H2>(next generation WebCit)</H2>");
26         wprintf("Please log in...\n");
27         wprintf("</TD></TR></TABLE>\n");
28         wprintf("</BODY></HTML>\n");
29
30         wDumpContent();
31         }