资源简介
附件是BT种子时显示详细资源信息插件
代码片段和文件信息
require “./include/common.inc.php“;
@$query = $db->query(“SELECT attachment filename FROM {$tablepre}attachments WHERE aid=‘$aid‘“);
if ($query) {
$btfile=$db->fetch_array($query);
$btfileext = $btfile[‘filename‘];
$btfilename = $btfile[‘attachment‘];
}
else {
echo ‘database_error‘;
dexit();
}
if (strlen($btfilename) == 0) {
echo ‘no_attach‘;
dexit();
}
$fjcd=strlen($btfilename)-8;
if (strtolower(fileext($btfileext))!= “torrent“) {
echo ‘not_torrent‘;
dexit();
}
$btfilename=“./attachments/“.$btfilename;
include(“include/BDecode.php“);
include(“include/BEncode.php“);
function announceoutput($array)
{
if (!isset($array[“peers“][0]))
{
echo “Not a tracker announce block. Falling back on classic.
“;
classicout
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1627 2008-12-27 11:46 upload\upload\templates\default\track.htm
文件 3474 2007-05-14 11:35 upload\upload\include\BDecode.php
文件 2004 2006-10-01 04:10 upload\upload\include\BEncode.php
文件 4441 2007-10-22 08:59 upload\upload\track.php
目录 0 2008-12-27 11:21 upload\upload\templates\default
目录 0 2008-12-27 11:21 upload\upload\include
目录 0 2008-12-27 11:21 upload\upload\templates
目录 0 2009-06-23 15:51 upload\upload
目录 0 2009-06-23 15:51 upload
文件 4355 2010-04-12 15:37 说明.htm
----------- --------- ---------- ----- ----
15901 10
评论
共有 条评论