]> 472bisson.ca Git - magnet.git/commitdiff
Test commit from NetBeans.
authorManjunath CV <cvmanjoo@gmail.com>
Thu, 26 Dec 2013 04:12:43 +0000 (09:42 +0530)
committerManjunath CV <cvmanjoo@gmail.com>
Thu, 26 Dec 2013 04:23:44 +0000 (09:53 +0530)
.gitignore [new file with mode: 0644]
index.php
nbproject/project.properties [new file with mode: 0644]
nbproject/project.xml [new file with mode: 0644]
style.css

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..14bc68c
--- /dev/null
@@ -0,0 +1 @@
+/nbproject/private/
\ No newline at end of file
index c32640f097a42a3fb9e4a28cf4821eb5bc5f2e0e..3ac54f4a4b68717411b279f604ee94c4ca8fa3bb 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,42 +1,38 @@
-<!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
 </html>                                                                                                           
\ No newline at end of file
diff --git a/nbproject/project.properties b/nbproject/project.properties
new file mode 100644 (file)
index 0000000..8b7302c
--- /dev/null
@@ -0,0 +1,7 @@
+include.path=${php.global.include.path}\r
+php.version=PHP_54\r
+source.encoding=UTF-8\r
+src.dir=.\r
+tags.asp=false\r
+tags.short=false\r
+web.root=.\r
diff --git a/nbproject/project.xml b/nbproject/project.xml
new file mode 100644 (file)
index 0000000..838c206
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<project xmlns="http://www.netbeans.org/ns/project/1">\r
+    <type>org.netbeans.modules.php.project</type>\r
+    <configuration>\r
+        <data xmlns="http://www.netbeans.org/ns/php-project/1">\r
+            <name>torrage</name>\r
+        </data>\r
+    </configuration>\r
+</project>\r
index e5611c1d00de89e57d17907ec9018768110eea8f..62ba5e7c377bdf9d4f938b889f32f0420b27c157 100644 (file)
--- a/style.css
+++ b/style.css
@@ -1,42 +1,39 @@
-/* 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
 */
\ No newline at end of file