mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-05 05:55:15 +02:00
nah, stuff the * wildcard ... just match partially, should be sufficient I think
git-svn-id: file:///svn/phpbb/trunk@4611 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
330f36eb29
commit
3d46c543cd
@ -147,7 +147,7 @@ class session
|
||||
|
||||
while ($row = $db->sql_fetchrow($result))
|
||||
{
|
||||
if (preg_match('#' . str_replace('\*', '.*', preg_quote($row['bot_agent'], '#')) . '#i', $this->browser))
|
||||
if (preg_match('#' . preg_quote($row['bot_agent'], '#') . '#i', $this->browser))
|
||||
{
|
||||
$bot = $row['user_id'];
|
||||
}
|
||||
|
@ -362,8 +362,8 @@ INSERT INTO phpbb_ranks (rank_id, rank_title, rank_min, rank_special, rank_image
|
||||
# MSSQL IDENTITY phpbb_bots ON #
|
||||
|
||||
# -- Bots
|
||||
INSERT INTO phpbb_bots (bot_id, bot_active, bot_name, user_id, bot_agent, bot_ip) VALUES (1, 1, 'Googlebot', 3, 'Googlebot/2.1 (+http://www.googlebot.com/bot.html)', '216.239.46.,64.68.8');
|
||||
INSERT INTO phpbb_bots (bot_id, bot_active, bot_name, user_id, bot_agent, bot_ip) VALUES (2, 1, 'Fastcrawler', 4, 'FAST-WebCrawler', '66.77.73.');
|
||||
INSERT INTO phpbb_bots (bot_id, bot_active, bot_name, user_id, bot_agent, bot_ip) VALUES (1, 1, 'Googlebot', 3, 'Googlebot/', '216.239.46.,64.68.8');
|
||||
INSERT INTO phpbb_bots (bot_id, bot_active, bot_name, user_id, bot_agent, bot_ip) VALUES (2, 1, 'Fastcrawler', 4, 'FAST-WebCrawler/', '66.77.73.');
|
||||
INSERT INTO phpbb_bots (bot_id, bot_active, bot_name, user_id, bot_agent, bot_ip) VALUES (3, 1, 'Alexa ia_archiver', 5, 'ia_archiver', '66.28.250.,209.237.238.');
|
||||
INSERT INTO phpbb_bots (bot_id, bot_active, bot_name, user_id, bot_agent, bot_ip) VALUES (4, 1, 'Inktomi', 6, 'Slurp', '216.35.116.');
|
||||
|
||||
|
@ -1805,7 +1805,7 @@ $lang += array(
|
||||
'BOT_STYLE_EXPLAIN' => 'The style used for the board by the bot',
|
||||
'BOT_ACTIVE' => 'Bot active',
|
||||
'BOT_AGENT' => 'Agent match',
|
||||
'BOT_AGENT_EXPLAIN' => 'A string matching the bots browser agent.',
|
||||
'BOT_AGENT_EXPLAIN' => 'A string matching the bots browser agent, partial matches are allowed.',
|
||||
'BOT_IP' => 'Bot IP address',
|
||||
'BOT_IP_EXPLAIN' => 'Partial matches are allowed, seperate addresses with an apostrophe. A single hostname may be entered instead of an IP.',
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user