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
If you want a full blown site, you'll need to wait a couple of months or grab tbdev.
Bookmarks