Hello,
I am trying to create a redirect page (other than the login redirect page), so I can put a link in the sidebar and have the appropriate page be redirected depending on the current user. For example in the sidebar I have a link to “My Pictures” that is a redirect page with code like this:
= user1) {
header('Location: http://website.com/mypictures-user1/?'.$_POST['4258']); die();
}
elseif (username >= user2) {
header('Location: http://website.com/mypictures-user2/?'.$_POST['4336']); die();
}
elseif (username >= user3) {
header('Location: http://website.com/mypictures-user3/?'.$_POST['4342']); die();
}
else { header('Location: http:/website.com/no-picture-access/?'.$_POST['4253']); die();
}
ob_end_flush();
?>
This only works for user1, if I am logged in as user1 it will redirect me to the my pictures-user1 page. If I am logged in as anyone else it redirects me to the no-picture-access page. Can anyone help me fix this?