X-Git-Url: https://472bisson.ca/gitweb/magnet.git/blobdiff_plain/7b3c9a3af2a65be2653a274977d56e72954b1054..34998f07f6307b2aec57a89f0c57bb973fcd04de:/index.php?ds=inline diff --git a/index.php b/index.php index af11214..18644b2 100644 --- a/index.php +++ b/index.php @@ -1,39 +1,58 @@ - - - - Torrage - - - - - - - - - -

Torrage

-
- - - -
- - "; - - $url = "http://torrage.com/torrent/".$infohash.".torrent"; - - echo $url; - - header( 'Location: '.$url ) ; //Internet - } - ?> - - + + + Torrage + + + + +

Torrage

+
+ + +
+ + Torrage + + Torcache + + Zoink +
+ "; + if($site == 'torrage') + { + $url = "http://torrage.com/torrent/" . $infohash . ".torrent"; + header('Location: ' . $url); //Internet + } + else if($site == 'torcache') + { + $url = "http://torcache.net/torrent/" . $infohash . ".torrent"; + header('Location: ' . $url); //Internet + } + else + { + $url = "http://zoink.it/torrent/" . $infohash . ".torrent"; + header('Location: ' . $url); //Internet + } + } + else + { + echo "Invalid INFO_HASH"; + } + } + ?> + + \ No newline at end of file