Originally posted by Charles Capps:
1) Adding a simple (broken) floodcheck to the login process is simple. ultimatebb.cgi, find:
if ($ubb eq 'do_login') {Add under:
&RequireCode("$vars_config{CGIPath}/ubb_lib_posting.cgi");
&floodcheck;dang hackers busted into my login again last nite. So I just tried to load above tweak on 6.6 and ran into problem...
I get this error message:
Undefined subroutine &main::floodcheck called at C:websitesubb6_dragboatalleycgi-binultimatebb.cgi line 399.here's what the code looks like:
if ($ubb eq 'do_login') {
&GetOrPost("POST");
my $ip_number = &GetIPAddress;
&check_ip_bans($ip_number);
$skip_cookie_check = 'true';
&RequireCode("$vars_config{CGIPath}/ubb_lib_2.cgi");
&floodcheck;
my @user_info = &verify_id("$in{username}", "$in{password}"); # -> lib_2!did i stick this floodcheck line in the wrong place maybe???