X-Git-Url: https://472bisson.ca/gitweb/magnet.git/blobdiff_plain/62e96b27b092c3c529f8da78b8e8548e058a834f..c0adce5f9b064b542725bc661737678311bd7479:/index.php
diff --git a/index.php b/index.php
index 090c191..6f9e740 100644
--- a/index.php
+++ b/index.php
@@ -1,49 +1,125 @@
-
-
-
- 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
- }
+ $magnetlink = $magnetlink . "&dn=" . $name;
}
- else
+ if($trackers != "")
{
- echo "Invalid INFO_HASH";
+ $trackers = str_replace("\r","&tr=",$trackers);
+ $trackers = str_replace(" ","&tr=",$trackers);
+ $magnetlink = $magnetlink . "&tr=" . $trackers;
}
+ if ($webseeds != "")
+ {
+ $magnetlink = $magnetlink . "&ws=" . $webseeds;
+ }
}
+ else
+ {
+ $error_code = 2;
+ }
+ //$magnetlink = "magnet:?xt=urn:btih:" .$infohash . "&dn=" . $name . "&tr=" . $trackers;
+}
+?>
+
+
+
+ Magnet
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Error : Infohash cannot be empty.
+
+
+
+
Error : Invalid Infohash.
+
+
+
+
+
+
Enter Some Torrent Info Hash
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file