]> code.citadel.org Git - citadel.git/blobdiff - ctdlphp/ctdlheader.php
* Got login/logout working. Still need to redirect unloggedin sessions to
[citadel.git] / ctdlphp / ctdlheader.php
index 57e78cbad06b6759f0a0a6d1e455d2b16a2db552..6fbae0eda8fdfe2a79fabbd313c50d67061a2a7f 100644 (file)
@@ -9,7 +9,7 @@ function bbs_page_header() {
 
        establish_citadel_session();
 
-       echo <<<CITADEL_HEADER_DATA
+       echo <<<LITERAL
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
@@ -18,7 +18,18 @@ function bbs_page_header() {
        <meta name="Description" content="Citadel BBS">
        <meta name="Keywords" content="citadel,bbs">
        <meta name="MSSmartTagsPreventParsing" content="TRUE">
-       <title>FIXME NAME BBS</title>
+       <title>
+LITERAL;
+
+       if ($_SESSION["serv_humannode"]) {
+               echo $_SESSION["serv_humannode"] ;
+       }
+       else {
+               echo "BBS powered by Citadel" ;
+       }
+
+       echo <<<LITERAL
+</title>
 </head>
 
 <body
@@ -29,22 +40,18 @@ function bbs_page_header() {
        alink="#DD0000"
 >
 
-Citadel test PHP thing.<BR>
-CITADEL_HEADER_DATA;
-
-echo "Your session ID is ", $session, "<BR>\n";
-echo "Dude, we're in ", `pwd`, "<BR>";
-echo "<A HREF=\"logout.php\">Log out</A><HR>";
-flush();
-
-test_for_echo();
+LITERAL;
 
+       echo "Your session ID is ", $session, "<BR>\n";
+       echo "<A HREF=\"logout.php\">Log out</A><HR>";
+       // flush();
+       // test_for_echo();
 }
 
 
 function bbs_page_footer() {
        echo "<HR>";
-       echo "Copyright &copy; 2003 by The SCO Group.<BR>\n";
+       echo "Powered by Citadel.  And a few cups of coffee.<BR>\n";
        echo "</BODY></HTML>\n";
 }