Location: PHPKode > projects > bloggeruniverse > menu.php
<?php
include ("includes/config.php");

if (!$logged[username])
{
echo "<a href=\"index.php\">Home</a><br />
<a href=\"entry.php\">Entries</a><br />
<a href=\"login.php\">Login</a>";
}
else if (($logged[username]) && ($logged[level] != 5))
{
echo "<a href=\"index.php\">Home</a><br />
<a href=\"post.php\">Post</a><br />
<a href=\"entry.php\">Entries</a><br />
<a href=\"editprofile.php\">Edit profile</a><br />
<a href=\"logout.php\">Logout</a><br />";
}
else if (($logged[username]) && ($logged[level] == 5))
{
echo "<a href=\"index.php\">Home</a><br />
<a href=\"post.php\">Post</a><br />
<a href=\"entry.php\">Entries</a><br />
<a href=\"editprofile.php\">Edit profile</a><br />
<a href=\"admin.php\">Administration</a><br />
<a href=\"logout.php\">Logout</a><br />";
}
echo "<hr />";
$result = mysql_query("SELECT timestamp, id, title FROM ".PREFIX."blog ORDER BY id DESC");
while($row = mysql_fetch_array($result))
{
	$date  = date("l F d Y",$row["timestamp"]);
	$id = $row["id"];
	$title = $row["title"];
	$title = strip_tags($title);
	if(strlen($title) >= 20)
	{
		$title = substr ( $title, 0, 20 );
		$title = "$title...";
	}
	else
	{
	}
	echo "<a href=\"entry.php?id=$id\">$date -- $title</a><br />";
}
echo '<br /><a href="http://validator.w3.org/check?uri=referer">
<img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" border="0" /></a>
<br /><a href="http://validator.w3.org/feed/check.cgi?url='.RSSLINK.'/rss.php"><img src="themes/'.currenttheme.'/images/valid-rss.png" border="0" alt="[Valid RSS]" title="Validate my RSS feed" /></a>'
?>
Return current item: bloggeruniverse