]> 472bisson.ca Git - magnet.git/blobdiff - index.php
Added Zoink.it
[magnet.git] / index.php
index 090c191f4f2aaebc43fd1e30119e659b6b7b55ee..1fb6ddc0b444b142333f24514c76354c97a7bb2d 100644 (file)
--- a/index.php
+++ b/index.php
             <span>Torrage</span>\r
             <input type="radio" name="site" value="torcache"/>\r
             <span>Torcache</span>\r
+            <input type="radio" name="site" value="zoink"/>\r
+            <span>Zoink</span>\r
         </form>                \r
         <?php\r
         //http://torrage.com/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent\r
         //http://torcache.net/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent\r
+        //http://zoink.it/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent\r
 \r
         if (filter_has_var(INPUT_GET, 'infohash') && filter_has_var(INPUT_GET, 'site'))\r
         {\r
                     $url = "http://torrage.com/torrent/" . $infohash . ".torrent";\r
                     header('Location: ' . $url);  //Internet \r
                 }\r
-                else\r
+                else if ($site == 'torcache')\r
                 {\r
                     $url = "http://torcache.net/torrent/" . $infohash . ".torrent";\r
                     header('Location: ' . $url);  //Internet \r
                 }\r
+                else\r
+                {\r
+                    $url = "http://zoink.it/torrent/" . $infohash . ".torrent";\r
+                    header('Location: ' . $url);  //Internet \r
+                }\r
             }\r
             else\r
             {\r