X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=ctdlphp%2Fctdlheader.php;h=66dca66362cdc390babcde39976c356c9de2d911;hb=fa2dd842abb5feedea3e2253255722fcaecc3c6f;hp=57e78cbad06b6759f0a0a6d1e455d2b16a2db552;hpb=82b5392b71d56d75b84e76599004391dd7f16d39;p=citadel.git diff --git a/ctdlphp/ctdlheader.php b/ctdlphp/ctdlheader.php index 57e78cbad..66dca6636 100644 --- a/ctdlphp/ctdlheader.php +++ b/ctdlphp/ctdlheader.php @@ -1,24 +1,49 @@ +// 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() { - global $session; - + // Make sure we're connected to Citadel. Do not remove this!! establish_citadel_session(); - echo << + - FIXME NAME BBS + +LITERAL; + + if ($_SESSION["serv_humannode"]) { + echo $_SESSION["serv_humannode"] ; + } + else { + echo "BBS powered by Citadel" ; + } + + echo <<<LITERAL + -Citadel test PHP thing.
-CITADEL_HEADER_DATA; -echo "Your session ID is ", $session, "
\n"; -echo "Dude, we're in ", `pwd`, "
"; -echo "Log out
"; -flush(); +LITERAL; + + echo ''; + + // Temporary menu + if (isset($_SESSION["logged_in"])) { + echo '' ; + echo '' ; + } -test_for_echo(); + echo '
' ; } function bbs_page_footer() { - echo "
"; - echo "Copyright © 2003 by The SCO Group.
\n"; - echo "\n"; + //echo "
"; + //echo "Powered by Citadel. And a few cups of coffee.
\n"; + + echo '
' ; + echo ''; } + ?>