-<!DOCTYPE html>
-<html>
-
- <head>
- <title>Torrage</title>
-
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
-
- <link href="style.css" rel="stylesheet" type="text/css" />
-
- </head>
-
- <body>
- <h1>Torrage</h1>
- <form action="index.php" method="get">
- <input type="text" name="infohash"/>
- <input type="submit" value="Get .torrent"/>
- </form>
-
- <?php
-
- //http://torrage.com/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent
- if(isset($_GET["infohash"]))
- {
- $infohash = $_GET['infohash'];
- //echo "Debug:IF -- ".$_GET["infohash"]."<br /> ";
- if(strlen($infohash) == 40 && ctype_xdigit($infohash))
- {
- //echo "Debug:$url = ".$url."<br />";
- $url = "http://torrage.com/torrent/".$infohash.".torrent";
- header( 'Location: '.$url ) ; //Internet
- }
- else
- {
- echo "<a>Invalid INFO_HASH</a>";
- }
- }
- ?>
- <label></label>
- </body>
-
+<!DOCTYPE html>\r
+<html>\r
+\r
+ <head>\r
+ <title>Torrage</title>\r
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type">\r
+ <link href="style.css" rel="stylesheet" type="text/css" />\r
+ </head>\r
+ \r
+ <body>\r
+ <h1>Torrage</h1>\r
+ <form action="index.php" method="get">\r
+ <input type="text" name="infohash"/>\r
+ <input type="submit" value="Get .torrent"/>\r
+ </form>\r
+ \r
+ <?php \r
+ \r
+ //http://torrage.com/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent\r
+ if(isset($_GET["infohash"]))\r
+ {\r
+ $infohash = $_GET['infohash'];\r
+ //echo "Debug:IF -- ".$_GET["infohash"]."<br /> ";\r
+ if(strlen($infohash) == 40 && ctype_xdigit($infohash))\r
+ {\r
+ //echo "Debug:$url = ".$url."<br />";\r
+ $url = "http://torrage.com/torrent/".$infohash.".torrent";\r
+ header( 'Location: '.$url ) ; //Internet \r
+ }\r
+ else\r
+ {\r
+ echo "<a>Invalid INFO_HASH</a>"; \r
+ }\r
+ }\r
+ ?>\r
+ </body>\r
+\r
</html>
\ No newline at end of file
-/* CSS layout */
-
-body{
- margin: 5px;
- padding: 5px;
- font-family: monospace;
-}
-
-input[type=text] {
- width: 420px;
- height: 30px;
- padding: 1px;
-
- font-family:monospace;
- font-size:large;
-}
-
-input[type=submit] {
-
- font-family:monospace;
- font-size:large;
-
- border: 1px solid #777777;
- background: #6e9e2d;
- color: white;
- font: bold 11px 'Trebuchet MS';
- padding: 4px;
- height: 30px;
- cursor: pointer;
- -moz-border-radius: 4px;
- -webkit-border-radius: 4px;
-*/}
-
-
-
-
-/*
-
-http://www.tdl.com/~jrb/jrb7/css_textfield0.html
-http://www.red-team-design.com/style-an-input-button
-
+/* CSS layout */\r
+\r
+body{\r
+ margin: 5px;\r
+ padding: 5px;\r
+ font-family: monospace;\r
+}\r
+\r
+input[type=text] {\r
+ width: 420px;\r
+ height: 30px;\r
+ padding: 1px;\r
+ \r
+ font-family:monospace;\r
+ font-size:large;\r
+}\r
+\r
+input[type=submit] {\r
+ \r
+ font-family:monospace;\r
+ font-size:large;\r
+\r
+ border: 1px solid #777777;\r
+ background: #6e9e2d;\r
+ color: white;\r
+ font: bold 11px 'Trebuchet MS';\r
+ padding: 4px;\r
+ height: 30px;\r
+ cursor: pointer;\r
+ -moz-border-radius: 4px;\r
+ -webkit-border-radius: 4px;\r
+}\r
+\r
+/*\r
+\r
+http://www.tdl.com/~jrb/jrb7/css_textfield0.html\r
+http://www.red-team-design.com/style-an-input-button\r
+\r
*/
\ No newline at end of file