Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   error with ext (http://www.bvlist.com/showthread.php?t=1091)

movizdb 10th October 2008 18:47

hello i have this
Code:

Fatal error: Call to undefined function curl_init() in /users/movizdb/www/backend/functions.php on line 846

Subzero 10th October 2008 23:39

Quote:

Originally Posted by movizdb (Post 5001)
hello i have this
Code:

Fatal error: Call to undefined function curl_init() in /users/movizdb/www/backend/functions.php on line 846

That function no there then m8

hack346 4th April 2009 17:46

open your function.php

find:

Code:

function torrent_scrape_url($scrape, $hash) {
    $ch = curl_init();
    $timeout = 5;
    curl_setopt ($ch, CURLOPT_URL, $scrape.'?info_hash='.escape_url($hash));
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $fp = curl_exec($ch);
    curl_close($ch);

    $ret = array();
    if(!$fp) {
        $ret['seeds'] = -1;
        $ret['peers'] = -1;
    }else{
        $stats = BDecode($fp);
        $binhash = addslashes(pack("H*", $hash));
        $seeds = $stats['files'][$binhash]['complete'];
        $peers = $stats['files'][$binhash]['incomplete'];
        $downloaded = $stats['files'][$binhash]['downloaded'];
        $ret['seeds'] = $seeds;
        $ret['peers'] = $peers;
        $ret['downloaded'] = $downloaded;
    }
    return $ret;
}

change with:

Code:

function torrent_scrape_url($scrape, $hash) {
    ini_set('default_socket_timeout',10);
    @$fp = file_get_contents($scrape.'?info_hash='.escape_url($hash));
    $ret = array();
    if(!$fp) {
        $ret['seeds'] = -1;
        $ret['peers'] = -1;
    }else{
        $stats = BDecode($fp);
        $binhash = addslashes(pack("H*", $hash));
        $seeds = $stats['files'][$binhash]['complete'];
        $peers = $stats['files'][$binhash]['incomplete'];
        $downloaded = $stats['files'][$binhash]['downloaded'];
        $ret['seeds'] = $seeds;
        $ret['peers'] = $peers;
        $ret['downloaded'] = $downloaded;
    }
    return $ret;
}

in conclusion, restore your old code

that error is not a tracker source bug

that error means : This torrent does not exist in this tracker. (this error is available for external torrents)


All times are GMT +2. The time now is 12:19.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.