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
TorrentTrader 3.0
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Download

2019-03-14 20:31:52
Can be downloaded from github https://github.com/MicrosoulV3/TorrentTrader-v3
All issues after this post have been addressed and the github version is correct as of AUG 9 2024
Always check github for any file fixes. Check the last commit date and compare your files to the commit
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2024-08-09 15:39:56
2019-03-24 04:25:34
just noticed the faq.php doesnt work, this is mine im using now from the micro version thats working
faq.zip
Download
2019-03-25 00:13:32
oops, I missed that one haha. I updated the github. Thanks for reporting it
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-03-25 05:14:28
why you are uploading rar files on github? Just push the updates
2019-03-25 21:21:47
I have to redo the whole thing since im not yet very familiar with how to use it. Im learning lol
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-04-25 18:09:52
can be work with:Mysql Version: 10.3.11-MariaDB
2019-10-25 17:20:18
What is the main difference between 2.08 and 3.0 ?

Are we able to assist with converting mods/hacks, or should this be left to the main developers?
If It Ain't Dutch, It Ain't Much!!
2019-10-25 23:34:54
feel free to help out any way you can. I think I made it pretty easy to convert things from the 2.08 to 3.0. The main part of 3.0 was a conversion to php 7+. The rest is pretty standard. Take the code and do anything you wish to it. This may help you https://www.torrenttrader.xyz/index.php?threads/php-7-functions-cheat-sheet.9780/
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-12-16 01:51:51
This is a fix for bad announce in PHP 7.4. Just wanted to post if it helps anyone. 7.3 and below doesnt seem to be affected, but you should still be able do what is posted below.
In announce.php, functions.php, and scrape.php there are references to get_magic_quotes_gpc(), which has been dead for a long time, but everything just worked since it returned false and moved on. It seems the new php 7.4 completely dont like this reference at all, so if you remove it, TTv3 works on PHP 7.4 as well. Im testing this on ubuntu 18.04.3 LTS and apache 2.4.41
I wonder if sqlesc should be used instead?

in announce and functions find
function unesc($x) {
   if (get_magic_quotes_gpc())
       return stripslashes($x);
   return $x;
}

to
function unesc($x) {
       return stripslashes($x);
   return $x;
}



and in scrape.php
foreach (explode("&", $_SERVER["QUERY_STRING"]) as $item) {
   if (preg_match("#^info_hash=(.+)\$#", $item, $m)) {
       $hash = urldecode($m[1]);

       if (get_magic_quotes_gpc())
           $info_hash = stripslashes($hash);
       else
           $info_hash = $hash;
       if (strlen($info_hash) == 20)
           $info_hash = bin2hex($info_hash);
       else if (strlen($info_hash) != 40)
           continue;
       $infohash[] = sqlesc(strtolower($info_hash));
   }
}

to
foreach (explode("&", $_SERVER["QUERY_STRING"]) as $item) {
   if (preg_match("#^info_hash=(.+)\$#", $item, $m)) {
       $hash = urldecode($m[1]);
           $info_hash = stripslashes($hash);
 //        $info_hash = $hash;
       if (strlen($info_hash) == 20)
           $info_hash = bin2hex($info_hash);
       else if (strlen($info_hash) != 40)
           continue;
       $infohash[] = sqlesc(strtolower($info_hash));
   }
}

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-12-16 10:00:33
it will be done as soon as i'm going to be at version 7.4 for the moment i'm at version PHP: 7.2.25 , thanks MicroMonkey (y)
2020-02-23 20:29:21
thanks for looking into it xblade. I was thinking real_escape_string, but that may not be the correct thing to do.
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2020-02-23 21:39:35
just create a function to replace the magic quotes and have it always return false lol. Thats a generic way out of it I suppose, but it would function without having to be overly concerned about it. But I agree with you, there should be a proper way of doing this, I just dont know what it is. Hopefully you can come up with something :)
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2020-02-24 17:20:50
Here is what ive done and it seems fine on live site php 7.4
Chances are this has been turned off since 5.6 and so i removed this in functions.php
// Prefer unescaped. Data will be escaped as needed.
if (ini_get("magic_quotes_gpc")) {
   $_POST = array_map_recursive("unesc", $_POST);
   $_GET = array_map_recursive("unesc", $_GET);
   $_REQUEST = array_map_recursive("unesc", $_REQUEST);
   $_COOKIE = array_map_recursive("unesc", $_COOKIE);
}


this is not needed by looks of it in any file
function unesc($x) {
   if (get_magic_quotes_gpc())
       return stripslashes($x);
   return $x;
}


in announce remove
$_GET = array_map_recursive("unesc", $_GET);

//START FUNCTIONS
function array_map_recursive ($callback, $array) {
   $ret = array();

   if (!is_array($array))
       return $callback($array);

   foreach ($array as $key => $val) {
       $ret[$key] = array_map_recursive($callback, $val);
   }
   return $ret;
}

function unesc($x) {
       return stripslashes($x);
   return $x;
}


for stripslashes/addslashes theres 48 instances in TT code this is stuff like removing slashes from db a good example is $site_config["UPLOADRULES"] where things like bbcode can be used (the 6 addslashes are for bencode and should be left alone)
so that just leaves injection security which is what magic quotes did (prevent injection by adding slashes to input)

You should never trust user input so you can escape html with htmlspec/entities and everything else use function sqlesc, input var is another way, in queries you can define a little better like
$id= (int)


This is where TT shows its age everything should be prepared, bind, before executed to prevent sql injection but you dont need to replace array map just escape everything manually
2021-07-02 11:19:03
Need some help with
torrents-upload.php
Database error contact administrator
i found this error
Database Error in torrents-upload.php on line 200: Incorrect integer value: '' for column `DST_DST`.`torrents`.`numfiles` at row 1. Query was: INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action) VAL
2021-07-02 19:27:27
what is column DST_DST? That is not part of the original TT
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2021-07-02 19:27:40
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: 10
  • Members: 0
  • Guests online: 10
  • Comments: 3
  • Messages: 1,728