Twentyoneth Posted March 9, 2006 Share Posted March 9, 2006 I need login help, I want to make an admin login on my site, where if the admin is logged in, it will show you special admin links, but I dont know how to go about it...if ($admin == 1) { include "adminlinks.php"; } else { include "mainlinks.php"; }The problem is, I dont know how to make admin == 1 for just me, and not when I'm signed in, everyone else will see the admin links as well....any help? Quote Link to comment Share on other sites More sharing options...
keeB Posted March 9, 2006 Share Posted March 9, 2006 [!--quoteo(post=353330:date=Mar 9 2006, 06:48 PM:name=Twentyoneth)--][div class=\'quotetop\']QUOTE(Twentyoneth @ Mar 9 2006, 06:48 PM) [snapback]353330[/snapback][/div][div class=\'quotemain\'][!--quotec--]I need login help, I want to make an admin login on my site, where if the admin is logged in, it will show you special admin links, but I dont know how to go about it...if ($admin == 1) { include "adminlinks.php"; } else { include "mainlinks.php"; }The problem is, I dont know how to make admin == 1 for just me, and not when I'm signed in, everyone else will see the admin links as well....any help?[/quote]You should really look into the guide on the main page about making a log in system.. ;d Quote Link to comment Share on other sites More sharing options...
Twentyoneth Posted March 9, 2006 Author Share Posted March 9, 2006 I didnt really understand that tutorial on user authentication on the main page, and I read a few things I didnt like, like how someone mentioned with that script one could easily go to the php info and see the user and pass info, which defeats the purpose. Wouldnt you think? Is there any other explanations or help on this, as I am very confused? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.