From 62e96b27b092c3c529f8da78b8e8548e058a834f Mon Sep 17 00:00:00 2001 From: Manjunath CV Date: Sat, 28 Dec 2013 17:23:54 +0530 Subject: [PATCH 1/1] Added http://torcache.net --- index.php | 74 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 45 insertions(+), 29 deletions(-) diff --git a/index.php b/index.php index 2dad933..090c191 100644 --- a/index.php +++ b/index.php @@ -1,33 +1,49 @@ - - Torrage - - - - -

Torrage

-
- - -
- + Torrage + + + + +

Torrage

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