If you see this message when trying to open the Forums admin page, it is caused by the new antiflood/dos attack prevention system. This writes the user's ip address and the microtime of the page load to the nuke_antiflood table each time the user loads a page. If there are 3 page loads in 2 seconds, the antiflood dies the script and puts up the "Sorry, too many page loads in so little time" message. Unfortunately, there are 4 page loads to view the Forums admin page. Each frame counts as a page load and they add up to four. So whenever you view the Forums admin page you exceed the limit and the page shuts down with the message. So the page loads criterium is too severe for the Forums admin page. (I cant believe they didnt test this)
Solution. In includes/ipban.php find near the bottom:
Code:
if ($numrow >= 3) {
echo "<br><br><center><b>Sorry, too many page loads in so little time!</b></center>";
die();
}
and change to:
Code:
if ($numrow >= 5) {
echo "<br><br><center><b>Sorry, too many page loads in so little time!</b></center>";
die();
}
This will allow sufficient page loads to view the frames in Forums admin, without disabling the antiflood system altogether.
_________________
dezina Support Mod
Joined: Jun 09, 2003
Posts: 1713
Location: England
Posted:
Sat Sep 30, 2006 1:20 am
Thanks, cures problem
_________________
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
alquimistax Nuke Cadet
Joined: Oct 19, 2006
Posts: 1
Posted:
Thu Oct 19, 2006 4:58 am
Hello.... How could i disable the antiflood system in my php nuke 8.0?
Greetings
scribby Nuke Soldier
Joined: Apr 25, 2005
Posts: 25
Posted:
Thu Oct 19, 2006 6:03 am
To disable it just remove the code:
Code:
if ($numrow >= 3) {
echo "<br><br><center><b>Sorry, too many page loads in so little time!</b></center>";
die();
}
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum