Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   download.php Please help (http://www.bvlist.com/showthread.php?t=9667)

rtmrtm 10th December 2013 14:20

download.php Please help
 
First Hello
The problem is

I want When a user Download external torrents my announce-list Enters In torrent File Automatic


Example

PHP Code:

http://localhost/rrm/announce.php?passkey=86c30c6fa20f0dab26ff5840894d9b14
http://Web external /0e75fa5ef298d1e1b41b960ba5b2f15e/announce 

I know that changing it in download.php But I Ask for help

This Must be changed

PHP Code:

require_once "backend/benc.php";

//if user dont have a passkey generate one, only if tracker is set to members only
if ($site_config["MEMBERSONLY"]){
     if (
strlen($CURUSER['passkey']) != 32) {
         
$rand array_sum(explode(" "microtime()));
         
$CURUSER['passkey'] = md5($CURUSER['username'].$rand.$CURUSER['secret'].($rand*mt_rand()));
         
mysql_query("UPDATE users SET passkey='$CURUSER[passkey]' WHERE id=$CURUSER[id]");
     }
}

if (
$row["external"]!='yes' && $site_config["MEMBERSONLY"]){// local torrent so add passkey
     
$dict bdec_file($fn, (1024*1024));

     
$dict['value']['announce']['value'] = "$site_config[SITEURL]/announce.php?passkey=$CURUSER[passkey]";
     
$dict['value']['announce']['string'] = strlen($dict['value']['announce']['value']).":".$dict['value']['announce']['value'];
     
$dict['value']['announce']['strlen'] = strlen($dict['value']['announce']['string']);
     unset(
$dict['value']['announce-list']);


     
header('Content-Disposition: attachment; filename="'.$name.'"');

     
header("Content-Type: application/x-bittorrent");

     print(
benc($dict));

}else{
// external torrent so no passkey needed
     
header('Content-Disposition: attachment; filename="'.$name.'"');

     
header("Content-Type: application/x-bittorrent");

     
readfile($fn);
}

mysql_close();

?> 

Thanks for any help

joeroberts 10th December 2013 14:25

That well change the info hash on the torrent and render it useless.
Torrent trader is not set up to even come close to doing that and stell be able to use the torrent.

rtmrtm 10th December 2013 14:58

torrenteditor
 
3 Attachment(s)
http://torrenteditor.com/ I edit The torrent files

Then I upload it

Attachment 4411

It works

Attachment 4412

At the site works

Attachment 4413

But it my passkey

joeroberts 10th December 2013 16:25

easy do not add your passkey when you do that.

rtmrtm 10th December 2013 20:05

Please help
 
1 Attachment(s)
:wallbash::wallbash::wallbash::wallbash:

Attachment 4414


All times are GMT +2. The time now is 19:12.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.