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
 Fixed the universal login issue, but...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Viccan
Starting Member

7 Posts

Posted - 18 February 2005 :  20:58:57  Show Profile
Hey!

I modified the inc_header.asp file and fixed the login thing. Thanx for the help guys (just kidding)...

Anyways, I need code to protect the other sites with. So if someone, who is not logged in tries to enter them, he gets redirected to the default.asp...

I know it should look something like:

<!--#INCLUDE VIRTUAL="forum/config.asp"-->
<!--#INCLUDE VIRTUAL="forum/inc_sha256.asp"-->
<!--#INCLUDE VIRTUAL="forum/inc_func_common.asp"-->

<%
if strDBNTUserName = "" then
Response.Redirect("default.asp")




Could someone finish it off for me?

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 18 February 2005 :  21:15:36  Show Profile  Visit Jezmeister's Homepage
I've always done it this way (you would need the includes still):
if (mLev = 0) then
Response.Redirect("default.asp")
end if
you may need to include inc_header, or at least the beginning of inc_header.

for your way you'd just need to add
end if %>
to the end of the code you put there... again you might need inc_header included.

Edited by - Jezmeister on 18 February 2005 21:21:25
Go to Top of Page

Viccan
Starting Member

7 Posts

Posted - 19 February 2005 :  06:58:49  Show Profile
No, mine didnt work. But yours did

I included the top of inc_header.asp and put

if (mLev = 0) then
Response.Redirect("default.asp")
end if

then it worked. Thanx yo
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 19 February 2005 :  15:51:05  Show Profile  Visit Jezmeister's Homepage
You're welcome.
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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07