protected static function getCurrentHost() { if (isset($_SERVER['HTTP_HOST'])) { return $_SERVER['HTTP_HOST']; } return 'unknown'; }