Initial revision
[citadel.git] / ctdlphp / ctdlheader.php
1 <?PHP
2
3 include "ctdlsession.php";
4 include "ctdlprotocol.php";
5
6 function bbs_page_header() {
7
8         global $session;
9
10         establish_citadel_session();
11
12         echo <<<CITADEL_HEADER_DATA
13
14 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
15 <html>
16 <head>
17         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
18         <meta name="Description" content="Citadel BBS">
19         <meta name="Keywords" content="citadel,bbs">
20         <meta name="MSSmartTagsPreventParsing" content="TRUE">
21         <title>FIXME NAME BBS</title>
22 </head>
23
24 <body
25         text="#000000"
26         bgcolor="#FFFFFF"
27         link="#0000FF"
28         vlink="#990066"
29         alink="#DD0000"
30 >
31
32 Citadel test PHP thing.<BR>
33 CITADEL_HEADER_DATA;
34
35 echo "Your session ID is ", $session, "<BR>\n";
36 echo "Dude, we're in ", `pwd`, "<BR>";
37 echo "<A HREF=\"logout.php\">Log out</A><HR>";
38 flush();
39
40 test_for_echo();
41
42 }
43
44
45 function bbs_page_footer() {
46         global $clientsocket;
47
48         echo "<HR>";
49
50         if (!fclose($clientsocket)) {
51                 echo "Error closing client socket.<BR>\n";
52         }
53
54         echo "Copyright &copy; 2003 by The SCO Group.<BR>\n";
55         echo "</BODY></HTML>\n";
56
57
58 }
59
60 ?>