forked from mlangill/biotorrents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewnfo.php
22 lines (21 loc) · 914 Bytes
/
viewnfo.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
require "include/bittorrent.php";
require "include/user_functions.php";
require "include/bbcode_functions.php";
dbconn(false);
loggedinorreturn();
$id = 0 + $_GET["id"];
if ($CURUSER['class'] < UC_POWER_USER || !is_valid_id($id))
die;
$r = mysql_query("SELECT name,nfo FROM torrents WHERE id=$id") or sqlerr();
$a = mysql_fetch_assoc($r) or die("Puke");
$nfo = htmlspecialchars($a["nfo"]);
stdhead();
print("<h1>NFO for <a href='details.php?id=$id'>$a[name]</a></h1>\n");
print("<table border='1' cellspacing='0' cellpadding='5'><tr><td class='text'>\n");
print("<pre><font face='MS Linedraw' size='2' style='font-size: 10pt; line-height: 10pt'>" . format_urls($nfo) . "</font></pre>\n");
print("</td></tr></table>\n");
print("<p align='center'>For best visual result, install the " .
"<a href=ftp://$_SERVER[HTTP_HOST]/misc/linedraw.ttf>MS Linedraw</a> font!</p>\n");
stdfoot();
?>