$opt['db']['throttle_connection_count']) { $access_count = sql_value("SELECT COUNT(*) FROM &tmpdb.`sys_accesslog` WHERE ip ='&1'", 0, $ip_numeric); if ($access_count > $opt['db']['throttle_access_count']) { $tpl->error(ERROR_THROOTLE); } } } // remove old entries every 100st call if (rand(0, 100) == 50) { sql("DELETE FROM &tmpdb.`sys_accesslog` WHERE `access_time`