Added a comma after each msgnum exported. The parser was globbing them all together...
[citadel.git] / ctdlphp / ctdlheader.php
index 1a9ac6583d47e059e59a91f052be5892dbbec8e2..66dca66362cdc390babcde39976c356c9de2d911 100644 (file)
@@ -9,18 +9,26 @@
 // 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>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+       <link rel="stylesheet" href="sitestyle.css" type="text/css" />
        <meta name="Description" content="Citadel BBS">
        <meta name="Keywords" content="citadel,bbs">
        <meta name="MSSmartTagsPreventParsing" content="TRUE">
@@ -46,20 +54,65 @@ LITERAL;
        alink="#DD0000"
 >
 
-<div align=right>
-<A HREF="logout.php">Log out</A>
-</div>
-<HR>
 
 LITERAL;
 
+       echo '<div id="Header">';
+       echo '<TABLE BORDER=0 WIDTH=100%>';
+       echo '<TR>';
+       echo '<TD>' . $_SESSION["serv_humannode"] . '</TD>' ;
+       echo '<TD>' . (isset($_SESSION["username"]))?'':$_SESSION["username"] . '</TD>' ;
+       echo '<TD>' . (isset($_SESSION["room"]))?'':$_SESSION["room"] . '</TD>' ;
+       echo '<TD ALIGN=RIGHT><A HREF="logout.php">Log out</A></TD>' ;
+       echo '</TR></TABLE>';
+       echo '</div>';
+
+       // Temporary menu
+       if (isset($_SESSION["logged_in"])) {
+               echo    '<div id="Menu">' .
+                       '<a href="listrooms.php">' .
+                       'room list</A><BR>' .
+                       '<a href="readmsgs.php?mode=all&count=0">' .
+                       'Read all</a><BR>' .
+                       '<a href="readmsgs.php?mode=new&count=0">' .
+                       'Read new</a><BR>' .
+                       '<a href="display_enter.php">' .
+                       'Enter msg</a><BR>' .
+                       '<a href="who.php">' .
+                       'Who is online?</a><BR>' .
+                       '<a href="myinfo.php">' .
+                       'My information</a><BR>' .
+                       '<A HREF="logout.php">' .
+                       'Log out</A>' .
+                       '</div>' ;
+               echo    '<div id="demolinks">' .
+                       '<a href="testcommand.php">' .
+                       'demolist</A><BR>' .
+                       '<a href="readmsgs.php?mode=all&count=0">' .
+                       'Read all</a><BR>' .
+                       '<a href="readmsgs.php?mode=new&count=0">' .
+                       'Read new</a><BR>' .
+                       '<a href="display_enter.php">' .
+                       'Enter msg</a><BR>' .
+                       '<a href="who.php">' .
+                       'Who is online?</a><BR>' .
+                       '<A HREF="logout.php">' .
+                       'Log out</A>' .
+                       '</div>' ;
+       }
+
+       echo '<div id="Content">' ;
+
 }
 
 
 function bbs_page_footer() {
-       echo "<HR>";
-       echo "Powered by Citadel.  And a few cups of coffee.<BR>\n";
-       echo "</BODY></HTML>\n";
+       //echo "<HR>";
+       //echo "Powered by Citadel.  And a few cups of coffee.<BR>\n";
+
+       echo '</div>' ;
+       echo '</BODY></HTML>';
 }
 
+
 ?>