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