I'm trying to get userclass to equal home when the user is on either usercp.php or profile.php, but I can't seem to get the following elseif to work:
if ($_SERVER['REQUEST_URI'] === '/usercp.php') {
$userclass = "home";
} elseif ($_SERVER['REQUEST_URI'] === '/profile.php') {
$userclass = "home";
} else {
$userclass = "norm";
}
Aucun commentaire:
Enregistrer un commentaire