php referer url 1

php referer url

$_SERVER['HTTP_REFERER'];

Here is what the above code is Doing:
1. It’s checking to see if the user is logged in. If they are, it will display the page.
2. If they are not logged in, it will redirect them to the login page.
3. If they are logged in, but they are not an admin, it will redirect them to the home page.
4. If they are logged in, and they are an admin, it will display the page.

Similar Posts