Uses a very simple technique to parse out the subdomain from the current URL (it's not based on EE's {site_url}
config variable).
Creates a {subdomain}
global variable.
an EECMS extension that parses the current URL and creates a {subdomain} global variable
PHP