require('global.php'); if ($bbuserinfo[userid]==0) { //Send user to the registration page show_nopermission(); } else {