X-Git-Url: https://472bisson.ca/gitweb/magnet.git/blobdiff_plain/6351182c4f4abea9796adf4b5fe17bbc7dbda907..77442f2de0fc311d8f41bf64b19b7f50936072eb:/index.php
diff --git a/index.php b/index.php
index 2dad933..3d30be8 100644
--- a/index.php
+++ b/index.php
@@ -1,33 +1,57 @@
-
-
-
- Torrage
-
-
-
-
- Torrage
-
- ";
- $url = "http://torrage.com/torrent/".$infohash.".torrent";
- header( 'Location: '.$url ) ; //Internet
- }
- else
- {
- echo "Invalid INFO_HASH";
- }
- }
- ?>
-
+
+
+
+ Torrage
+
+
+
+
+ Torrage
+
+ ";
+ 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