]> 472bisson.ca Git - magnet.git/blob - index.php
Cleaned Code and added Style Sheet
[magnet.git] / index.php
1 <!DOCTYPE html>
2 <html>
3
4 <head>
5 <title>Torrage</title>
6
7 <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
8
9 <link href="style.css" rel="stylesheet" type="text/css" />
10 <link href='http://fonts.googleapis.com/css?family=Voces' rel='stylesheet' type='text/css'>
11
12 </head>
13
14 <body>
15 <h1>Torrage</h1>
16 <form action="index.php" method="get">
17 <input type="text" width="600" name="infohash"/>
18 <input type="submit" value="Get .torrent"/>
19
20 </form>
21
22 <?php
23
24 //http://torrage.com/torrent/640FE84C613C17F663551D218689A64E8AEBEABE.torrent
25
26 if(isset($_GET["infohash"]))
27 {
28 $infohash = $_GET['infohash'];
29 echo "Debug:IF --".$_GET["infohash"]."<br /> ";
30
31 $url = "http://torrage.com/torrent/".$infohash.".torrent";
32
33 echo $url;
34
35 header( 'Location: '.$url ) ; //Internet
36 }
37 ?>
38
39 </html>