if($vbulletin->userinfo['permissions']['adminpermissions']){..}
if(!$show['admincplink'])print_no_permission();