Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[ADDON] Disable DHT
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2011-01-19 17:35:20
for torrents-import.php:

find:



$ret = mysql_query("INSERT INTO torrents






Add before:







if ($external == "no") {

   require_once("backend/BDecode.php");

   require_once("backend/BEncode.php");

   $dict = BDecode(file_get_contents("$dir/$fname"));

   $dict["info"]["private"] = 1;

   $fs = fopen("$dir/$fname", "w");

   fwrite($fs, BEncode($dict));

   fclose($fs);

   $TorrentInfo = array();

   $TorrentInfo = ParseTorrent("$dir/$fname");

   $infohash = $TorrentInfo[1];

}

Unknown User
2011-01-19 18:20:42
it will need updating in svn to do with the new work you did... for trackers/files in db
Unknown User
2011-01-19 18:24:55
"TorrentialStorm, post: 69795":
if ($external == "no") {

require_once("backend/benc.php");

$dict = bdec_file("$dir/$fname", filesize("$dir/$fname"));

$dict["value"]["info"]["value"]["private"]["type"] = "integer";

$dict["value"]["info"]["value"]["private"]["value"] = 1;

$fs = fopen("$torrent_dir/$fname", "w");

fwrite($fs, benc($dict));

fclose($fs);

$TorrentInfo = array();

$TorrentInfo = ParseTorrent("$dir/$fname");

$infohash = $TorrentInfo[1];

}

Try that.

Hi Guys,

All the error messages are gone when I press the UPLOAD BUTTON but the DHT is still active.  Well, I have attached the TORRENTS-IMPORT.PHP but I can confirm you that I have never put any kind of MOD in it.

Sorry guys! I just want to help to improve the software.

Thanx. Regards.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4663"]torrents_import.php[/url]
torrents_import.php
Download
Unknown User
2011-01-20 13:36:11
"djhowarth, post: 69798":
it will need updating in svn to do with the new work you did... for trackers/files in db

Hi Guys,

Does this means that there are no patch or fix in a short term?  What about the other tracker that has thousands of torrents? Do they ask their member to disable DHT in their client.  I don't won't to take that chance.

Thanx. Regards.
Unknown User
2011-01-20 17:22:23
hmmm, i just tried the first code, if i upload a torrent it works, then i download it and
Unknown User
2011-01-21 00:08:45
No ID. Server error is usually to do with an error of the mysql query  post your file il see if i can see the problem
Unknown User
2011-01-22 15:16:05
Didn't update the code properly when i changed it to use BDecode.php (benc.php took a path, BDecode.php takes the file contents).

Change:



$dict = BDecode("$torrent_dir/$fname");






to:







$dict = BDecode(file_get_contents("$torrent_dir/$fname"));

Unknown User
2011-01-22 16:07:24
we should add support to the torrent-details to show dht enabled/disabled... ;)
Unknown User
2011-03-13 17:27:51
Thank you!
Unknown User
2011-05-09 14:54:38
Hi Guys,

I would like to WARN people out!  If you have uploaded your torrents with the MASS TORRENT upload MOD, please take note that it doesn't update the DHT!  This is something that would be good to make working in v2.07.

Fortunately, since I wasn't having any comeback, I have paid Djowarth to work something out for this problem.  Wich he did!

Thanx. Regards.
Unknown User
2011-05-11 22:20:07
"rdesormiers, post: 72440":
Hi Guys,
I would like to WARN people out!  If you have uploaded your torrents with the MASS TORRENT upload MOD, please take note that it doesn't update the DHT!  This is something that would be good to make working in v2.07.

Fortunately, since I wasn't having any comeback, I have paid Djowarth to work something out for this problem.  Wich he did!

Thanx. Regards.

That was actually posted on the first page.

[url="http://www.torrenttrader.org/index.php?s=&showtopic=8771&view=findpost&p=69795"]http://www.torrenttrader.org/index.php?s=&...ost&p=69795[/url]
Unknown User
2011-05-12 13:45:56
"TorrentialStorm, post: 72528":
That was actually posted on the first page.[url="http://www.torrenttrader.org/index.php?s=&showtopic=8771&view=findpost&p=69795"]http://www.torrenttrader.org/index.php?s=&...ost&p=69795[/url]

Hello TorrentialStorm,

For all the respect I have for you,  I will have to retry it again... because last time it wasn't working.

Thanx. Regards.
Unknown User
2012-01-11 19:09:48
Another request for updating code to v2.08

Thanks
Unknown User
2012-02-26 05:38:39
"stolla, post: 77940":
Another request for updating code to v2.08

Thanks
+1
Unknown User
2012-02-26 06:49:44
The code should be compatible with v2.08
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728