hmm i need the same but some changes i need:
i need to protect an directory on my webserver like this
/memberarea/index.php
the login code must check the usergroup like gr. 1 5 8 12 may enter all other gets the error NOACCES msg
is it possible to use this code and what changes to to:
require("./global.php");
if ($bbuserinfo[userid]==0) {
show_nopermission();
}
@Jakeman create an index.php and put this code in it all regged members are able to viev the page others get logincode
|