public static function is_authorized_domain($domain0)
 {
     $pieces = explode(':', $domain0);
     $domain = $pieces[0];
     return in_array($domain, UBConfig::authorized_domains());
 }