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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: IPGate for v3.4
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 26

Huntress
New Member

USA
96 Posts

Posted - 28 December 2002 :  11:26:49  Show Profile  Visit Huntress's Homepage
Hi all!

On serverhackers code base he is using the 7.1 beta, and we have folks asking about the usage of Type and DB Page Key.

Can anyone comment on the purpose and usage of these settings?

Thanks!

Diana
Go to Top of Page

ManniX
Starting Member

20 Posts

Posted - 09 January 2003 :  14:33:33  Show Profile
Im up to the point where i've added the dims and applications to config.asp and then i got to open the forums to "reinitiate the application variables" but i get this error:

Microsoft VBScript compilation error '800a0411'

Name redefined

/config.asp, line 129

Dim StrIPGateBan ,StrIPGateLck ,StrIPGateCok ,StrIPGateMet ,StrIPGateMsg ,StrIPGateLog ,StrIPGateTyp ,StrIPGateExp
----^

This seems really obvious but for a noob like me i just dont get what to do now.
Go to Top of Page

rsoxhater
Junior Member

120 Posts

Posted - 14 January 2003 :  23:57:34  Show Profile
Anyone have a copy of the latest release of this? I could def. use it - thanks!
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 19 January 2003 :  06:41:22  Show Profile
Hi Alex,

Can you look at http://forum.snitz.com/forum/topic.asp?TOPIC_ID=40701 for me please ? I'm at a loss to understand why it works, then doesn't work.
Go to Top of Page

ManniX
Starting Member

20 Posts

Posted - 19 January 2003 :  16:41:30  Show Profile
So i've installed the mod and everything appears to be fine, until i want to bas somebody and it just doesn't work. Banning is on and I add the IP and username as usual but he just keeps coming back. What can I do?
Go to Top of Page

KMC
Starting Member

40 Posts

Posted - 19 January 2003 :  16:42:11  Show Profile
I'm having the same problem a few others here have mentioned. Logging is not working. I've included <!--#INCLUDE FILE="inc_ipgate.asp"--> first at line 235 then at line 236 of inc_header.asp....

quote:

Response.Write "<html>" & vbNewline & vbNewline & _
"<head>" & vbNewline & _
"<title>" & GetNewTitle(strScriptName) & "</title>" & vbNewline

<!--#INCLUDE FILE="inc_ipgate.asp"-->

'## START - REMOVAL, MODIFICATION OR CIRCUMVENTING THIS CODE WILL VIOLATE THE SNITZ FORUMS 2000 LICENSE AGREEMENT



I've read through everything here and still can't get it going.

Help!???
Go to Top of Page

ManniX
Starting Member

20 Posts

Posted - 19 January 2003 :  16:53:38  Show Profile
Lol ignore my last post. i was being stupid.
I was adding the IP to the list of IPs but then not submitting the new configuration at the main IPGate screen. Whoops.
Go to Top of Page

TERM
New Member

82 Posts

Posted - 21 January 2003 :  05:17:14  Show Profile
Im getting this error can someone help me please.

quote:
Response object error 'ASP 0156 : 80004005'

Header Error

/testboard/config.asp, line 42

The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.



This is lines 41-45
quote:
Session.LCID = 1033 '## Do Not Edit
Response.Buffer = true

dim strDBType, strConnString, strTablePrefix, strMemberTablePrefix, strFilterTablePrefix '## Do Not Edit
Dim counter, ConnErrorNumber, ConnErrorDesc, blnSetup '## Do Not Edit


I am not sure that I put the code into inc_header.asp properly either, here is where I put it. Lines 321-363
quote:
call sForumNavigation()
Response.Write "</font></td>" & vbNewLine & _
" </tr>" & vbNewLine

select case Request.Form("Method_Type")

