M
Mike P
I have some code of my own where I am checking a username/password
against a database for login, I am not using any of the login controls
etc. What I want to do next is to create a folder for my admin pages
and make it only available to administrators. At login I set an int
which if an admin logs in is set to 2, otherwise it is set to 1 or 3. So
what I want to be able to do is check if this int is 2, and if so set a
global value which means that the admin pages can be viewed. How do I
do this?
against a database for login, I am not using any of the login controls
etc. What I want to do next is to create a folder for my admin pages
and make it only available to administrators. At login I set an int
which if an admin logs in is set to 2, otherwise it is set to 1 or 3. So
what I want to be able to do is check if this int is 2, and if so set a
global value which means that the admin pages can be viewed. How do I
do this?