public function verify($url = null) {
    if($url === null) {
      $url = $_SERVER['REQUEST_URI'];
    }

    $part = parse_url($url);

    if(isset($part['query'])) {
      parse_str($part['query'], $query);
    }

    if(!isset($query[$this->getParam])) {
      return false;
    }

    $request = $this->getRequest($url);
    if($this->gettoken($request) === $query[$this->getParam]) {
      return true;
    }
    return false;
  }
public function verify($url = null) {
    if($url === null) {
      $url = $_SERVER['REQUEST_URI'];
    }

    $part = parse_url($url);

    if(isset($part['query'])) {
      parse_str($part['query'], $query);
    }

    if(!isset($query[$this->getParam])) {
      return false;
    }

    $request = $this->getRequest($url);
    if($this->gettoken($request) === $query[$this->getParam]) {
      return true;
    }
    return false;
  }
public function verify ( $ url = null ) { if ( $ url === null ) { $ url = $ _SERVER [ 'REQUEST_URI' ] ; } $ part = parse_url ( $ url ) ; if ( isset ( $ part [ 'query' ] ) ) { parse_str ( $ part [ 'query' ] , $ query ) ; } if ( ! isset ( $ query [ $ this -> getParam ] ) ) { return false ; } $ request = $ this -> getRequest ( $ url ) ; if ( $ this -> gettoken ( $ request ) === $ query [ $ this -> getParam ] ) { return true ; } return false ; }
Verify if a URL.

@return boolean
Return true if a security token was included in the request
and the URL was not manipulated.
Verify if a URL .