Location: PHPKode > projects > ProPHP > ProPHP/include/main_toolbar.php
<?php
/*****************************************************************
************* BKWORKS PRO PHP V 0.5 BETA 1 ***********************
******************** BRYAN KOOIENGA ******************************
****************** DECEMBER 20, 2007 *****************************
*****************************************************************/
if(!INDEX) {
	die("Hacking Attempt Detected.");
}
if($_SESSION['user'] != "") {
?>
<ul>
<?php if(strtoupper($username) == "ADMIN") { echo '<li><a '; if($view == "admin" or $view == "admin_suspend" or $view == "admin_delete") echo 'class="current"'; echo 'href="?view=admin">Admin</a>'; } ?>
<li><a <?php if($view == "" or $view == "home" or $view == "adshome") echo 'class="current" '; ?>href="?view=adshome">Home</a>
<li><a <?php if($view == "adoptions") echo 'class="current" '; ?>href="?view=adoptions">Ad Options</a>
<li><a <?php if($view == "adscripts") echo 'class="current" '; ?>href="?view=adscripts">Ad Scripts</a>
<li><a <?php if($view == "profile") echo 'class="current" '; ?>href="?view=profile">Change Password</a>
<li><a href="?view=logoff">Log Off</a>
</ul>
<?php
} else {
?>
<form action="content/login.php" method="post">
<table width="100%">
	<tr>
		<td width="100%" align="center">
			Log On: <input type="text" name="domain" />
			<input type="password" name="pw" />
			<input type="submit" value="Log On" />
			<input type="hidden" name="form" value="1"><?php if($error != "" && $form == 1) { echo "\n<br><b>" . $error . "</b>"; }?>
		</td>
	</tr>
</table>
</form>
<?php
}
?>
Return current item: ProPHP