In search.cgi, sub search() at about line 264, add:
Code:
last LINE if ($numhits == 70);
this should be the last line of code inside the LINE while() loop, as in:
Code:
flock (DB, 1) if ($db_use_flock);
LINE: while (<DB>) {
/^#/ and next LINE; # Skip comment Lines.
#stuff here
last LINE if ($numhits == 70); #stop searching at max hits
}
close DB;
Note that a better way would be to get all the hits, sort them randomly, and take a slice of the results. That way all records have an equal chance of being displayed.
Philip
------------------
Limecat is not pleased.