login
Posted: Wed Jul 17, 2002 10:26 pm
its my damned login again...
the trouble now is that even tho there are no cookies on my computer that have the name i'm searching for yet it keeps showing the user cp
well wehn i logout and go to the logout page it shows the login thing agian which is what it surpose to do but later if i'm logged out and try and go to some other part of the <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> it'll show the usercp... but none of hte links work for that cause there are no cookies to support it am i doing this wrong
is that the correct way becasue it if i add another equals nothing show up if your logged in ot loged out....
what i'm trying to achive is... showing the control panel if your logged in... and it'll still show it if your on other than the login page... so say you to go the about us page it'll still show it ....
now when you logout it deletes the cookies and then shows the login page where you can put your username etc....
is there anyway of making a if the cookie doesnt exist then do... type thing
the trouble now is that even tho there are no cookies on my computer that have the name i'm searching for yet it keeps showing the user cp
well wehn i logout and go to the logout page it shows the login thing agian which is what it surpose to do but later if i'm logged out and try and go to some other part of the <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> it'll show the usercp... but none of hte links work for that cause there are no cookies to support it am i doing this wrong
Code: Select all
$show = "n";
if ($page == 'login'){
include ("l.php");
}
if ($go == 'lout'){
include ("lo.php");
}
if ($_COOKIEї'$logcbaa'] = 'user'){
$show = "y";
include ("ucp.php");
}
else if ($_COOKIEї'$logcbaa'] == 'staff'){
$show = "y";
include ("scp.php");
}
else if ($_COOKIEї'$logcbaa'] == 'admin'){
$show = "y";
include ("acp.php");
}
else if ($page != 'login' && $show == 'n'){
include ("log.php");
}what i'm trying to achive is... showing the control panel if your logged in... and it'll still show it if your on other than the login page... so say you to go the about us page it'll still show it ....
now when you logout it deletes the cookies and then shows the login page where you can put your username etc....
is there anyway of making a if the cookie doesnt exist then do... type thing