yep, that did it for me.
In other words, you should have the permission-check section look like
PHP Code:
if (!ismoderator() or !$permissions['canview']) {
include "vb3login.php";
cpfooter();
exit;
}
// ###################### Start makemodchoosercode #######################
Also, note that you'll have to edit the vb3login.php page if you want to use the same stylesheet & pics for mod & admin panel (basically create absolute paths for them)