private function _isHttps()
    {
        if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
            return ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https');
        } elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTOCOL'])) {
            return ($_SERVER['HTTP_X_FORWARDED_PROTOCOL'] === 'https');
        } elseif ( isset($_SERVER['HTTPS'])
            && !empty($_SERVER['HTTPS'])
            && strcasecmp($_SERVER['HTTPS'], 'off') !== 0
        ) {
            return true;
        }
        return false;

    }
private function _isHttps()
    {
        if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
            return ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https');
        } elseif (!empty($_SERVER['HTTP_X_FORWARDED_PROTOCOL'])) {
            return ($_SERVER['HTTP_X_FORWARDED_PROTOCOL'] === 'https');
        } elseif ( isset($_SERVER['HTTPS'])
            && !empty($_SERVER['HTTPS'])
            && strcasecmp($_SERVER['HTTPS'], 'off') !== 0
        ) {
            return true;
        }
        return false;

    }
private function _isHttps ( ) { if ( ! empty ( $ _SERVER [ 'HTTP_X_FORWARDED_PROTO' ] ) ) { return ( $ _SERVER [ 'HTTP_X_FORWARDED_PROTO' ] === 'https' ) ; } elseif ( ! empty ( $ _SERVER [ 'HTTP_X_FORWARDED_PROTOCOL' ] ) ) { return ( $ _SERVER [ 'HTTP_X_FORWARDED_PROTOCOL' ] === 'https' ) ; } elseif ( isset ( $ _SERVER [ 'HTTPS' ] ) && ! empty ( $ _SERVER [ 'HTTPS' ] ) && strcasecmp ( $ _SERVER [ 'HTTPS' ] , 'off' ) !== 0 ) { return true ; } return false ; }
This method checks to see if the request is secured via HTTPS

@return bool true if https, false otherwise
This method checks to see if the request is secured via HTTPS