Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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>
- <?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement