było mówić że VB..
Kod php:
function verify_strike_status($username = '', $supress_error = false)
{
global $vbulletin;
$vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "strikes WHERE striketime < " . (TIMENOW - 3600));
if (!$vbulletin->options['usestrikesystem'])
{
return 0;
}
$strikes = $vbulletin->db->query_first("
SELECT COUNT(*) AS strikes, MAX(striketime) AS lasttime
FROM " . TABLE_PREFIX . "strikes
WHERE strikeip = '" . $vbulletin->db->escape_string(IPADDRESS) . "'
");
if ($strikes['strikes'] >= 5 AND $strikes['lasttime'] > TIMENOW - 900)
{ //they've got it wrong 5 times or greater for any username at the moment
// the user is still not giving up so lets keep increasing this marker
exec_strike_user($username);
if (!$supress_error)
{
eval(standard_error(fetch_error('strikes', $vbulletin->options['bburl'], $vbulletin->session->vars['sessionurl'])));
}
else
{
return false;
}
}
else if ($strikes['strikes'] > 5)
{ // a bit sneaky but at least it makes the error message look right
$strikes['strikes'] = 5;
}
return $strikes['strikes'];
}
Musisz to obejść, tylko proxy.