1a9ac6583d47e059e59a91f052be5892dbbec8e2
[citadel.git] / ctdlphp / ctdlheader.php
1 <?PHP
2
3 // $Id$
4 //
5 // Header and footer code to be included on every page.  Not only does it
6 // contain some common markup, but it also calls some code glue that holds
7 // the session together.
8 //
9 // Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
10 // This program is released under the terms of the GNU General Public License.
11
12 include "ctdlsession.php";
13 include "ctdlprotocol.php";
14
15 function bbs_page_header() {
16         establish_citadel_session();
17
18         echo <<<LITERAL
19
20 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
21 <html>
22 <head>
23         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
24         <meta name="Description" content="Citadel BBS">
25         <meta name="Keywords" content="citadel,bbs">
26         <meta name="MSSmartTagsPreventParsing" content="TRUE">
27         <title>
28 LITERAL;
29
30         if ($_SESSION["serv_humannode"]) {
31                 echo $_SESSION["serv_humannode"] ;
32         }
33         else {
34                 echo "BBS powered by Citadel" ;
35         }
36
37         echo <<<LITERAL
38 </title>
39 </head>
40
41 <body
42         text="#000000"
43         bgcolor="#FFFFFF"
44         link="#0000FF"
45         vlink="#990066"
46         alink="#DD0000"
47 >
48
49 <div align=right>
50 <A HREF="logout.php">Log out</A>
51 </div>
52 <HR>
53
54 LITERAL;
55
56 }
57
58
59 function bbs_page_footer() {
60         echo "<HR>";
61         echo "Powered by Citadel.  And a few cups of coffee.<BR>\n";
62         echo "</BODY></HTML>\n";
63 }
64
65 ?>