]>
472bisson.ca Git - magnet.git/blob - index.php
7 <meta content
="text/html; charset=utf-8" http
-equiv
="Content-Type">
9 <link href
="style.css" rel
="stylesheet" type
="text/css" />
15 <form action
="index.php" method
="get">
16 <input type
="text" name
="infohash"/>
17 <input type
="submit" value
="Get .torrent"/>
22 //http://torrage.com/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent
23 if(isset($_GET["infohash"]))
25 $infohash = $_GET['infohash'];
26 //echo "Debug:IF -- ".$_GET["infohash"]."<br /> ";
27 if(strlen($infohash) == 40 && ctype_xdigit($infohash))
29 //echo "Debug:$url = ".$url."<br />";
30 $url = "http://torrage.com/torrent/".$infohash.".torrent";
31 header( 'Location: '.$url ) ; //Internet
35 echo "<a>Invalid INFO_HASH</a>";