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.
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.
13 // All of the back-end magic gets included from here. The rest of the
14 // pages in the system then only have to include ctdlheader.php (since it
15 // is required) and they get the others automatically.
17 include "ctdlsession.php";
18 include "ctdlprotocol.php";
19 include "ctdlelements.php";
21 function bbs_page_header() {
23 // Make sure we're connected to Citadel. Do not remove this!!
24 establish_citadel_session();
27 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
30 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
31 <meta name="Description" content="Citadel BBS">
32 <meta name="Keywords" content="citadel,bbs">
33 <meta name="MSSmartTagsPreventParsing" content="TRUE">
37 if ($_SESSION["serv_humannode"]) {
38 echo $_SESSION["serv_humannode"] ;
41 echo "BBS powered by Citadel" ;
59 echo '<TABLE BORDER=0 WIDTH=100%>';
61 echo '<TD>' . $_SESSION["serv_humannode"] . '</TD>' ;
62 echo '<TD>' . $_SESSION["username"] . '</TD>' ;
63 echo '<TD>' . $_SESSION["room"] . '</TD>' ;
64 echo '<TD ALIGN=RIGHT><A HREF="logout.php">Log out</A></TD>' ;
65 echo '</TR></TABLE><BR>';
68 if ($_SESSION["logged_in"]) {
69 echo '<a href="listrooms.php">' .
71 '<a href="readmsgs.php?mode=all&count=0">' .
72 'Read all messages</a> ' .
73 '<a href="readmsgs.php?mode=new&count=0">' .
74 'Read new messages</a> ' .
75 '<a href="display_enter.php">' .
76 'Enter a message</a> ' .
77 '<a href="who.php">' .
78 'Who is online?</a> ' .
79 '<A HREF="logout.php">' .
86 function bbs_page_footer() {
88 echo "Powered by Citadel. And a few cups of coffee.<BR>\n";
89 echo "</BODY></HTML>\n";