Jump to content

login


Twentyoneth

Recommended Posts

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?
Link to comment
Share on other sites

[!--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
Link to comment
Share on other sites

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.