]> 472bisson.ca Git - magnet.git/blob - index.php
Merge branch 'master' of https://github.com/cvmanjoo/torrage
[magnet.git] / index.php
1 <!DOCTYPE html>
2 <html>
3
4 <head>
5 <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
6 <title>Torrage</title>
7 </head>
8
9 <body>
10 <h1>Torrage</h1>
11 <form action="index.php" method="get">
12 <input type="text" width="600" name="infohash"/>
13
14
15 <input type="submit" value="Get .torrent"/>
16
17
18
19
20
21 </form>
22
23 <?php
24
25 //http://torrage.com/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent
26
27 if(isset($_GET["infohash"]))
28 {
29 $infohash = $_GET['infohash'];
30 echo "Debug:IF --".$_GET["infohash"]."<br /> ";
31
32 $url = "http://torrage.com/torrent/".$infohash.".torrent";
33
34 echo $url;
35
36 header( 'Location: '.$url ) ; //Internet
37
38 }
39
40
41
42
43 ?>
44
45 </html>