/[drupal]/contributions/modules/browscap/browscap.module
ViewVC logotype

Diff of /contributions/modules/browscap/browscap.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6.2.3.2.9, Thu Sep 17 15:19:14 2009 UTC revision 1.6.2.3.2.10, Thu Sep 17 16:15:45 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: browscap.module,v 1.6.2.3.2.8 2009/09/17 15:04:47 greggles Exp $  // $Id: browscap.module,v 1.6.2.3.2.9 2009/09/17 15:19:14 greggles Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 284  function browscap_get_browser($useragent Line 284  function browscap_get_browser($useragent
284    }    }
285  }  }
286    
287    /**
288     * Determine whether the current visitor
289     *
290     * @param string $useragent
291     *   Optional user agent string.
292     */
293    function browscap_is_crawler($useragent = NULL) {
294      $browser = browscap_get_browser($useragent);
295      return (bool)$browser['crawler'];
296    }
297    
298  // A numeric interpretation of browscap.csv's TRUE/FALSE/default fields  // A numeric interpretation of browscap.csv's TRUE/FALSE/default fields
299  function _browscap_boolean($value) {  function _browscap_boolean($value) {
300    switch ($value) {    switch ($value) {

Legend:
Removed from v.1.6.2.3.2.9  
changed lines
  Added in v.1.6.2.3.2.10

  ViewVC Help
Powered by ViewVC 1.1.2