Re: Start your own public tracker
If you want a very easy, completely public tracker with nothing but announce:
announce.php
Code:
<?php
if(strlen($hash=bin2hex(stripslashes($_GET['info_hash'])))!==40 || strlen($pid=stripslashes($_GET['peer_id']))!==20 || ($port=0+$_GET['port'])<=0 || $port>65535) die('d14:failure reason5:oops1e');
if(!($f=@fopen($hash,'ab+')) || (filesize($hash)!==0 && (!flock($f,LOCK_SH) || false===($peers=@unserialize(@file_get_contents($hash)))))) die('d14:failure reason5:oops2e');
if($_GET['event']==='stopped') unset($peers[$_SERVER['REMOTE_ADDR']]);
else $peers[$_SERVER['REMOTE_ADDR']]='7:peer_id20:'.$pid.'4:porti'.$port.'e';
if(flock($f,LOCK_EX)) { @rewind($f); @ftruncate($f,0); @fputs($f,serialize($peers)); @fclose($f); }
$ret='d8:intervali1800e12:min intervali1800e5:peersl';
foreach($peers as $x=>$y) $ret.='d2:ip'.strlen($x).':'.$x.$y.'e';
print($ret.'ee');
?>
Absolutely no support in there for NAT, ratios or scrape, but it works and should be fast as hell :P
If you want a full blown site, you'll need to wait a couple of months or grab tbdev.
Re: Start your own public tracker
Re: Start your own public tracker
is there anywhere to download this from? links in this thread are dead, and there's no files on the website.
Re: Start your own public tracker
I might look into this for myself too. :)
Re: Start your own public tracker
Re: Start your own public tracker
Quote:
Originally Posted by
moda
hehe
That was quite the addition, thank you very much for contributing!
Re: Start your own public tracker
Quote:
Originally Posted by
rvt
If you want a very easy, completely public tracker with nothing but announce:
Absolutely no support in there for NAT, ratios or scrape, but it works and should be fast as hell :P
If you want a full blown site, you'll need to wait a couple of months or grab tbdev.
And how is the progress going? Any new updates, release?
Re: Start your own public tracker
Hi.
is there any news about that? nothing on the website and just the announce.php on the forum... or would it be possible to have access to the old code somehow?
thx!