this is the original code, i just stripped out the part where it gives the redirect stuff. this way i could have it for any page in my site instead of just the forums.
header and footer basically just open the table and close the table. header also includes the menu.
header.inc.php:
PHP Code:
<?
ob_start('ob_gzhandler');
chdir("./forums/");
require_once("./global.php");
require_once("./includes/functions_forumlist.php");
chdir("../");
chdir("./chat/");
require_once("./users.php");
chdir("../");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en">
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<meta name="generator" content="vBulletin 3.0.3" />
<meta name="keywords" content="veterans,resources,help,support,vietnam,ptsd,agent orange,cancer,gulf war,iraq,afghanistan" />
<meta name="description" content="This is a discussion forum where veterans help other veterans." />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="http://www.veteransresources.org/favicon.ico" type="image/x-icon" />
<title>VeteransResources.org</title>
<style type="text/css">
body {
margin: 0px 0px 0px 0px;
background-color: #f0eedb;
}
.black {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
color: #000000;
padding-right: 10px;
padding-left: 10px;
padding-top: 10px;
padding-bottom: 10px;
}
.black a:link, .black a:visited, .black a:active .black a:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
color: #000000;
text-decoration: underline;
}
.white {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #ffffff;
padding-right: 10px;
padding-left: 10px;
}
.white a:link, .white a:visited, .white a:active, .white a:hover {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #ffffff;
text-decoration: none;
}
.loginform {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 13px;
color: #000000;
}
.maintable {
height: 100%;
}
</style>
<script language="javascript" type="text/javascript">
<!--
function openchat() {
window.open('http://www.veteransresources.org/chat/member.php','chat','resizable=yes,scrollbars=no,width=650,height=500');
}
//-->
</script>
</head>
<body>
<table width="760" class="maintable" cellspacing="0" cellpadding="0" align="center" border="0">
<tr>
<td width="480" height="30" bgcolor="#2d356e" class="white"><a href="http://www.veteransresources.org">Home</a> | <a href="http://www.veteransresources.org/forums/">Message Board</a> | <? if ($bbuserinfo['userid']!=0) {?><a href="#" onclick="openchat();">Chat (<?=$zznumber?>)</a> | <?}?><a href="http://www.veteransresources.org/links.php">Links</a> | <a href="http://www.veteransresources.org/forums/sendmessage.php">Contact</a></td>
<td width="280" height="30" align="right" bgcolor="#2d356e" class="white"><? echo date("F j, Y"); ?></td>
</tr>
<tr>
<td width="760" height="100" colspan="2"><img src="images/logo.jpg" width="760" height="100" border="0" alt="VeteransResources.org" /></td>
</tr>
<tr>
<td width="760" bgcolor="#ffffff" colspan="2" class="black" valign="top">
footer.inc.php:
PHP Code:
</td>
</tr>
<tr>
<td width="480" height="30" bgcolor="#2d356e" class="white"><a href="privacy.php">Privacy Policy</a></td>
<td width="280" height="30" align="right" bgcolor="#2d356e" class="white">Copyright © 2004 VeteransResources.org</td>
</tr>
</table>
</body>
</html>
<?
ob_end_flush();
?>