if ($permissions['imghost'] & $vbulletin->bf_ugp['imghost']['canupload']) { echo "Upload Permission set"; } else { echo "Upload Permission not set; }