// 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; if ($_SESSION["serv_humannode"]) { echo $_SESSION["serv_humannode"] ; } else { echo "BBS powered by Citadel" ; } echo <<<LITERAL LITERAL; echo ''; echo ''; echo '' ; echo '' ; echo '' ; echo '' ; echo '
' . $_SESSION["serv_humannode"] . '' . $_SESSION["username"] . '' . $_SESSION["room"] . 'Log out

'; // Temporary menu if ($_SESSION["logged_in"]) { echo '' . 'room list ' . '' . 'Read all messages ' . '' . 'Read new messages ' . '' . 'Enter a message ' . '' . 'Who is online? ' . '' . 'Log out
' ; } } function bbs_page_footer() { echo "
"; echo "Powered by Citadel. And a few cups of coffee.
\n"; echo "\n"; } ?>