Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 IPGate bug fixes
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 23 January 2003 :  09:26:00  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message
Trying to fix up some of the non-functional code esp. this disabled line

line 107 to 114 and 151 to 158 

StrSql = "SELECT IPLIST_STARTDATE, IPLIST_ENDDATE, IPLIST_STATUS, IPLIST_DBPAGEKEY " 
StrSql = StrSql & "FROM " & strTablePrefix & "IPLIST"
StrSql = StrSql & " WHERE ('" & userip & "' = IPLIST_STARTIP" 'find matching ips
StrSql = StrSql & " OR '" & userhost & "' = IPLIST_STARTIP" 'find matching hosts
'StrSql = StrSql & " OR instr('" & userip & "', IPLIST_STARTIP) <> 0" 'find matching ranges
StrSql = StrSql & " OR '" & strDBNTUserName & "' = IPLIST_MEMBERID" 'find matching members
StrSql = StrSql & ") AND ('" & userdate & "' >= IPLIST_BEGINDATE" 
StrSql = StrSql & " AND '" & userdate & "' <= IPLIST_ENDDATE )" 


I found that this is a suitable replacement for the red line:


StrSql = StrSql & " OR '" & userip & "' NOT LIKE '%" & IPLIST_STARTIP & "%'" 'find matching ranges


Not quite sure why it takes a NOT LIKE rather then a LIKE but it seems to work fine. Strange. Anyone want to double check on their systems/confirm?

CodeName
Junior Member

296 Posts

Posted - 29 January 2003 :  11:45:04  Show Profile
at inc_ipgate.asp ?
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 29 January 2003 :  14:37:13  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message
yea, sorry in inc_ipgate.asp
Go to Top of Page

night-red
Starting Member

Canada
8 Posts

Posted - 29 January 2003 :  18:51:05  Show Profile  Visit night-red's Homepage  Send night-red an ICQ Message
that is not working for me but hen again i might just be crazy.
It is acting very oddly it loges everything.

- Night-Red
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 29 January 2003 :  19:31:42  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message
yea, there's summit up with the logic in the SQL, try dropping the 'NOT' from 'NOT LIKE'. (I've been using the logip finction for this testing so I don't ban anyone from the forum)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07