* Allow the session proxy to time out after 15 minutes.
[citadel.git] / ctdlphp / ctdlheader.php
1 <?PHP
2
3 include "ctdlsession.php";
4 include "ctdlprotocol.php";
5
6 function bbs_page_header() {
7         global $session;
8
9         if(strcmp('4.3.0', phpversion()) > 0) {
10                 die("This program requires PHP 4.3.0 or newer.");
11         }
12
13         establish_citadel_session();
14
15         echo <<<LITERAL
16
17 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
18 <html>
19 <head>
20         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
21         <meta name="Description" content="Citadel BBS">
22         <meta name="Keywords" content="citadel,bbs">
23         <meta name="MSSmartTagsPreventParsing" content="TRUE">
24         <title>
25 LITERAL;
26
27         if ($_SESSION["serv_humannode"]) {
28                 echo $_SESSION["serv_humannode"] ;
29         }
30         else {
31                 echo "BBS powered by Citadel" ;
32         }
33
34         echo <<<LITERAL
35 </title>
36 </head>
37
38 <body
39         text="#000000"
40         bgcolor="#FFFFFF"
41         link="#0000FF"
42         vlink="#990066"
43         alink="#DD0000"
44 >
45
46 LITERAL;
47
48         echo "Your session ID is ", $session, "<BR>\n";
49         echo "<A HREF=\"logout.php\">Log out</A><HR>";
50         // flush();
51         // test_for_echo();
52 }
53
54
55 function bbs_page_footer() {
56         echo "<HR>";
57         echo "Powered by Citadel.  And a few cups of coffee.<BR>\n";
58         echo "</BODY></HTML>\n";
59 }
60
61 ?>