/** * URL de base dos arquivos publicos * @return string */ public static function getBaseUrl() { if (self::$BaseURL) { return self::$BaseURL; } else { return self::$BaseURL = preg_replace(['/\\/$/', '/\\?.*/'], null, str_replace(!empty($_GET['GET_VARS']) ? "/{$_GET['GET_VARS']}" : null, null, "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}")); } }