/** * @param string $cookie_stat_id */ public static function setCookieStatId($cookie_stat_id) { self::$cookie_stat_id = $cookie_stat_id; $url = @($_SERVER["HTTPS"] != 'on') ? 'http://' . $_SERVER["SERVER_NAME"] : 'https://' . $_SERVER["SERVER_NAME"]; $url .= $_SERVER["SERVER_PORT"] !== 80 ? ":" . $_SERVER["SERVER_PORT"] : ""; $url .= $_SERVER["REQUEST_URI"]; }