Small bug if used on a board with no other modifications to the ubb_get_topic.cgi routines.
in ubb_get_topic.cgi
code:
#########
#find : #
#########
# is the page available?
###################
#BELOW that ADD:: #
###################
$userlastaddr = &OpenFileAsString("$vars_config{NonCGIPath}/$exact_path/$_[1].wer");
if ($userlastaddr ne $ENV{'REMOTE_ADDR'}) {
$hit = &OpenFileAsString("$vars_config{NonCGIPath}/$exact_path/$_[1].hit");
$hit=$hit+1;
&WriteFileAsString("$vars_config{NonCGIPath}/$exact_path/$_[1].hit", $hit);
&ClearSingleForumPageCache($exact_path, $in{f});
} else {
unlink("$vars_config{NonCGIPath}/$exact_path/$_[1].wer");
}
Should be moved up to, say, after this:
code:
[qb] # does topic exist?
unless (-e "$vars_config{NonCGIPath}/$exact_path/$_[1].cgi") {
&StandardHTML("$vars_wordlets_err{topic_doesnt_exist}");
}
[/qb]
Where it is now, if the page is still being served from cache normally (and no php accell) it's not counting all the hits.