X-Git-Url: https://472bisson.ca/gitweb/magnet.git/blobdiff_plain/77cde13f006c872a768b6ffe6fed99131f43a831..27695224d865b9d893ac8fecc40c7809d3337b45:/index.php diff --git a/index.php b/index.php index e7c0591..3ac54f4 100644 --- a/index.php +++ b/index.php @@ -1,45 +1,38 @@ - - - - - - Torrage - - - -

Torrage

-
- - - - - - - - - -
- - "; - - $url = "http://torrage.com/torrent/".$infohash.".torrent"; - - echo $url; - - header( 'Location: '.$url ) ; //Internet - - } - - - - - ?> - - + + + + + Torrage + + + + + +

Torrage

+
+ + +
+ + "; + 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"; + } + } + ?> + + + \ No newline at end of file