X-Git-Url: https://472bisson.ca/gitweb/magnet.git/blobdiff_plain/7b3c9a3af2a65be2653a274977d56e72954b1054..9d9004e2b66ba893fe79375fe23ffb6f31800cdf:/index.php diff --git a/index.php b/index.php index af11214..c32640f 100644 --- a/index.php +++ b/index.php @@ -7,33 +7,36 @@ -

Torrage

- + -
"; - - $url = "http://torrage.com/torrent/".$infohash.".torrent"; - - echo $url; - - header( 'Location: '.$url ) ; //Internet + //echo "Debug:IF -- ".$_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"; + } } ?> + + - + \ No newline at end of file