Cool, I rewrote the whole banning part of it and cleaned up the coding quite a bit. I'll release the full one here in a couple of days. IT is released fully on sh's forums.
Good lesson learned ==> Flowcharts are yer friends
10/27 I had to fix a bug with not using enough () for checking ip subnet which wouldn't ban them correctly. Patched file here.. http://www.gpctexas.net/inc_ipgate.txt
gpctexas. My logs do not store all ips correctly. They seem to get to a particular number of entries and then start to replace eachother resulting in an incomplete list. Is this intentional ? If it is can I make it not do that ? Thanks!
Also when I lock down the forum I cannot login to the admin section. It says that I have but then kicks me back to the lockdown page.
Gargoyle: When you are viewing the logs, you are only getting the last 150 entries. The other entries are there just not being shown. I did this to help on page loading time. It originally was set to load 500 at a time from Alex.
if you locate this in admin_ipgate.asp
Case "Logs" Set rs = Server.CreateObject("ADODB.Recordset")
Select Case strDBType Case "mysql" strSql = "SELECT * from " & strTablePrefix & "IPLOG order by IPLOG_ID desc LIMIT 0,500" Case "access" strSql = "SELECT TOP 150 * from " & strTablePrefix & "IPLOG IPLOG order by IPLOG_ID desc" Case else strSql = "SELECT * from " & strTablePrefix & "IPLOG order by IPLOG_ID desc" end select
and change the 150 back to 500.
I am currently working on the logs page to add some sort of sorting function to it.
Check your inc_ipgate and locate the line about 122 if strIPGateLck = 1 then
and see if mlev < 4 is with it.
The lastest inc_ipgate.asp has this. First test runs I forgot to add this to this line.
To verify, if I am banning a specific IP address, I don't need to use username. If it is a range, then username must also exist. Correct? Install was a breeze and its working...awesome.
ver 2.1 does not need the username anymore. You should just be able to ban by range and it will work. Previous releases had the problem of both, but not anymore.