X-Git-Url: https://472bisson.ca/gitweb/magnet.git/blobdiff_plain/27695224d865b9d893ac8fecc40c7809d3337b45..434527ce5fbb459435a792c198ee6d12066c86c1:/index.php
diff --git a/index.php b/index.php
index 3ac54f4..5a928c0 100644
--- a/index.php
+++ b/index.php
@@ -1,38 +1,66 @@
-
-
-
- Torrage
-
-
-
-
-
- Torrage
-
-
- ";
- if(strlen($infohash) == 40 && ctype_xdigit($infohash))
- {
- //echo "Debug:$url = ".$url."
";
- $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 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
+ }
+ }
+ else
+ {
+ echo "Invalid INFO_HASH";
+ }
+ }
+ ?>
+
\ No newline at end of file