X-Git-Url: https://472bisson.ca/gitweb/magnet.git/blobdiff_plain/27695224d865b9d893ac8fecc40c7809d3337b45..f72c8eb6379cc7fad9cf8b4f49920a5004d3f52d:/index.php?ds=inline diff --git a/index.php b/index.php index 3ac54f4..bda4744 100644 --- a/index.php +++ b/index.php @@ -1,38 +1,73 @@ - - + - 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"; - } - } - ?> - + if(strlen($infohash) == 40 && ctype_xdigit($infohash)) + { + $magnetlink = "magnet:?xt=urn:btih:" . $infohash; - \ No newline at end of file + if($name != "") + { + $magnetlink = $magnetlink . "&dn=" . $name; + } + if($trackers != "") + { + $magnetlink = $magnetlink . "&tr=" . $trackers; + } + } + //$magnetlink = "magnet:?xt=urn:btih:" .$infohash . "&dn=" . $name . "&tr=" . $trackers; +} +?> + + + + Magnet + + + + + +
+
+

Magnet Info

+
+
+

+ + +

+

+ + +

+

+ + +

+

+ + +

+
+
+ +
+

+
+ +
+

Enter Some Torrent Info Hash

+
+ + + \ No newline at end of file