Index: branches/unlabeled/unlabeled-1.170.2/core/kernel/application.php =================================================================== diff -u -r7764 -r7773 --- branches/unlabeled/unlabeled-1.170.2/core/kernel/application.php (.../application.php) (revision 7764) +++ branches/unlabeled/unlabeled-1.170.2/core/kernel/application.php (.../application.php) (revision 7773) @@ -2424,11 +2424,17 @@ function IsSpider() { static $is_spider = null; + if (!isset($is_spider)) { - $sql = 'SELECT AgentId - FROM '.TABLE_PREFIX.'SpiderUserAgents - WHERE UserAgent = '.$this->Conn->qstr(trim($_SERVER['HTTP_USER_AGENT'])); - $is_spider = $this->Conn->GetOne($sql) > 0; + $user_agent = trim($_SERVER['HTTP_USER_AGENT']); + $robots = file(FULL_PATH.'/core/robots_list.txt'); + foreach ($robots as $robot_info) { + $robot_info = explode("\t", $robot_info, 3); + if ($user_agent == trim($robot_info[2])) { + $is_spider = true; + break; + } + } } return $is_spider; Index: branches/unlabeled/unlabeled-1.5.2/core/units/admin/admin_events_handler.php =================================================================== diff -u -r7755 -r7773 --- branches/unlabeled/unlabeled-1.5.2/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 7755) +++ branches/unlabeled/unlabeled-1.5.2/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 7773) @@ -76,7 +76,7 @@ */ function OnStartup(&$event) { - + } /**