Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 3rd August 2011, 17:20
Fynnon's Avatar
Fynnon Fynnon is offline
xxx
 
Join Date: Nov 2007
P2P
Posts: 984
Default External torrents
attention

Attention



this is for TBDev 2009





With this mod, you can upload torrents, downloaded from other trackers, directly to your tracker.
Private-Flag is set, a new unique-ID is written in the torrent to keep your tracker privat.


in lang_takeupload.php add:

PHP Code:
'takeupload_write_torrent' => "Error while opening torrent file on server (writing not allowed). Please inform the staff."

in takeupload.php find:

PHP Code:
if (!isset($dict))
      
stderr($lang['takeupload_failed'], $lang['takeupload_not_benc']); 

and below it ADD:

PHP Code:
//=== external torrent
    // For the use of external torrents, we have to do some changes:
    // Add private flag to prevent clients from sharing the peers with other clients.
    
$dict["value"]["announce"] = array("type" => "string""value" => $TBDEV["announce_urls"][0]);
    
$dict["value"]["info"]["value"]["private"] = array("type" => "integer""value" => "1");
    
// Adding a different random ID will prevent every other peer-sharing client
    // (e.g. BitComet) from finding other peers for this torrent, since the infohash is unique.
    
function mksecret($len 20)
     {
      
$ret "";
      for (
$i 0$i $len$i++)
      
$ret .= chr(mt_rand(0255));
      return 
$ret;
     } 
    
$dict["value"]["info"]["value"]["unique id"] = array("type" => "string""value" => mksecret());
    
// Use the new info string to calculate the hash
    
$infohash pack("H*"sha1(benc($dict["value"]["info"])));
    
//  write the changed, bencoded version of our dictionary.
    
$fhandle fopen($tmpname"wb");
    
$bdict benc($dict);
    if (
$fhandle) {
     
$wb fwrite($fhandle$bdict);
     
fclose($fhandle);
    } else {
     
stderr($lang['takeupload_write_torrent']);
    } 
    unset(
$dict);
    
$dict bdec_file($tmpname$TBDEV['max_torrent_size']);
    if (!isset(
$dict))
      
stderr($lang['takeupload_failed'], $lang['takeupload_not_benc']);
 
//=== end external torrents 
desaster@tbdev.net/topic/24575-external-torrents
Reply With Quote
  #2  
Old 11th August 2011, 19:53
bizzarre bizzarre is offline
Member
 
Join Date: Jan 2011
P2P
Posts: 1
Default external torrents
I use TBdev 2009. I test this on localhost and don't work.
When i try to download a torrent don't work shows "DHT not allowed"
Reply With Quote
  #3  
Old 17th April 2014, 12:05
mpx mpx is offline
Senior Member
 
Join Date: Jun 2009
P2P
Posts: 39
Default
Failure: torrent not registered with this tracker

Click the image to open in full size.

I have this source is the simillar as TBDEV. Any suggestion ?
Reply With Quote
  #4  
Old 17th April 2014, 12:11
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
torrent is not registered on the site. means it was deleted.
Reply With Quote
  #5  
Old 17th April 2014, 12:13
mpx mpx is offline
Senior Member
 
Join Date: Jun 2009
P2P
Posts: 39
Default
I know but torrent is show on browse page ...
Reply With Quote
  #6  
Old 17th April 2014, 12:15
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
did you 777 chmod the torrents folder?
or did you purged the cache ? nexusphp uses memcache and that's the reason "maybe" the torrent is still showing
Reply With Quote
  #7  
Old 17th April 2014, 12:18
mpx mpx is offline
Senior Member
 
Join Date: Jun 2009
P2P
Posts: 39
Default
yes, i try this mod but is "problem" to show public announce only ours not ... and this is a problem for users. They not be regarded upload/download...
Reply With Quote
  #8  
Old 17th April 2014, 12:24
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
Default
ohh I see what you trying to do.
nexusphp is a little modified from the basic tbdev source.
Reply With Quote
  #9  
Old 17th April 2014, 17:31
x360zone's Avatar
x360zone x360zone is offline
Senior Member
 
Join Date: Jul 2011
United Kingdom
Posts: 915
Default lol
sorry but you think external tracked torrents can be applied to your site with just your announce and adding upload download stats to there accounts
not going to work if thats what you mean
__________________

7.5 tsse
future tracker source & hosting, vps
trackers installs + Themes
http://www.foxyhosting.co.uk
http://www.downmy.top testing zone
offshore vps & cpanel hosting & Shoutcast & VPN
STOP cyberbullying
any setups tracker installs vps hosting vps setups themes mods hit me up
over the last three months ive become a snake breeder,pythons,hogs,boa,corn,rat,king,carpet and what joy it is


Reply With Quote
  #10  
Old 17th April 2014, 19:21
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
Quote:
Originally Posted by mpx View Post
yes, i try this mod but is "problem" to show public announce only ours not ... and this is a problem for users. They not be regarded upload/download...
Post your announce please
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote
Reply

Tags
external , torrents

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 13:57. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.