case "login"
Response.Write " </table>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
"</table>" & vbNewLine
if strLoginStatus = 0 then
Response.Write "<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Your username and/or password were incorrect.</font></p>" & vbNewLine & _
"<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Please either try again or register for an account.</font></p>" & vbNewLine
else
Response.Write "<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>You logged on successfully!</font></p>" & vbNewLine & _
"<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Thank you for your participation.</font></p>" & vbNewLine
end if
Response.Write "<meta http-equiv=""Refresh"" content=""2; URL=" & Request.ServerVariables("HTTP_REFERER") & """>" & vbNewLine & _
"<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""" & Request.ServerVariables("HTTP_REFERER") & """>Back To Forum</font></a></p>" & vbNewLine & _
"<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""95%"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td>" & vbNewLine
WriteFooter
Response.End
'########### IP Gate ##################### %>
<!--#INCLUDE FILE="inc_ipgate.asp"-->
<% '##########IP Gate ################
case "logout"
Response.Write " </table>" & vbNewLine & _
" </td>" & vbNewLine & _
" </tr>" & vbNewLine & _
"</table>" & vbNewLine & _
"<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>You logged out successfully!</font></p>" & vbNewLine & _
"<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strHeaderFontSize & """>Thank you for your participation.</font></p>" & vbNewLine & _
"<meta http-equiv=""Refresh"" content=""2; URL=default.asp"">" & vbNewLine & _
"<p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href=""default.asp"">Back To Forum</font></a></p>" & vbNewLine & _
"<table align=""center"" border=""0"" cellPadding=""0"" cellSpacing=""0"" width=""95%"">" & vbNewLine & _
" <tr>" & vbNewLine & _
" <td>" & vbNewLine
WriteFooter
Response.End
end select



I never had the %><% on the include, but it was giving me errors, so I added it, and the error went to config.asp, so I dont know if thats a direct result or not, but it was saying "expected statement"

This is the latest version v.8 If anymore information would make diagnosing those problem easier, PLEASE let me know, I have a problem user(s) on my board and simple name ban isnt doing anything.
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 21 January 2003 :  17:10:12  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message
TERM, you getting that error when you try to go to the admin page?
Go to Top of Page

TERM
New Member

82 Posts

Posted - 21 January 2003 :  22:07:07  Show Profile
yes i am
Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 22 January 2003 :  08:14:53  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message
delete the first line from admin page, it says something like <title>.........</title>
Go to Top of Page

TERM
New Member

82 Posts

Posted - 23 January 2003 :  03:36:21  Show Profile
awesome.. Thanks..
Go to Top of Page

TERM
New Member

82 Posts

Posted - 23 January 2003 :  03:52:57  Show Profile
New Error

quote:
Microsoft VBScript runtime error '800a01a8'

Object required: ''

/forum/inc_ipgate.asp, line 116



Here is lines 116-142

quote:
rs1.Open StrSql, strConnString

if (not rs1.eof and not rs1.bof) or (StrIPGateCok <> 0 and Request.Cookies("IPGate") <> "") then 'check for db ips & user cookies

Set rs3 = Server.CreateObject("ADODB.Recordset")
StrSql = "INSERT into " & strTablePrefix & "IPLOG (IPLOG_MEMBERID, IPLOG_IP, IPLOG_PATHINFO, IPLOG_DATE) "
StrSql = StrSql & "values ('" & strDBNTUserName & "','" & userip & "','" & pagereq & "','" & userdate & "')"
rs3.Open StrSql, strConnString
if rs3.State = 1 then rs3.Close
set rs3 = nothing

else
rs1.close

end if

Case 1 'log all ips
StrSql = "INSERT into " & strTablePrefix & "IPLOG (IPLOG_MEMBERID, IPLOG_IP, IPLOG_PATHINFO, IPLOG_DATE) "
StrSql = StrSql & "values ('" & strDBNTUserName & "','" & userip & "','" & pagereq & "','" & userdate & "')"
rs1.Open StrSql, strConnString

end select

if rs1.State = 1 then rs1.Close
set rs1 = nothing

end function

Go to Top of Page

Chuck McB
Junior Member

WooYay
196 Posts

Posted - 23 January 2003 :  07:36:48  Show Profile  Visit Chuck McB's Homepage  Send Chuck McB an ICQ Message
Is the start of the function? (line: 101 - 108 ish)

function logip()

	Set rs1 = Server.CreateObject("ADODB.Recordset")

	Select Case StrIPGateTyp
	Case 0 'log db ips only
		StrSql = "SELECT IPLIST_STARTDATE, IPLIST_ENDDATE, IPLIST_STATUS, IPLIST_DBPAGEKEY " 
		StrSql = StrSql & "FROM " & strTablePrefix & "IPLIST"
.....
Go to Top of Page

TERM
New Member

82 Posts

Posted - 23 January 2003 :  19:12:16  Show Profile
it was rs2 for "Set rs1"

but it still gives me same error when i change it.
Go to Top of Page
Page: of 26 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07