/*
HMM, firefox seems not to send referer for META redirects, even when
sendRefererHeader is 2 as per:
http://codex.wordpress.org/Enable_Sending_Referrers
Manually Setting
Warning: this method may be considered as a privacy risk as all sites will recieve referers.
1. Type about:config in the URL address bar.
2. A large collection of alphabetically listed information will appear in the browser window.
3. Search for network.http.sendRefererHeader.
4. By default, this should be set at 2.
5. If it is set to 0 - which disables sending referrers - right click it, select Modify and enter 2 as the value.
6. If that doesn't work, try a value of 1
See http://kb.mozillazine.org/Network.http.sendRefererHeader for more information.
*/
#
#PRINT "
You wanted: $requested_url";
# You wanted: /fdfds/blah.html
#exit();
#$requested_url = "$_SERVER[REQUEST_URI]";
if (
( (isset($_REQUEST["orig"])) && (!empty($_REQUEST["orig"])) )
)
{
#$HTTP_REFERER = $_SERVER["HTTP_REFERER"];
$orig = $_REQUEST["orig"];
#PRINT "
orig: '$orig'";
$orig_decode = urldecode($orig);
#PRINT "
orig_decode: '$orig_decode'";
$HTTP_HOST = $_SERVER["HTTP_HOST"];
$page_requested = str_replace("http://$HTTP_HOST/", '', $orig_decode);
#PRINT "
page_requested: $page_requested";
$new_url = "http://www.stentongallery.com/$page_requested";
#PRINT "
going to load '$new_url' in the frameset";
#exit();
PRINT "
Sorry, we were trying to be helpful and load the page you were interested in, with our normal web site"; PRINT " buttons/navigation on the left hand side, but we could not as your web browser didn't sent us something called the 'referer'"; PRINT "
The referer is the name/address of the page you just came from, which we need, in order to do this."; PRINT "
Perhaps some software on your computer called a personal firewall on your machine blocked it.";
PRINT "
There are instructions for fixing this, for different software/personal firewalls here";
PRINT "
In the meantime, please see our home page at http://www.stentongallery.com"; PRINT " and hopefully, you can find what you are looking for from there."; PRINT "
Technical notes:";
if ( (isset($_SERVER["HTTP_USER_AGENT"])) && (!empty($_SERVER["HTTP_USER_AGENT"])) )
PRINT "
Your web browser is: $_SERVER[HTTP_USER_AGENT]";
if ( (!isset($_SERVER["HTTP_REFERER"])) || (empty($_SERVER["HTTP_REFERER"])) )
{
PRINT "
The problem we encountered was: HTTP_REFERER was missing or empty";
}
PRINT "";
}
?>