It could be a hosting problem from what i`ve read since now...
Try this:
In
functions.php remove the @ in front of:
Code:
@$fp = file_get_contents($scrape.'?info_hash='.escape_url($hash));
It should give you a detailed error
1. allow_url_fopen is probably disabled
2. the web server isn't allowed to open outbound connections - this is because you`re on a shared hosting and not all the ports you need are opened, you need to ask your hosting company if you`re alowed outbound connections
If that doesn`t work try this:
replace the code in
/backend/functions.php and in
class_spider.php with:
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;
}
Don`t forget to make backup of the files before any edits !