This topic is locked

bug in the block ip routine ?

2/27/2008 5:59:31 PM
PHPRunner General questions
J
Jean author

Hello,
I tried the control routine showed at
http://xlinesoft.com/articles/system_access_lock.htm
and meet what seems to be a bug. The $diff test ($test<30) never becomes positiv because $diff is always > 360 ...

which means there is no blocking action.
For example, I obtained the values:

$time= 1204130641

$diff = 374.033333333
Is there a bug ? How to correct it ?
Thanx.

Alexey admin 2/28/2008

Jean,
looks like time is set different at your Web and MySQL servers.

Either synchronize your servers or modify the code

I.e.

if($diff<360+30)

J
Jean author 2/28/2008

Thank you, it functions !