]> 472bisson.ca Git - magnet.git/blobdiff - index.php
Added iStoreTor and formated Code
[magnet.git] / index.php
index 5a928c050618e46c81251ea1eccaccc8906134ba..0838e177056c49aff3f8c8dcb99f88c8d1487832 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,3 +1,45 @@
+<?php\r
+/************************\r
+  http://torrage.com/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent\r
+  http://torcache.net/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent\r
+  http://zoink.it/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent\r
+  http://istoretor.com/fdown.php?hash=640FE84C613C17F663551D218689A64E8AEBEABE\r
+ *************************/\r
+if(filter_has_var(INPUT_GET, 'infohash') && filter_has_var(INPUT_GET, 'site'))\r
+{\r
+    $infohash = filter_input(INPUT_GET, 'infohash');\r
+    $site = filter_input(INPUT_GET, 'site');\r
+    if(strlen($infohash) == 40 && ctype_xdigit($infohash))\r
+    {\r
+        $infohash = strtoupper($infohash);\r
+        //echo "Debug:$url = ".$url."<br />";\r
+        if($site == 'torrage')\r
+        {\r
+            $url = "http://torrage.com/torrent/" . $infohash . ".torrent";\r
+            header('Location: ' . $url);  //Internet \r
+        }\r
+        else if($site == 'torcache')\r
+        {\r
+            $url = "http://torcache.net/torrent/" . $infohash . ".torrent";\r
+            header('Location: ' . $url);  //Internet \r
+        }\r
+        else if($site == 'istoretor')\r
+        {\r
+            $url = "http://istoretor.com/fdown.php?hash=" . $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
+        echo "<span>Invalid INFO_HASH</span>";\r
+    }\r
+}\r
+?>\r
 <!DOCTYPE html>\r
 <html lang="en">\r
     <head>\r
 <!DOCTYPE html>\r
 <html lang="en">\r
     <head>\r
             <input type="radio" name="site" value="istoretor"/>\r
             <span>iStoreTor</span>\r
         </form>                \r
             <input type="radio" name="site" value="istoretor"/>\r
             <span>iStoreTor</span>\r
         </form>                \r
-        <?php\r
-        /************************\r
-          http://torrage.com/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent\r
-          http://torcache.net/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent\r
-          http://zoink.it/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent\r
-         * http://istoretor.com/fdown.php?hash=640FE84C613C17F663551D218689A64E8AEBEABE\r
-        *************************/\r
-        if(filter_has_var(INPUT_GET, 'infohash') && filter_has_var(INPUT_GET, 'site'))\r
-        {\r
-            $infohash = filter_input(INPUT_GET, 'infohash');\r
-            $site = filter_input(INPUT_GET, 'site');\r
-            if(strlen($infohash) == 40 && ctype_xdigit($infohash))\r
-            {\r
-                $infohash = strtoupper($infohash);\r
-                //echo "Debug:$url = ".$url."<br />";\r
-                if($site == 'torrage')\r
-                {\r
-                    $url = "http://torrage.com/torrent/" . $infohash . ".torrent";\r
-                    header('Location: ' . $url);  //Internet \r
-                }\r
-                else if($site == 'torcache')\r
-                {\r
-                    $url = "http://torcache.net/torrent/" . $infohash . ".torrent";\r
-                    header('Location: ' . $url);  //Internet \r
-                }\r
-                else if($site == 'istoretor')\r
-                {\r
-                    $url = "http://istoretor.com/fdown.php?hash=" . $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
-                echo "<span>Invalid INFO_HASH</span>";\r
-            }\r
-        }\r
-        ?>\r
+        <br>\r
+        <br>\r
+        <a href="magnet.php">Create Magnet link</a>\r
+        \r
+        \r
     </body>\r
 </html>                                                                                                           
\ No newline at end of file
     </body>\r
 </html>                                                                                                           
\ No newline at end of file