Browse Source

Fixed path/names that changed when moved.

Signed-off-by: Rick Hays <rhays@haysgang.com>
master
Rick Hays 6 years ago
parent
commit
2420b7c6cb
  1. 8
      class/url.php

8
class/url.php

@ -122,11 +122,11 @@ class URL
} }
/** /**
* Tests the User Agent to see if it is a mobile device * isMobileDevice - Tests the User Agent to see if it is a mobile device
* *
* @return boolean * @return boolean
*/ */
function is_MobileDevice() function isMobileDevice()
{ {
// Uncomment the line below to force mobile; // Uncomment the line below to force mobile;
//return TRUE; //return TRUE;
@ -146,14 +146,14 @@ class URL
} }
/** /**
* Tests the User Agent to see if it is a Bot/Spider/Crawler * isSpiderBot - Tests the User Agent to see if it is a Bot/Spider/Crawler
* *
* @return boolean * @return boolean
* *
* REVISIONS: * REVISIONS:
* 2012-04-18 RLH Found that there were some with NO USER AGENT, It was decided to count them as a spider. * 2012-04-18 RLH Found that there were some with NO USER AGENT, It was decided to count them as a spider.
*/ */
function is_SpiderBot() function isSpiderBot()
{ {
$crawlers = 'AbachoBOT|accoona|AcioRobot|alexa|AltaVista|Ask Jeeves|ASPSeek|Baiduspider|bingbot|CocoCrawler|crawler|Dumbot|eStyle|FAST-WebCrawler|Feedfetcher-Google|Firefly|froogle|GeonaBot|Gigabot|girafabot|Googlebot|ia_archiver|IDBot|InfoSeek|inktomi|looksmart|Lycos|Mediapartners-Google|msnbot|MSRBOT|NationalDirectory|Openbot|rabaz|Rambler|Rankivabot|Scooter|Scrubby|Slurp|Sogou web spider|Spade|SurveyBot|TechnoratiSnoop|TECNOSEEK|Teoma|URL_Spider_SQL|WebAlta Crawler|WebBug|WebFindBot|Yahoo|Yammybot|YandexBot|ZyBorg'; $crawlers = 'AbachoBOT|accoona|AcioRobot|alexa|AltaVista|Ask Jeeves|ASPSeek|Baiduspider|bingbot|CocoCrawler|crawler|Dumbot|eStyle|FAST-WebCrawler|Feedfetcher-Google|Firefly|froogle|GeonaBot|Gigabot|girafabot|Googlebot|ia_archiver|IDBot|InfoSeek|inktomi|looksmart|Lycos|Mediapartners-Google|msnbot|MSRBOT|NationalDirectory|Openbot|rabaz|Rambler|Rankivabot|Scooter|Scrubby|Slurp|Sogou web spider|Spade|SurveyBot|TechnoratiSnoop|TECNOSEEK|Teoma|URL_Spider_SQL|WebAlta Crawler|WebBug|WebFindBot|Yahoo|Yammybot|YandexBot|ZyBorg';
$useragent = $_SERVER['HTTP_USER_AGENT']; $useragent = $_SERVER['HTTP_USER_AGENT'];

Loading…
Cancel
Save