Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 10th December 2013, 14:20
rtmrtm's Avatar
rtmrtm rtmrtm is offline
Member
 
Join Date: Jan 2010
Posts: 12
Red face 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
Reply With Quote
  #2  
Old 10th December 2013, 14:25
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
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.
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 10th December 2013, 14:58
rtmrtm's Avatar
rtmrtm rtmrtm is offline
Member
 
Join Date: Jan 2010
Posts: 12
Default torrenteditor
http://torrenteditor.com/ I edit The torrent files

Then I upload it

Click image for larger version

Name:	Capture1.jpg
Views:	20
Size:	95.0 KB
ID:	4411

It works

Click image for larger version

Name:	Capture.jpg
Views:	12
Size:	76.7 KB
ID:	4412

At the site works

Name:  Capture3.jpg
Views: 84
Size:  25.9 KB

But it my passkey
Reply With Quote
  #4  
Old 10th December 2013, 16:25
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
easy do not add your passkey when you do that.
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #5  
Old 10th December 2013, 20:05
rtmrtm's Avatar
rtmrtm rtmrtm is offline
Member
 
Join Date: Jan 2010
Posts: 12
Default Please help


Click image for larger version

Name:	Capture.PNG
Views:	26
Size:	11.1 KB
ID:	4414
Reply With Quote
Reply

Tags
downloadphp

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 19:26. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.