trzeba po usuwać
następujące kody
if ($dict['value']['info']['value']['private']['value'] != 1)
{
bark('Zablokowana jest mozliwość wrzucania torrentów w włączonym DHT. W ten sposób unikniemy osób ściągającym poza trackerem.');
}
list($ann, $info) = dict_check($dict, "announce(string):info");
list($dname, $plen, $pieces) = dict_check($info, "name(string):piece length(integer):pieces(string)");
if (!in_array($ann, $announce_urls, 1))
bark("Błędny adres announce poprawny wygląda następująco: " . $announce_urls[0] . "");
if (isset($dict['value']['announce-list']))
bark("Multi-tracker torrents are NOT allowed!");
if (strlen($pieces) % 20 != 0)
bark("invalid pieces");
$filelist = array();
$totallen = dict_get($info, "length", "integer");
if (isset($totallen)) {
$filelist[] = array($dname, $totallen);
$type = "single";
}
else {
$flist = dict_get($info, "files", "list");
if (!isset($flist))
bark("missing both length and files");
if (!count($flist))
bark("no files");
$totallen = 0;
foreach ($flist as $fn) {
list($ll, $ff) = dict_check($fn, "length(integer):path(list)");
$totallen += $ll;
$ffa = array();
foreach ($ff as $ffe) {
if ($ffe["type"] != "string")
bark("filename error");
$ffa[] = $ffe["value"];
}
if (!count($ffa))
bark("filename error");
$ffe = implode("/", $ffa);
$filelist[] = array($ffe, $ll);
}
$type = "multi";
}
$info['value']['source']['type'] = "string";
$info['value']['source']['value'] = $SITENAME;
$info['value']['source']['strlen'] = strlen($info['value']['source']['value']);
$info['value']['private']['type'] = "integer";
$info['value']['private']['value'] = 1;
$dict['value']['info'] = $info;
$dict = benc($dict);
$dict = bdec($dict);
list($ann, $info) = dict_check($dict, "announce(string):info");
$infohash = pack("H*", sha1($info["string"]));
// Replace punctuation characters with spaces
if (($totallen > $max_public_torrent_size) && (get_user_class() < UC_UPLOADER))
{
stderr('Bląd - Maksymalny rozmiar torrenta dla rangiu User, Power User to 800 MB','Aby wrzucic tego torrenta, musisz mieć rangę Uploadera<br/><br/>Jeśli koniecznie chcesz wrzucić tego torrenta, <a href="upform.php">zgłoś się na Uploadera</a>.');
}