whoops TECK i meant admin/global.php

and for the cookie check and stuff wouldn't that just include any normal login? using the admin/sessions.php? regards
Edit:
Also included in the admin/global.php is this:
PHP Code:
$getperms=$DB_site->query_first("SELECT cancontrolpanel FROM user,usergroup WHERE user.usergroupid=usergroup.usergroupid AND user.userid='$bbuserinfo[userid]'");
if ($getperms[cancontrolpanel]!=1) {
$bbuserinfo[userid]=0;
}
which checks to see if the user can access the controlpanel and then if they don't bypass that...
PHP Code:
if ($bbuserinfo[userid]==0 and $checkpwd) {
that triggers the login code as listed above... hope that helps

regards...
g-force2k2