- Impact
- 24
Hey guys. I am running a free blog hosting site, and I am having a problem with 'referrers'. You know the cookie thing in your browser that says where you just came from. Well here is the problem, I can't get this code to work correctly, it always dies, even if it shounldn't:
I dont understand why its not working.
I am wondering if there is a way to "trick" it into thinking it if it dies (false) it is still true.
Or is there a way to fix this. This is the only script I have ever had this problem with.
Anyone have any Ideas, or solutions.
Thanks
OulZac
:wave:
PHP:
function check_admin_referer() {
$adminurl = strtolower(get_settings('siteurl')).'/wp-admin';
$referer = strtolower($_SERVER['HTTP_REFERER']);
if ( !strstr($referer, $adminurl) ) {
die('Sorry, you need to enable sending referrers, for this feature to work.');
}
I dont understand why its not working.
I am wondering if there is a way to "trick" it into thinking it if it dies (false) it is still true.
Or is there a way to fix this. This is the only script I have ever had this problem with.
Anyone have any Ideas, or solutions.
Thanks
OulZac
:wave:



















