phpGSB v0.2.3

To download the library, use this link.

The table below shows a list of source files in the library that require changes.

File Changes
phpgsb.class.php
  1. Find the following line:

    var $apiversion = "2.2";
  2. Substitute the following:

    var $apiversion = "2.3";
  3. Find the following section:

    function googleDownloader($url,$options,$followbackoff=false)
    {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  4. Substitute the following:

    function googleDownloader($url,$options,$followbackoff=false)
    {
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  5. Find the following line:

    $result = $this->googleDownloader("http://safebrowsing.clients.google.com/safebrowsing/downloads?client=api&apikey=".$this->apikey."&appver=".$this->version."&pver=".$this->apiversion,$buildopts,"data");
  6. Substitute the following:

    $result = $this->googleDownloader("http://sba.yandex.net/downloads?client=api&apikey=<API key value>"."&appver=2.3"."&pver=".$this->apiversion,$buildopts,"data");
    Attention. Substitute with the API key value provided to you.
  7. Find the following line:

    $result = $this->googleDownloader("http://safebrowsing.clients.google.com/safebrowsing/gethash?client=api&apikey=".$this->apikey."&appver=".$this->version."&pver=".$this->apiversion,$buildopts,"lookup");
  8. Substitute the following:

    $result = $this->googleDownloader("http://sba.yandex.net/gethash?client=api&apikey=<API key value>”."&appver=2.3"."&pver=".$this->apiversion,$buildopts,"lookup");
    Attention. Substitute with the API key value provided to you.