diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-09-25 16:40:55 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-09-25 16:40:55 +0000 |
| commit | 5ea701661f5800d6c097d0928c1270c898ca67b0 (patch) | |
| tree | b96090732142e73222771f4d40d9a7f446b76c0e /includes/session_spider.php | |
| parent | eacf1977ba53c90678b44fc6347f4dcc959ff844 (diff) | |
| download | webtrees-5ea701661f5800d6c097d0928c1270c898ca67b0.tar.gz webtrees-5ea701661f5800d6c097d0928c1270c898ca67b0.tar.bz2 webtrees-5ea701661f5800d6c097d0928c1270c898ca67b0.zip | |
Tidy up whitespace/indents
Diffstat (limited to 'includes/session_spider.php')
| -rw-r--r-- | includes/session_spider.php | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/includes/session_spider.php b/includes/session_spider.php index c9dae20b1f..548d39b343 100644 --- a/includes/session_spider.php +++ b/includes/session_spider.php @@ -103,7 +103,7 @@ try { // rest of the file. global $SEARCH_SPIDER; -$SEARCH_SPIDER = false; // set empty at start +$SEARCH_SPIDER = false; // set empty at start $ua = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ""; @@ -111,7 +111,7 @@ $worms = array( 'oBot', 'Indy Library', 'XXX', -// 'robotgenius', +// 'robotgenius', 'Super_Ale', 'Wget', 'DataCha', @@ -119,21 +119,21 @@ $worms = array( 'LWP::Simple', 'lwp-trivial', 'MJ.*bot', -// 'ru.*rv', +// 'ru.*rv', 'DotBot', 'HTTrack', 'AISearchBot', 'panscient.com', 'Plonebot', -// 'Mozilla([^\/])|(\/[\D])', // legitimate Mozilla-based browsers have something like "Mozilla/5.0" - 'Mozilla[^\/]', // legitimate Mozilla-based browsers have something like "Mozilla/5.0" - 'Mozilla\/[^456]', // legitimate Mozilla-based browsers have something like "Mozilla/5.0" - '^Mozilla\/[456]\.0$', // legitimate Mozilla-based browsers have something following "Mozilla/5.0" +// 'Mozilla([^\/])|(\/[\D])', // legitimate Mozilla-based browsers have something like "Mozilla/5.0" + 'Mozilla[^\/]', // legitimate Mozilla-based browsers have something like "Mozilla/5.0" + 'Mozilla\/[^456]', // legitimate Mozilla-based browsers have something like "Mozilla/5.0" + '^Mozilla\/[456]\.0$', // legitimate Mozilla-based browsers have something following "Mozilla/5.0" 'Speedy.*Spider', - 'KaloogaBot', // Image search engines have no business searching a Genealogy site + 'KaloogaBot', // Image search engines have no business searching a Genealogy site 'DBLBot', - 'TurnitinBot', // Plagiarism detectors have no business searching a Genealogy site - '(Microsoft)|(Internet)|(Explorer)' // Internet Explorer self-identifies with "MSIE" + 'TurnitinBot', // Plagiarism detectors have no business searching a Genealogy site + '(Microsoft)|(Internet)|(Explorer)' // Internet Explorer self-identifies with "MSIE" ); $quitReason = ""; @@ -259,7 +259,7 @@ if(!$real) { $y++; if ($y > 70) break; } - else if ($bot_name{$x} == ' ') { + else if ($bot_name{$x} == ' ') { if($valid_char) { $spider_name{$y} = ' '; $valid_char = false; @@ -267,7 +267,7 @@ if(!$real) { if ($y > 70) break; } } - else if ($bot_name{$x} == '.') { + else if ($bot_name{$x} == '.') { if($valid_char) { $spider_name{$y} = '.'; $valid_char = true; @@ -275,25 +275,25 @@ if(!$real) { if ($y > 70) break; } } - else if ($bot_name{$x} == ':') { + else if ($bot_name{$x} == ':') { $spider_name{$y} = ':'; $valid_char = true; $y++; if ($y > 70) break; } - else if ($bot_name{$x} == '/') { + else if ($bot_name{$x} == '/') { $spider_name{$y} = '/'; $valid_char = true; $y++; if ($y > 70) break; } - else if ($bot_name{$x} == '-') { + else if ($bot_name{$x} == '-') { $spider_name{$y} = '-'; $valid_char = true; $y++; if ($y > 70) break; } - else if ($bot_name{$x} == '_') { + else if ($bot_name{$x} == '_') { $spider_name{$y} = '_'; $valid_char = true; $y++; @@ -385,7 +385,5 @@ if(!empty($SEARCH_SPIDER)) { if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) $_SESSION['last_spider_lang'] = $_SERVER['HTTP_ACCEPT_LANGUAGE']; - $_SESSION['wt_user'] = ""; // Don't allow search engine into user/admin mode. + $_SESSION['wt_user'] = ""; // Don't allow search engine into user/admin mode. } - -?> |
