require_once('./global.php'); if ($bbuserinfo['userid'] == 0) { echo "Sorry you are not a member"; die; }