X-Git-Url: https://472bisson.ca/gitweb/magnet.git/blobdiff_plain/9ab9ae27d681b5a0e6e945a78eae0a08df98b575..42804587e9572d02fd1240665fae1d6938235513:/index.php
diff --git a/index.php b/index.php
index e7c0591..c32640f 100644
--- a/index.php
+++ b/index.php
@@ -2,44 +2,41 @@
-
Torrage
+
+
+
+
+
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";
+ }
}
-
-
-
-
?>
+
+
-
+