Changeset 21511


Ignore:
Timestamp:
Mar 12, 2013, 1:04:45 PM (7 years ago)
Author:
plg
Message:

do not query random picture for search engine robots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/amm_pip.class.inc.php

    r16445 r21511  
    402402    $returned=array();
    403403
     404    if (preg_match('/(Googlebot|bingbot|Baiduspider|yandex|AhrefsBot|msnbot|NCollector)/', $_SERVER["HTTP_USER_AGENT"]))
     405    {
     406      return($returned);
     407    }
     408
    404409    $sql=array();
    405410
Note: See TracChangeset for help on using the changeset viewer.