Code: Select all
<?php
session_start();
include("config.php"); //Include Config and functions
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<a href="index.php"><img class="logo" src="Images/Sites/Logo.jpg"></a>
</head>
<body>
<?php
if(isset($_SESSION["_PLAYER"]))
{
include("menu.php"); //Include the dropdown menu
include("gamemenu.php");//Include the game menu
?>
<div id="content">
<h1>Home</h1>
<h2>Message of the Day</h2>
<?php
MessageDay();
?>
<h2>News</h2>
<?php
RetrieveNews();
?>
</div>
<?php
}
else
{
Redirect("index.php");
}
?>
</body>
</html>