Ignore:
Timestamp:
Mar 6, 2013, 12:38:35 PM (11 years ago)
Author:
plg
Message:

compatibility with Piwigo 2.5: replace mysql_* functions by pwg_db_* equivalent

disable whois online feature for search engine robots to avoid useless CPU usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/whois_online/main.inc.php

    r16632 r21237  
    3030*/
    3131
     32// no need to show this info to search engine robots: even if we tell them
     33// rel="nofollow" they follow the link. By deactivation this plugin to
     34// robots, we avoid wasting resources on servers.
     35if (preg_match('/(Googlebot|bingbot|Baiduspider|yandex|AhrefsBot|msnbot)/', $_SERVER["HTTP_USER_AGENT"]))
     36{
     37  return;
     38}
     39
    3240global $prefixeTable, $conf;
    3341// $conf['debug_l10n'] = true;
Note: See TracChangeset for help on using the changeset viewer.