
Untitled
By: a guest on
Jun 25th, 2012 | syntax:
None | size: 1.20 KB | hits: 20 | expires: Never
if(isset($_COOKIE['ID_lsweb']))
{
$username = $_COOKIE['ID_lsweb'];
$pass = $_COOKIE['Key_lsweb'];
$check = mysql_query("SELECT * FROM users WHERE username = '$username'") or die(mysql_error());
while($info = mysql_fetch_array( $check ))
echo "<br /><br /><div class=\"content_links\">";
echo "Content links for $username:<br />";
if ($info['donor_access'] >= "1" | $info['admin'] >= "1")
{
echo "<a href=\"donors.php\">Donor database</a><br />";
}
if ($info['donation_access'] >= "1" | $info['admin'] >= "1")
{
echo "<a href=\"donations.php\">Donation database</a><br />";
}
if ($info['soldier_access'] >= "1" | $info['admin'] >= "1")
{
echo "<a href=\"soldiers.php\">Soldier database</a><br />";
}
if ($info['admin'] >= "1")
{
echo "<a href=\"users.php\">Admin panel</a><br />";
}
echo "<br /><br />";
echo "<a href=\"members.php\">Return to members.php</a><br /><br />";
echo "</div>";
echo "<a href=chpasswd.php>Change Password</a> | <a href=logout.php>Logout</a>";
}
}
}
else
//if the cookie does not exist, they are taken to the login screen
{
header("Location: login.php");
}
?>
</body>
</html>
<?