<?php
/*****************************************************************
************* BKWORKS PRO PHP V 0.5 BETA 1 ***********************
******************** BRYAN KOOIENGA ******************************
****************** DECEMBER 20, 2007 *****************************
*****************************************************************/
if(!defined("INDEX")) { # Here we're checking for the template. If the script is being called without it,
header("location: ../../?view=home"); # Head to the homepage.
}
if($_SESSION['user'] == "") { # If the user's not logged in then
include("content/homepage/index.php"); # Show the logon page
} else {
?>
<table width="100%">
<tr>
<td width="100%" align="center"><h3>Ad Options</h3></td>
</tr>
<tr>
<td align="center"><a href="?view=viewads">View Ads</a></td>
</tr>
<tr>
<td align="center"><a href="?view=add_ad">Add an Ad</a></td>
</tr>
</table>
</body>
</html>
<?php
} # We need to close off the if statement
?>