calling all cookie problems that is
Moderator: General Moderators
- cheatboy00
- Forum Contributor
- Posts: 151
- Joined: Sat Jun 29, 2002 10:36 am
- Location: canada
- Contact:
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
Code: Select all
if (isset($cbaa) && ($cbaa == "user")){
include ("ucp.php");
}Code: Select all
if (isset($cbaa) && $cbaa == "user"){
include ("ucp.php");
}- cheatboy00
- Forum Contributor
- Posts: 151
- Joined: Sat Jun 29, 2002 10:36 am
- Location: canada
- Contact:
nope ... $cbaa wont work i tried outputting that cookie (saying if isset ($cbaa.... well it didnt work), i went back to the $logcbaa and i finally foudn out something that works.....
it was the whole problem with the $page thing see i had that if as teh main if to the whole thing and obivously when i changed pages to somethign other than the login value it would go there and not look at the rest casue it was the if was fofilled... if you know what i'm talking about, anyway that worked for the most part but it still showed the log.php file underneath the control panel so i just made a simple variable to correct that making sure that none of the control panels were active...
ug man this was teh B****est problem i've ever faced.... erg...
i won i go to sleep now its 4:54 am
Code: Select all
$s = "n";
if ($page == 'login'){
include ("l.php");
}
else if (isset($logcbaa) && ($logcbaa == 'user')){
$s = "y";
include ("ucp.php");
}
else if (isset($logcbaa) && ($logcbaa == 'staff')){
$s = "y";
include ("scp.php");
}
else if (isset($logcbaa) && ($logcbaa == 'admin')){
$s = "y";
include ("acp.php");
}
if ($page != 'login' && $s == 'n'){
include ("log.php");
}ug man this was teh B****est problem i've ever faced.... erg...
i won i go to sleep now its 4:54 am
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK