|
|
 |
Re: FN-FORUM: Puzzled
date posted 22nd January 2005 11:09
I guess 'googs' is something to do with Google. Basically, it's
saying: if 'googs' is in the query string, then set the session
variable (presumably for use later on), otherwise, if 'nogoogs' is in
the query string, then unset the session and redirect to hide the
query string. The $_GET['googs'] and $_GET['nogoogs'] aren't set in
the code because they are variables that are taken from the query
string of the URL. Have a look around in the code for the session
variable for more clues. It may be that the site is changing it's
content if it thinks it's being searched by a GoogleBot - I'm not sure
what the consequences of this are, but it's frowned upon my Google (I
think).
Hope this helps,
Joe.
On 22 Jan 2005 11:09:51 -0000, PAMELA WHITTAKER [EMAIL REMOVED] wrote:
> I think that your idea of the URL filter is the most likely as the links
> looked like the second lot originally and then they made it Search Engine
> friendly before we took it over - thanks.
>
> I am also puzzled with this bit of code:-
>
> function main_nav()
> {
> if (isset($_GET['googs']))
> {
> $_SESSION['session_bot']=true;
> }
> elseif ( isset($_GET['nogoogs']))
> {
> $_SESSION['session_bot']=false;
> $location = str_replace( 'nogoogs' , '' , $_SERVER['REQUEST_URI'] );
> header('Location:' . $location );
> die();
> }
>
> $_GET['googs'] and $_GET['nogoogs'] aren't set in the code anywhere so it
> must be something on the server at a guess but what and what is the purpose
> of it? Any ideas please. I imagine it has something to do with google
|
 |
|