From 2420b7c6cb728c53975392efef20e2b27a19dc6f Mon Sep 17 00:00:00 2001 From: Rick Hays Date: Wed, 11 Sep 2019 11:52:18 -0500 Subject: [PATCH] Fixed path/names that changed when moved. Signed-off-by: Rick Hays --- class/url.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/class/url.php b/class/url.php index d7ac7fa..ece1b24 100644 --- a/class/url.php +++ b/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 */ - function is_MobileDevice() + function isMobileDevice() { // Uncomment the line below to force mobile; //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 * * REVISIONS: * 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'; $useragent = $_SERVER['HTTP_USER_AGENT'];