]> code.citadel.org Git - citadel.git/blobdiff - ctdlphp/ctdlheader.php
*** empty log message ***
[citadel.git] / ctdlphp / ctdlheader.php
index 1a9ac6583d47e059e59a91f052be5892dbbec8e2..3eaa8a855192604a5980b63868f3599686ebdf54 100644 (file)
@@ -9,14 +9,21 @@
 // Copyright (c) 2003 by Art Cancro <ajc@uncensored.citadel.org>
 // This program is released under the terms of the GNU General Public License.
 
+
+// All of the back-end magic gets included from here.  The rest of the
+// pages in the system then only have to include ctdlheader.php (since it
+// is required) and they get the others automatically.
+//
 include "ctdlsession.php";
 include "ctdlprotocol.php";
+include "ctdlelements.php";
 
 function bbs_page_header() {
+
+       // Make sure we're connected to Citadel.  Do not remove this!!
        establish_citadel_session();
 
        echo <<<LITERAL
-
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
@@ -46,13 +53,33 @@ LITERAL;
        alink="#DD0000"
 >
 
-<div align=right>
-<A HREF="logout.php">Log out</A>
-</div>
-<HR>
 
 LITERAL;
 
+       echo '<TABLE BORDER=0 WIDTH=100%>';
+       echo '<TR>';
+       echo '<TD>' . $_SESSION["serv_humannode"] . '</TD>' ;
+       echo '<TD>' . $_SESSION["username"] . '</TD>' ;
+       echo '<TD>' . $_SESSION["room"] . '</TD>' ;
+       echo '<TD ALIGN=RIGHT><A HREF="logout.php">Log out</A></TD>' ;
+       echo '</TR></TABLE><BR>';
+
+       // Temporary menu
+       if ($_SESSION["logged_in"]) {
+               echo    '<a href="listrooms.php">' .
+                       'room list</A> ' .
+                       '<a href="readmsgs.php?mode=all&count=0">' .
+                       'Read all messages</a> ' .
+                       '<a href="readmsgs.php?mode=new&count=0">' .
+                       'Read new messages</a> ' .
+                       '<a href="display_enter.php">' .
+                       'Enter a message</a> ' .
+                       '<a href="who.php">' .
+                       'Who is online?</a> ' .
+                       '<A HREF="logout.php">' .
+                       'Log out</A><HR>' ;
+       }
+
 }
 
 
@@ -62,4 +89,5 @@ function bbs_page_footer() {
        echo "</BODY></HTML>\n";
 }
 
+
 ?>