protected function controlToken($key = null)
    {
        $control = isset($key) ? isset($this->query[$key]) : !empty($this->query);

        if ($control && (empty($this->query['token']) || !gplcart_string_equals($this->token, $this->query['token']))) {
            $this->response->outputError403();
        }
    }
protected function controlToken($key = null)
    {
        $control = isset($key) ? isset($this->query[$key]) : !empty($this->query);

        if ($control && (empty($this->query['token']) || !gplcart_string_equals($this->token, $this->query['token']))) {
            $this->response->outputError403();
        }
    }
protected function controlToken ( $ key = null ) { $ control = isset ( $ key ) ? isset ( $ this -> query [ $ key ] ) : ! empty ( $ this -> query ) ; if ( $ control && ( empty ( $ this -> query [ 'token' ] ) || ! gplcart_string_equals ( $ this -> token , $ this -> query [ 'token' ] ) ) ) { $ this -> response -> outputError403 ( ) ; } }
Controls token in the URL query
@param null|string $key
Controls token in the URL query