Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (21 sloc) 0.914 kb
<?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();
?>
Jump to Line
Something went wrong with that request. Please try again.