Is there a way to check to see if the user is a reseller or the server admin. I basically want to modify the email templates, that if its a reseller then the headers and footers of the emails will change. ie we use a custom header with images and footers with out telephone numbers etc. when a reseller sends out the email, they normally over ride the host templates, but sometimes they bugger up the coding editing the templates, so I want to enable the template to remove the footers and display other footers conditionally.
I actually would suggest having an option so the serveradmin can have its own templates and the resellers their own.
SQL is your friend with regards to determining the account type for a given user.