Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Integrated Login system?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Integrated Login system?

 Post Reply Post Reply Page  <12
Author
-koen- View Drop Down
Groupie
Groupie
Avatar

Joined: 22 February 2006
Location: Netherlands
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote -koen- Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2006 at 7:17pm
Srry but i'm already use an file for the firewall mod,
 
example

<% const strpagina="screenshot" %>
<!--#include file="includes/pagina_inc.asp"-->
<% if pagina_stat = 1 or blnadmin then %>
and at the end:

<% else
        Response.Redirect("insufficient_permission.asp?M=PAGE")
end if%>
 
I think this is the best


Edited by -koen- - 24 July 2006 at 7:19pm
Don't check me english spelling please...
Back to Top
slapmonkay View Drop Down
Newbie
Newbie


Joined: 13 July 2006
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote slapmonkay Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2006 at 7:21pm
Originally posted by -koen- -koen- wrote:

Srry but i'm already use an file for the firewall mod,
 
example

<% const strpagina="screenshot" %>
<!--#include file="includes/pagina_inc.asp"-->
<% if pagina_stat = 1 or blnadmin then %>
and at the end:

<% else
        Response.Redirect("insufficient_permission.asp?M=PAGE")
end if%>
 
 
Thats fine it works! But when you are checking permissions and you want to keep it short my example would be the shortest and cleanest. I was just throwing it out there so if anyone else needs it they have it.
Back to Top
-koen- View Drop Down
Groupie
Groupie
Avatar

Joined: 22 February 2006
Location: Netherlands
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote -koen- Quote  Post ReplyReply Direct Link To This Post Posted: 24 July 2006 at 7:36pm
bikeweb are you done or still need help?
 
because of I'm going soon release the littelfire wall and I need people to test
Don't check me english spelling please...
Back to Top
Scotty32 View Drop Down
Moderator Group
Moderator Group


Joined: 30 November 2002
Location: Manchester, UK
Status: Offline
Points: 1682
Post Options Post Options   Thanks (0) Thanks(0)   Quote Scotty32 Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2006 at 9:05am
Originally posted by demon demon wrote:

<!--#include file="forum/common.asp" -->
This isn't everything you need,
At each page you wan't to lock you need to paste under <!--#include file="common.asp" -->
 
<%
If if intGroupID = 3 or blnadmin then
%>
 
example:
 
<% @ Language=VBScript %>
<% Option Explicit %>
<!--#include file="common.asp" -->
<% If if intGroupID = 3 or blnadmin then %>
 
The red part is what you need to add
 
Group ID is the id of the group you wan't to give premission like 3 the moderators, the easiest way the check the group id is in "manage groups" in admin cp. Move the mouse over and see the ID. blnadmin is administrator this work for mod and admin. At the end of the page paste:
 
<% else
        Call closeDatabase()
        Response.Redirect("insufficient_permission.asp?M=PAGE")
end if %>


you forgot one of the most important parts - the part in green.

and for a better way of doing this would be:

<% @ Language=VBScript %>
<% Option Explicit %>
<!--#include file="common.asp" -->
<%
      If intGroupID = 3 or blnadmin then
      else
           Call closeDatabase()
           Response.Redirect("insufficient_permission.asp?M=PAGE")
     end if
%>



Edited by Scotty32 - 25 July 2006 at 9:06am
S2H.co.uk - WebWiz Mods and Skins

For support on my mods + skins, please use my forum.
Back to Top
-koen- View Drop Down
Groupie
Groupie
Avatar

Joined: 22 February 2006
Location: Netherlands
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote -koen- Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2006 at 9:16am

Oh thanks scotty32,

I know I did forget something but not what.

<% @ Language=VBScript %>
<% Option Explicit %>
<!--#include file="common.asp" -->

<%
      If intGroupID = 3 or blnadmin then
      else
           Call closeDatabase()
           Response.Redirect("insufficient_permission.asp?M=PAGE")
     end if
%>

And is that way you did faster or better? I wanna know else I have to chance whole MOD...
Right now i use this for the mod:

<% Call closeDatabase()
const strpagina="download" %>
<!--#include file="includes/pagina_inc.asp"-->
<% if pagina_status = 1 or blnadmin then %>
and at the end

<% else
        Response.Redirect("insufficient_permission.asp?M=GAME")
end if%>


Edited by -koen- - 25 July 2006 at 9:18am
Don't check me english spelling please...
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.