Location: PHPKode > projects > GolfstatsPHP > golfstatsphp_3.0/header.php
<?
function showheader($title)
{	
	global $login_id;

	if ($headershown != 1)
	{
		$headershown = 1;

?>

	<HTML><HEAD>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta http-equiv="Pragma" content="no-cache">
<meta name="Description"
content="Free Online personal golf statistic website. Giving professional statistics to everyday golfers!">
<meta name="Keywords"
content="malaysia golf courses,malaysia golf directory,golf directory,golf membership,malaysia golf, tincup, golf organiser,golf tournament,malaysia golf news,asian golf news, golf equipment malaysia, malaysia golf holidays, malaysia golf tournament, golf courses, e-golf, golfweb,golf magazine, malaysia golf magazine, golf malaysia, malaysia golf portal, malaysia golfers, golf links, golf equipment exchange, golf bidding, golf packages, golf jokes, world golf news, malaysia international golf show, golf-asia.com,asiagolf.com, golfsearch, golfonline.com,pgatour.com, europeantour.com">
<meta name="GENERATOR" content="HTML-Kit">
	<TITLE><?= $title ?></TITLE>
	<link rel="StyleSheet" href="style.css" type="text/css">
	</HEAD>
	<body>


	<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td height="17" colspan="2" valign="bottom" bgcolor="#000000"><img src="images/title.jpg" width="700" height="100"></td>
  </tr>
  <tr align="left" valign="top"> 
    <td class="title">
      <table width="100%" border="0" cellspacing="1" cellpadding="2">
        <tr>
          <td class="title" align='right'><b>			  
					<? 
					//this little guy here allow only root to update the courserankings. Unfortunately, courses are not updated real time
					//and this php script is needed. Just change root to anyone else and change the script as well.
					//you can add in a check at the updatescript to check if this is the user running it else exit()
//					if ($login_id=='stevie') { $update="|&nbsp; <a href='updatecourseranks.php'>Update Hole Ranks</a>"; } 
	//				else {$update="";}
				if ($login_id != '') { echo "Logged in as: $login_id &nbsp;| &nbsp; <a href='login.php?logout=y'>Logout?</a> &nbsp;&nbsp; $update"; }
				else {}
			  ?>
</b></td>
        </tr>
      </table>
</table>			

  <table width="100%" border="0" cellspacing="1" cellpadding="2">
        <tr>
          <td><p class="menu-bg"> &nbsp;
					<a class="menu" href="menu.php">Home</a>
 | <a class="menu" href="statsmain.php">Scorecard</a>
 | <a class="menu" href="scoreview.php">Scores</a>
 | <a class="menu" href="statsview1.php">Stats</a>
 | <a class="menu" href="tournament.php">Tournaments</a>
 | <a class="menu" href="course.php">Add/Edit Course</a>
 | <a class="menu" href="statscourse.php">Courses</a>
 | <a class="menu" href="players.php">Players</a>
 | <a class="menu" href="changepass.php">Account</a>
 | <a class="menu" href="management.php">Management</a>

 </table>
			  
<?
	}
}

function showfooter()
{
?>
				<br><br>
		</td></tr></table>
		<table width='100%' cellpadding='0' cellspacing='0'>
			<tr> 
				<td bgcolor='000000' align='center'><font color='ffffff'>&#169;2007 - All Rights Reserved Golfstatsphp</font></td>
			</tr>
		</table>
</body></html>

<?
}

require("env.php");
?>
Return current item: GolfstatsPHP