トレントファイルのトラッカーを編集できるサイトを運営しています。
SEEDS
現在、 のとPEERS
について検索していTRACKER
ます。
私たちはそれがどのように機能したか混乱しています。で torrent ファイルのSEEDS
とを表示する方法を知っている人はいますか?PEERS
PHP
のように、TORRENTEDITOR.COM
このようなコードを見てきましたが、それがどのように機能するのか理解できません。助けてください。
// global $seedsandpeers;
if ($seedsandpeers === TRUE){
if (!empty($array["announce-list"])){
$announce = $array["announce-list"];
// Possibly HtTp://
$announce = strtolower($announce);
if (substr($announce, 0, 7) === "http://"){
if ((substr_count($announce, "/announce")) == 1){
$scrape = str_replace('/announce', '/scrape', $announce);
$httpget = "?info_hash=";
$binsha1 = pack("H*", $infohash);
$binsha1s = addslashes($binsha1);
$fullurl = "$scrape$httpget$binsha1";
$httpurl = pathurlencode($fullurl);
sapeerconnect($httpurl, $binsha1s, $torrentsize);
} else {
$error = '<BR><label style="font-family:timesnewroman;font-size:12px;">Bad Tracker enter code hereURL for scraping (Maybe trackerless torrent).<br>' ;
echo $error;
}
}
else {
$error = '<BR><label style="font-family:timesnewroman;font-size:12px;">Bad Tracker URL for scraping (Maybe trackerless torrent).<br>';
echo $error;
}
}
}