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: General / Classic ASP versions(v3.4.XX)
 Constants in "config.asp"
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kwhipp
Junior Member

United States
407 Posts

Posted - 28 February 2004 :  14:06:05  Show Profile
Do the constants "intAdminMemberID" and "intCookieDuration" have to be constants? What are some of the reasons why they should be declared as constants?

The reason I ask is that I would like to run multiple sites using one set of code. By embedding some host checking code within the one config.asp file, this could be accomplished. What do you think?

- Kevin

laser
Advanced Member

Australia
3859 Posts

Posted - 28 February 2004 :  16:07:16  Show Profile
I think the only rule is that you can never change a constant (hence the name )

I think I'd still keep them as constants - so there is no chance that a SQL injection problem can pass Admin control to a hacker.
Go to Top of Page

kwhipp
Junior Member

United States
407 Posts

Posted - 28 February 2004 :  22:31:40  Show Profile
That was the only reason I could think of. I was just wondering if there was any other. I think I can still do what I had planned regarding the multiple site via one set of code.

- Kevin
Go to Top of Page

Dave.
Senior Member

USA
1037 Posts

Posted - 28 February 2004 :  23:19:53  Show Profile
quote:
Originally posted by laser

I think the only rule is that you can never change a constant (hence the name )

I think I'd still keep them as constants - so there is no chance that a SQL injection problem can pass Admin control to a hacker.



But they would still need an mLev of 3 anyway.
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 29 February 2004 :  05:54:07  Show Profile
So all the Snitz code checks mlev and if you are Super Admin ? .. cool.
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.96 seconds. Powered By: Snitz Forums 2000 Version 3.4.07