kmfdm_kid2000
08-22-2002, 04:20 AM
Ok, I use this line of PHP:
cpheader();if ($bbuserinfo[userid]!=1) {
echo "No Authorization."; cpfooter(); exit;}
To lock my other Admin out of making changes to certain things, like templates. My question is this: I'd like to add yet another Admin, but I want the PHP statement to include more than just user ID#1. For example, I only want to allow User ID#1 and #6 to access vB Options. How can I alter the code so it includes both of our user ID's, and locks out other user ID's?? This little line of code has worked wonders as far as security goes. I think it could be made better though, if only I knew how to include 1 or more user ID#'s...
Thanks in advance :D
cpheader();if ($bbuserinfo[userid]!=1) {
echo "No Authorization."; cpfooter(); exit;}
To lock my other Admin out of making changes to certain things, like templates. My question is this: I'd like to add yet another Admin, but I want the PHP statement to include more than just user ID#1. For example, I only want to allow User ID#1 and #6 to access vB Options. How can I alter the code so it includes both of our user ID's, and locks out other user ID's?? This little line of code has worked wonders as far as security goes. I think it could be made better though, if only I knew how to include 1 or more user ID#'s...
Thanks in advance :D