Changeset 2078 in ExiteCMS for trunk/includes/user_functions.php


Ignore:
Timestamp:
11/29/08 02:00:13 (3 years ago)
Author:
WanWizard
Message:

modified bot detection code (2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/user_functions.php

    r2077 r2078  
    3737                ); 
    3838foreach($_bot_list as $bot) { 
    39     if(stripos($bot, $_SERVER['HTTP_USER_AGENT']) !== false) { 
     39    if(strpos($_SERVER['HTTP_USER_AGENT'], $bot) !== false) { 
    4040        define("CMS_IS_BOT", true); 
    4141        break; 
Note: See TracChangeset for help on using the changeset viewer.