Zen Follower
- Join Date:
- Feb 2008
- Posts:
- 118
- Plugin Contributions:
- 0
Need to override $email define...
Hi, I'm using this snippet of code in "html_header.php"...
it emails me when Googlebot comes to visit, pretty handy tool.
...except that it seems to put MY EMAIL ADDRESS into the 'contact us' form on my website!?!?!?
<?php
$email = "[email protected]";
if(eregi("googlebot",$_SERVER['HTTP_USER_AGENT']))
{
mail($email, "The Googlebot came to call",
"Google has visited: ".$_SERVER['REQUEST_URI']);
}
?>
How can I change the variable so that it doesn't do this?
I tried changing the above "$email" to "$email2"...but it still does it!!
How can I get this to work without interfering with ZC?