Location: PHPKode > projects > TBsource PHP/MySql Bit-Torrent tracker > tbsource/viewnfo.php
<?
require "include/bittorrent.php";
dbconn(false);
loggedinorreturn();
$id = $_GET["id"];
if (get_user_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://$HTTP_SERVER_VARS[HTTP_HOST]/misc/linedraw.ttf>MS Linedraw</a> font!</p>\n");
stdfoot();
?>
Return current item: TBsource PHP/MySql Bit-Torrent tracker