]> code.citadel.org Git - citadel.git/blobdiff - ctdlphp/ctdlheader.php
* Moved all of the session-management code from ctdlheader.php to
[citadel.git] / ctdlphp / ctdlheader.php
index 6fbae0eda8fdfe2a79fabbd313c50d67061a2a7f..1a9ac6583d47e059e59a91f052be5892dbbec8e2 100644 (file)
@@ -1,12 +1,18 @@
 <?PHP
 
+// $Id$
+//
+// Header and footer code to be included on every page.  Not only does it
+// contain some common markup, but it also calls some code glue that holds
+// the session together.
+//
+// Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
+// This program is released under the terms of the GNU General Public License.
+
 include "ctdlsession.php";
 include "ctdlprotocol.php";
 
 function bbs_page_header() {
-
-       global $session;
-
        establish_citadel_session();
 
        echo <<<LITERAL
@@ -40,12 +46,13 @@ LITERAL;
        alink="#DD0000"
 >
 
+<div align=right>
+<A HREF="logout.php">Log out</A>
+</div>
+<HR>
+
 LITERAL;
 
-       echo "Your session ID is ", $session, "<BR>\n";
-       echo "<A HREF=\"logout.php\">Log out</A><HR>";
-       // flush();
-       // test_for_echo();
 }