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
External torrents treated as local
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Support

Unknown User
2019-03-28 18:05:22
A few years ago,  on the old forum, was posted a modification that makes the external torrents to be treated as local ones.
The external torrents are registered in the 'peers' table and also the 'uploaded' and 'downloaded' are registered to users.
I used this modification at that time and it worked properly.
Now I want to use it again but time has passed and I forgot the code and where it was written, maybe in 'functions' but I'm not sure.
Maybe someone can help me in this problem?
Unknown User
2019-03-28 20:28:23
yes  In torrent upload

      if (!$site_config["ALLOWEXTERNAL"] && $external == 'yes')
     require_once("backend/BDecode.php");
     require_once("backend/BEncode.php");
     $dict = BDecode(file_get_contents("$torrent_dir/$fname"));
     $dict["announce"] = ($announce_urls[0]);
     if (isset($dict["announce-list"])) unset ($dict["announce-list"]);
     $fs = fopen("$torrent_dir/$fname", "w");
     fwrite($fs, BEncode($dict));
     fclose($fs);
     $TorrentInfo = array();
     $TorrentInfo = ParseTorrent("$torrent_dir/$fname");
     $announce = $TorrentInfo[0];
     $infohash = $TorrentInfo[1];
     $annlist = $TorrentInfo[6];
     $external = 'no';
   }
   
   if ($message) {
       @unlink("$torrent_dir/$fname");
       @unlink($tmpname);
       @unlink("$nfo_dir/$nfofilename");
       show_error_msg(T_("UPLOAD_FAILED"), $message,1);
   }
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728