How do I check if a user is pro in php?

Hi,

On my main blog, how can I check if a user:
1. Has a paid pro site in php, and
2. Has paid for that site?

This is so I can show different content to users with pro sites and redirect users who haven't paid to the payment page, whilst showing different content to normal subscribers.

If possible I would also like to give users with there own sites the editor roll on the main site.

Thanks in advance
Sofia :slight_smile: