X-Git-Url: https://472bisson.ca/gitweb/magnet.git/blobdiff_plain/9ab9ae27d681b5a0e6e945a78eae0a08df98b575..62e96b27b092c3c529f8da78b8e8548e058a834f:/index.php
diff --git a/index.php b/index.php
index e7c0591..090c191 100644
--- a/index.php
+++ b/index.php
@@ -1,45 +1,49 @@
-
-
-
-
-
- Torrage
-
-
-
- Torrage
-
-
- ";
-
- $url = "http://torrage.com/torrent/".$infohash.".torrent";
-
- echo $url;
-
- header( 'Location: '.$url ) ; //Internet
-
- }
-
-
-
-
- ?>
-
-
+
+
+
+ Torrage
+
+
+
+
+ Torrage
+
+ ";
+ if ($site == 'torrage')
+ {
+ $url = "http://torrage.com/torrent/" . $infohash . ".torrent";
+ header('Location: ' . $url); //Internet
+ }
+ else
+ {
+ $url = "http://torcache.net/torrent/" . $infohash . ".torrent";
+ header('Location: ' . $url); //Internet
+ }
+ }
+ else
+ {
+ echo "Invalid INFO_HASH";
+ }
+ }
+ ?>
+
+
\ No newline at end of file