/Sources/ModSettings.php
array('check', 'userLanguage'),
array('check', 'enable_spiderAccess',
&$txt['enable_spiderAccess']),
array('text', 'enabled_spider', '35',
&$txt['enabled_spider']),
'',
array('check', 'userLanguage'),
Sources/Display.php
?>
// Lets enable spider access
if (!empty($modSettings['enabled_spider']))
{
$enabled_spider = explode(",", preg_replace("/(\[^a-ZA-Z0-9,])/", "", $modSettings['enabled_spider']));
foreach ($enabled_spider as $key => $value)
if (empty($value))
unset($enabled_spider[$key]);
}
else
$enabled_spider = array();
$spider_match = false;
if (!empty($modSettings['enable_spiderAccess']))
{
foreach($enabled_spider as $spider)
{
preg_match('/' . $spider . '/', $_SERVER['HTTP_USER_AGENT'], $matches);
if(count($matches) > 0)
$spider_match = true;
}
}
if (!$spider_match || $context['user']['is_guest'])
is_not_guest();
Sources/MessageIndex.php
?>
// Lets enable spider access
if (!empty($modSettings['enabled_spider']))
{
$enabled_spider = explode(",", preg_replace("/(\[^a-ZA-Z0-9,])/", "", $modSettings['enabled_spider']));
foreach ($enabled_spider as $key => $value)
if (empty($value))
unset($enabled_spider[$key]);
}
else
$enabled_spider = array();
$spider_match = false;
if (!empty($modSettings['enable_spiderAccess']))
{
foreach($enabled_spider as $spider)
{
preg_match('/' . $spider . '/', $_SERVER['HTTP_USER_AGENT'], $matches);
if(count($matches) > 0)
$spider_match = true;
}
}
if (!$spider_match || $context['user']['is_guest'])
is_not_guest();
Themes/default/languages/Modifications.teuidioma.php
?>
$txt['enable_spiderAccess'] = 'Activar spider access';
$txt['enabled_spider'] = 'As aranhas, que deve ser capaz de navegar no site <br /><i> (As an example,for the spiders <b><font color="red">google e yahoo</font></b> você deve escrever google,yahoo) ';