X-Git-Url: https://472bisson.ca/gitweb/magnet.git/blobdiff_plain/b66caf1dce9526aeece6d22dc82382475cb02722..f72c8eb6379cc7fad9cf8b4f49920a5004d3f52d:/index.php diff --git a/index.php b/index.php index 0838e17..bda4744 100644 --- a/index.php +++ b/index.php @@ -1,71 +1,73 @@ "; - if($site == 'torrage') + $magnetlink = "magnet:?xt=urn:btih:" . $infohash; + + if($name != "") { - $url = "http://torrage.com/torrent/" . $infohash . ".torrent"; - header('Location: ' . $url); //Internet + $magnetlink = $magnetlink . "&dn=" . $name; } - else if($site == 'torcache') + if($trackers != "") { - $url = "http://torcache.net/torrent/" . $infohash . ".torrent"; - header('Location: ' . $url); //Internet - } - else if($site == 'istoretor') - { - $url = "http://istoretor.com/fdown.php?hash=" . $infohash . ".torrent"; - header('Location: ' . $url); //Internet - } - else - { - $url = "http://zoink.it/torrent/" . $infohash . ".torrent"; - header('Location: ' . $url); //Internet + $magnetlink = $magnetlink . "&tr=" . $trackers; } } - else - { - echo "Invalid INFO_HASH"; - } + //$magnetlink = "magnet:?xt=urn:btih:" .$infohash . "&dn=" . $name . "&tr=" . $trackers; } ?>
-