mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
fix rss download link + migrate bencode to rhilip/bencode
This commit is contained in:
@@ -44,7 +44,7 @@ function block_browser()
|
||||
|
||||
function benc_resp($d)
|
||||
{
|
||||
benc_resp_raw(benc(array('type' => 'dictionary', 'value' => $d)));
|
||||
benc_resp_raw(\Rhilip\Bencode\Bencode::encode($d));
|
||||
}
|
||||
function benc_resp_raw($x) {
|
||||
do_log($x);
|
||||
@@ -60,7 +60,7 @@ function benc_resp_raw($x) {
|
||||
}
|
||||
function err($msg, $userid = 0, $torrentid = 0)
|
||||
{
|
||||
benc_resp(array('failure reason' => array('type' => 'string', 'value' => $msg)));
|
||||
benc_resp(['failure reason' => $msg]);
|
||||
exit();
|
||||
}
|
||||
function check_cheater($userid, $torrentid, $uploaded, $downloaded, $anctime, $seeders=0, $leechers=0){
|
||||
|
||||
Reference in New Issue
Block a user