Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2008
    Posts
    118
    Plugin Contributions
    0

    Default 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 Code:
    <?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?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Need to override $email define...

    Just use a different variable ... ie: something other than what is used in any of the template files.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2008
    Posts
    118
    Plugin Contributions
    0

    Default Re: Need to override $email define...

    Hmm, I tried using "$email2" (nothing showed up in devtoolkit)...but it didn't work.

    Now I just tried "gbot" and it seems to have done the trick!

    *sigh* It's late.

    Thx Dr.B

 

 

Similar Threads

  1. Override for Define Pages Editor
    By gcopping in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 1 Nov 2010, 06:57 PM
  2. Define pages editor and the override
    By TheDancingGecko in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Sep 2008, 06:58 PM
  3. override email templates in email folder
    By epol in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Sep 2006, 08:47 AM
  4. Define Pages Editor or Override Directory?
    By mlm2005 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Jul 2006, 03:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR