]>
472bisson.ca Git - magnet.git/blob - index.php
5 <meta content
="text/html; charset=utf-8" http
-equiv
="Content-Type">
6 <link href
="style.css" rel
="stylesheet" type
="text/css" />
10 <form action
="index.php" method
="get">
11 <input type
="text" name
="infohash"/>
12 <input type
="submit" value
="Get .torrent"/>
14 <?php
//http://torrage.com/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent
16 if (filter_has_var(INPUT_GET
, 'infohash'))
18 $infohash = filter_input(INPUT_GET
, 'infohash');
20 if(strlen($infohash) == 40 && ctype_xdigit($infohash))
22 //echo "Debug:$url = ".$url."<br />";
23 $url = "http://torrage.com/torrent/".$infohash.".torrent";
24 header( 'Location: '.$url ) ; //Internet
28 echo "<a>Invalid INFO_HASH</a>";