From 6351182c4f4abea9796adf4b5fe17bbc7dbda907 Mon Sep 17 00:00:00 2001 From: Manjunath CV Date: Thu, 26 Dec 2013 22:33:01 +0530 Subject: [PATCH 1/1] Code changes --- .gitignore | 3 ++- index.php | 33 ++++++++++++++------------------- 2 files changed, 16 insertions(+), 20 deletions(-) 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 -- 2.39.5