From: Manjunath CV Date: Thu, 26 Dec 2013 17:03:01 +0000 (+0530) Subject: Code changes X-Git-Url: https://472bisson.ca/gitweb/magnet.git/commitdiff_plain/6351182c4f4abea9796adf4b5fe17bbc7dbda907?ds=sidebyside Code changes --- diff --git a/.gitignore b/.gitignore index 14bc68c..b699395 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/nbproject/private/ \ No newline at end of file +/nbproject/private/ +/nbproject/ \ No newline at end of file diff --git a/index.php b/index.php index 3ac54f4..2dad933 100644 --- a/index.php +++ b/index.php @@ -1,38 +1,33 @@ - Torrage -

Torrage

-
- - "; - if(strlen($infohash) == 40 && ctype_xdigit($infohash)) - { + + "; $url = "http://torrage.com/torrent/".$infohash.".torrent"; header( 'Location: '.$url ) ; //Internet - } - else - { - echo "Invalid INFO_HASH"; - } + } + else + { + echo "Invalid INFO_HASH"; + } } ?> - \ No newline at end of file