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
TT 3.8.3 PHP8 (Not completed)
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / V4 / Downloads & Updates

2025-11-15 19:01:56
Gmail vs Brevo for email sending:

- Gmail is picky (capricious):  
 - Authentication: Gmail now requires OAuth2 for most apps. The old “less secure apps” option is gone.  
 - Limits: Standard accounts have a daily sending limit (around 500 emails), which is a problem for trackers or sites with many users.  
 - Filters: Even with correct setup, Gmail often sends bulk emails to Spam unless you configure SPF/DKIM/DMARC.  
 - Complexity: Setting up PHPMailer with Gmail is more complicated — you need to handle ports (587 TLS, 465 SSL) and maintain OAuth tokens.  

- Brevo (formerly Sendinblue) free plan works great:  
 - Easy integration: Works directly with PHPMailer or even native mail() via SMTP.  
 - Good deliverability: Emails reach the inbox instead of spam because Brevo provides SPF/DKIM configuration.  
 - Free plan: Gives a decent daily/monthly quota, enough for a test tracker or small site.  
 - Dashboard: Lets you track sent/opened emails, which is a bonus compared to Gmail SMTP.  
2025-11-16 18:11:21
update memberlist.php

I added his avatar and his country's flag :
--------------------------------------------
<?php

#================================#
#       TorrentTrader 3.8.3      #
#  http://torrenttrader.uk       #
#--------------------------------#
#    Created by M-Jay            #
#    Modified by MicroMonkey,    #
#    Coco, Botanicar, spiritblue #
#================================#

require_once("backend/functions.php");
dbconn();
loggedinonly();

if ($CURUSER["view_users"]=="no")
   show_error_msg(T_("ERROR"), T_("NO_USER_VIEW"), 1);
   
$search = trim($_GET['search'] ?? '');
$class = (int) ($_GET['class'] ?? 0);
$letter = trim($_GET['letter'] ?? '');

if (!$class)
unset($class);

$q = $query = null;
if ($search) {
$query = "username LIKE " . sqlesc("%$search%") . " AND status='confirmed'";
if ($search) {
$q = "search=" . htmlspecialchars($search);
}
} elseif ($letter) {
if (strlen($letter) > 1)
unset($letter);
if ($letter == "" || strpos("abcdefghijklmnopqrstuvwxyz", $letter) === false) {
unset($letter);
} else {
$query = "username LIKE '$letter%' AND status='confirmed'";
}
$q = "letter=$letter";
}

if (!$query) {
$query = "status='confirmed'";
}
$class = (int) ($_GET['class'] ?? 0);
if ($class) {
$query .= " AND class=$class";
$q .= ($q ? "&" : "") . "class=$class";
}

stdhead(T_("USERS"));
begin_frame(T_("USERS"));
print("<center><br /><form method='get' action='memberlist.php'>\n");
print(T_("SEARCH").": <input type='text' size='30' name='search' />\n");
print("<select name='class'>\n");
print("<option value='-'>(Tous Les Grades)</option>\n");
$res = SQL_Query_exec("SELECT group_id, level FROM groups");
while ($row = mysqli_fetch_assoc($res)) {
print("<option value='$row[group_id]'" . ($class && $class == $row['group_id'] ? " selected='selected'" : "") . ">".htmlspecialchars($row['level'])."</option>\n");
}
print("</select>\n");
print("<input type='submit' value='".T_("SEARCH")."' />\n");
print("</form></center>\n");

print("<p align='center'>\n");

print("<a href='memberlist.php'><b>".T_("ALL")."</b></a> - \n");
foreach (range("a", "z") as $l) {
$L = strtoupper($l);
if ($l == $letter)
print("<b>$L</b>\n");
else
print("<a href='memberlist.php?letter=$l'><b>$L</b></a>\n");
}

print("</p>\n");

$page = (int) ($_GET['page'] ?? 1);
$perpage = 25;

$res = SQL_Query_exec("SELECT COUNT(*) FROM users WHERE $query");
$arr = mysqli_fetch_row($res);
$pages = floor($arr[0] / $perpage);
$pagemenu = '';
$browsemenu = '';
if ($pages * $perpage < $arr[0])
 ++$pages;

if ($page < 1)
 $page = 1;
else
 if ($page > $pages)
   $page = $pages;

for ($i = 1; $i <= $pages; ++$i)
 if ($i == $page)
   $pagemenu .= "$i\n";
 else
   $pagemenu .= "<a href='?$q&page=$i'>$i</a>\n";

if ($page == 1)
 $browsemenu .= "";
//  $browsemenu .= "[Prev]";
else
 $browsemenu .= "<a href='?$q&page=" . ($page - 1) . "'>[Prev]</a>";

$browsemenu .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

if ($page == $pages)
 $browsemenu .= "";
//  $browsemenu .= "[Next]";
else
 $browsemenu .= "<a href='?$q&page=" . ($page + 1) . "'>[Next]</a>";

$offset = max( 0, ( $page * $perpage ) - $perpage );

$res = SQL_Query_exec("SELECT users.*, groups.level FROM users INNER JOIN groups ON groups.group_id=users.class WHERE $query ORDER BY username LIMIT $offset,$perpage");

print("<br /><table border='0' class='table_table' width='98%' cellpadding='3' cellspacing='3' align='center'><tr><th class='table_head'>" . T_("USERNAME") . "</th><th class='table_head'>" . T_("REGISTERED") . "</th><th class='table_head'>" . T_("LAST_ACCESS") . "</th><th class='table_head'>" . T_("CLASS") . "</th><th class='table_head'>" . T_("COUNTRY") . "</th></tr>\n");
while ($arr = mysqli_fetch_assoc($res)) {

$cres = SQL_Query_exec("SELECT name,flagpic FROM countries WHERE id=$arr[country]");

if ($carr = mysqli_fetch_assoc($cres)) {
$country = "<td align=\"center\" class='table_col1' style='padding: 0px'><img src='$site_config[SITEURL]/images/countries/$carr[flagpic]' title='".htmlspecialchars($carr['name'])."' alt='".htmlspecialchars($carr['name'])."' width='33' height='27'/></td>";
} else {
$country = "<td align='center' class='table_col1' style='padding: 0px'><img src='$site_config[SITEURL]/images/countries/unknown.gif' alt='Unknown' /></td>";
}


/* if ($arr['added'] == '0000-00-00 00:00:00')
$arr['added'] = '-';
if ($arr['last_access'] == '0000-00-00 00:00:00')
$arr['last_access'] = T_("NEVER");*/

$avatar = ($CURUSER["avatar"] != "" ? htmlspecialchars($arr["avatar"]) : "");
if (!$arr['avatar']) {
$avatar = "".$site_config["SITEURL"]."/themes/".$THEME."/images/default_avatar.png border=0";
}
//
 print("<tr><td width='20%' class='table_col1' align='center' ><a href='account-details.php?id=$arr[id]'><b>" . class_user($arr["username"]) . "</b><br/><img class='avatar' src='".htmlspecialchars($arr["avatar"])."'/></a>" .($arr["donated"] > 0 ? " " : "")."</td>" .
 "<td align=\"center\" class='table_col2'>".utc_to_tz($arr["added"])."</td><td align=\"center\" class='table_col1'>".utc_to_tz($arr["last_access"])."</td>".
   "<td class='table_col2' align='center'>" . T_($arr["level"]) . "</td>$country</tr>\n");

}
print('</table>');

print("<br /><p align='center'>$pagemenu<br />$browsemenu</p>");
end_frame();
stdfoot();

?>


2025-11-19 20:30:30
Thanks @spiritblue mate. Thanks for that.

Regards from me ;)
2025-11-19 20:41:30
memberlist.php
--------------------------------------------------------------
Here is the same file, but with a few improvements for php8.4

<?php
#================================#
#       TorrentTrader 3.8.3      #
#  http://torrenttrader.uk       #
#--------------------------------#
#    Created by M-Jay            #
#    Modified by MicroMonkey,    #
#    Coco, Botanicar, spiritblue #
#================================#

require_once("backend/functions.php");
dbconn();
loggedinonly();

if ($CURUSER["view_users"]=="no")
  show_error_msg(T_("ERROR"), T_("NO_USER_VIEW"), 1);

$search = trim($_GET['search'] ?? '');
$class = (int) ($_GET['class'] ?? 0);
$letter = trim($_GET['letter'] ?? '');

$q = $query = '';

if ($search !== '') {
   $query = "username LIKE " . sqlesc("%$search%") . " AND status='confirmed'";
   $q = "search=" . htmlspecialchars($search);
} elseif ($letter !== '') {
   if (strlen($letter) === 1 && strpos("abcdefghijklmnopqrstuvwxyz", strtolower($letter)) !== false) {
       $query = "username LIKE " . sqlesc($letter . "%") . " AND status='confirmed'";
       $q = "letter=" . htmlspecialchars($letter);
   } else {
       $query = "status='confirmed'";
   }
} else {
   $query = "status='confirmed'";
}

if ($class) {
   $query .= " AND class=$class";
   $q .= ($q ? "&" : "") . "class=$class";
}

stdhead(T_("USERS"));
begin_frame(T_("USERS"));

print("<center><br /><form method='get' action='memberlist.php'>\n");
print(T_("SEARCH").": <input type='text' size='30' name='search' value='".htmlspecialchars($search)."' />\n");
print("<select name='class'>\n");
print("<option value='-'>(Tous Les Grades)</option>\n");

$res = SQL_Query_exec("SELECT group_id, level FROM groups");
while ($row = mysqli_fetch_assoc($res)) {
   $selected = ($class && $class == (int)$row['group_id']) ? " selected='selected'" : "";
   print("<option value='".(int)$row['group_id']."'".$selected.">".htmlspecialchars($row['level'])."</option>\n");
}
print("</select>\n");
print("<input type='submit' value='".T_("SEARCH")."' />\n");
print("</form></center>\n");

print("<p align='center'>\n");
print("<a href='memberlist.php'><b>".T_("ALL")."</b></a> - \n");

foreach (range("a", "z") as $l) {
   $L = strtoupper($l);
   if ($l == strtolower($letter))
       print("<b>$L</b>\n");
   else
       print("<a href='memberlist.php?letter=$l'><b>$L</b></a>\n");
}

print("</p>\n");

$page = (int) ($_GET['page'] ?? 1);
$perpage = 25;

$res = SQL_Query_exec("SELECT COUNT(*) AS c FROM users WHERE $query");
$arr = mysqli_fetch_assoc($res);
$total = (int)$arr['c'];

$pages = ($total > 0) ? (int)ceil($total / $perpage) : 1;

if ($page < 1) $page = 1;
if ($page > $pages) $page = $pages;

$pagemenu = '';
for ($i = 1; $i <= $pages; ++$i) {
   if ($i == $page)
       $pagemenu .= "$i\n";
   else
       $pagemenu .= "<a href='?$q&page=$i'>$i</a>\n";
}

$browsemenu = '';
if ($page > 1)
   $browsemenu .= "<a href='?$q&page=" . ($page - 1) . "'>[Prev]</a>";

$browsemenu .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

if ($page < $pages)
   $browsemenu .= "<a href='?$q&page=" . ($page + 1) . "'>[Next]</a>";

$offset = max(0, ($page - 1) * $perpage);

$res = SQL_Query_exec("SELECT users.*, groups.level
                      FROM users
                      INNER JOIN groups ON groups.group_id=users.class
                      WHERE $query
                      ORDER BY username
                      LIMIT $offset,$perpage");

print("<br /><table border='0' class='table_table' width='98%' cellpadding='3' cellspacing='3' align='center'>
<tr><th class='table_head'>" . T_("USERNAME") . "</th>
<th class='table_head'>" . T_("REGISTERED") . "</th>
<th class='table_head'>" . T_("LAST_ACCESS") . "</th>
<th class='table_head'>" . T_("CLASS") . "</th>
<th class='table_head'>" . T_("COUNTRY") . "</th></tr>\n");

while ($arr = mysqli_fetch_assoc($res)) {
   $countryId = (int)$arr['country'];
   $cres = SQL_Query_exec("SELECT name,flagpic FROM countries WHERE id=$countryId");
   $carr = mysqli_fetch_assoc($cres);

   if ($carr) {
       $country = "<td align='center' class='table_col1' style='padding:0px'>
       <img src='".$site_config["SITEURL"]."/images/countries/".htmlspecialchars($carr['flagpic'])."'
       title='".htmlspecialchars($carr['name'])."'
       alt='".htmlspecialchars($carr['name'])."' width='33' height='27'/></td>";
   } else {
       $country = "<td align='center' class='table_col1' style='padding:0px'>
       <img src='".$site_config["SITEURL"]."/images/countries/unknown.gif' alt='Unknown' /></td>";
   }

   $avatar = $arr['avatar'] ? htmlspecialchars($arr['avatar']) : $site_config["SITEURL"]."/themes/".$THEME."/images/default_avatar.png";

   print("<tr><td width='20%' class='table_col1' align='center'>
   <a href='account-details.php?id=".(int)$arr['id']."'><b>" . class_user($arr["username"]) . "</b><br/>
   <img class='avatar' src='".$avatar."'/></a></td>
   <td align='center' class='table_col2'>".utc_to_tz($arr["added"])."</td>
   <td align='center' class='table_col1'>".utc_to_tz($arr["last_access"])."</td>
   <td class='table_col2' align='center'>" . T_($arr["level"]) . "</td>$country</tr>\n");
}
print('</table>');

print("<br /><p align='center'>$pagemenu<br />$browsemenu</p>");
end_frame();
stdfoot();
?>

2025-11-20 17:29:51
#1, thank you coco  👍
2025-11-23 17:17:57
Personally, I think you should have the option to turn off that cloudflare crap.
There are honestly people who just do not like it. They sometimes have issues that affect sites using it.
It's frustrating when I install your script to check it out or whatever...and then have to find and remove the lines that require it.
Just my opinion...but should still be an option for site owners to enable or disable as desired.
2025-11-23 19:06:25
First change function passhash in backend/functions.php like this:

 
function passhash($text) {
   GLOBAL $site_config;

   switch (strtolower($site_config["passhash_method"])) {
       case "argon2id":
           // Argon2id password hashing
           return password_hash($text, PASSWORD_ARGON2ID);
       case "sha1":
           return sha1($text);
       case "md5":
           return md5($text);
       case "hmac":
           $ret = hash_hmac($site_config["passhash_algorithm"], $text, $site_config["passhash_salt"]);
           return $ret ? $ret : die("Config Error: Unknown algorithm '".$site_config["passhash_algorithm"]."'");
       default:
           die("Unrecognised passhash_method. Check your config.");
   }
}


And below add new 2 functions:

function tt_hash_password(string $plain): string {
   $options = [
       'memory_cost' => 1<<16, // 64 MB
       'time_cost'   => 4,
       'threads'     => 1,
   ];
   return password_hash($plain, PASSWORD_ARGON2ID, $options);
}

function tt_verify_password(string $plain, string $hash): bool {
   if (substr($hash, 0, 9) === '$argon2id') {
       return password_verify($plain, $hash);
   } elseif (strlen($hash) === 40 && preg_match('/^[0-9a-f]{40}$/i', $hash)) {
       // legacy SHA1
       return hash_equals($hash, sha1($plain));
   } else {
       // fallback for any other hash
       return password_verify($plain, $hash);
   }
}


In backend/config.php change lines for password hashing:

// Password hashing with argon2id
$site_config["passhash_method"] = "argon2id";

// Password hashing - Once set, cannot be changed without all users needing to reset their passwords
//$site_config["passhash_method"] = "sha1"; // Hashing method (sha1, md5 or hmac). Must use what your previous version of TT did or all users will need to reset their passwords

// Only used for hmac.
//$site_config["passhash_algorithm"] = "sha1"; // See http://php.net/hash_algos for a list of supported algorithms.
//$site_config["passhash_salt"] = "b0c7d2e3f5a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2g3h4i5j6k7l8m9n0o1p2q3r4s5t6u7v8w9x0y1z2A3B4C5"; // Shouldn't be blank. At least 20 characters of random text.


And download from archive my account-login.php and account-signup.php
Test this and take a feedback.
It should authenticate all users using argon2id, and for new accounts, also store them with argon2id

PS: And cnange column password in table users into the database to varchar(255)
And also this value need like this 'threads'     => 1, in functions.pbp and in account-login.pnp
php_files.zip
Download

Last edited by coco on 2025-11-23 23:15:42
2025-11-23 20:24:20
password_hash is built into php. I wonder if using that would be better than creating a function
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)
2025-11-23 20:32:58
Don't forget one thing guys, when we switch from sha1 to argon2id all members must change their passwords and all new members will have it automatically converted to argon2id


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2025-11-23 20:41:28
For users who are already registered, their passwords are automatically converted to Argon2id and they don’t need to change anything. For new users, this is handled automatically as well
2025-11-25 15:32:46
I’m currently testing TT on PHP 8.5 and it’s performing quite well. There are some minor errors, but we’ll fix them



Regards
2025-11-28 19:51:31
Après plus de deux semaines, je vous reviens avec mon update de la shoutbox qui était vraiment de base avec des erreurs, normale les amis, je comprends que nous sommes à notre début avec l version de tt  😇

Je vais faire de mon mieux pour qui ne vous manque rien, pour la faire fonctionne aussi bien que chez moi.

Je suis en français et il ce ne peut que vous puisiez, corriger vers Franglais et donc je vais vous remettre ce que j'ai traduit à ce jour d'anglais vers français au besoin.

Comme toujours fait le moi savoir et ça me fera plaisir de, vous aidez de mon mieux😉

Mes update des optionS et ajoutS :

~ J'ai retiré la ligne d'actualisation automatique pour donner le choix à personne d'être à jours sur la page par un bouton et qui evitera de couper une image animée comme une .gif ou une vidéo ou bande audio.

~ Update pour l'option de s'oppressions des cookies.

~ Ajout d'une option d'un rebot crazy qui remercira a tous les 10 messages qui aura fait pas le membre par un message et son propre avatar.

~ Update de la page historique.

~ Update du popup smillies.

~ Update BBCODE Shoutbox.

~ Ajout de réponse par le nick du membre.

~ Update Pages Public, vip, staff.

~ Update pour Supprimer le message et de l'édition.

~ Update backend/smilies.php.

~ Ajout la fonction d'icône avec Font Awesome.
(je l'ai utilisé pour les bbcodes de la shoutbox et le but de le faire sur tout le reste la bdd et va éviter de bourrer la bdd avec des images qui sont lourdes pour rien)

Il y aura des updates de cette shoutcast dans l'avenir 👍


|=======English ======|


After more than two weeks, I'm back with my shoutbox update. It was really basic and had some bugs, which is normal, folks. I understand we're just starting out with this version of TT 😇

I'll do my best to make sure you have everything you need and that it works as well as it does for me.

I'm in French, so you might have to use Franglais to correct it. Therefore, I'll provide the English-to-French translations I've done so far, if needed.

As always, let me know, and I'll be happy to help you as best I can 😉

My updates to the options and additions:

~ I removed the automatic refresh option to give everyone the choice to stay up-to-date on the page via a button. This will also prevent the interruption of animated images like GIFs, videos, or audio clips.

~ Update for the cookie blocking option.

~ Added an option for a crazy bot that will thank every 10 messages posted by a member with a message and their own avatar.

~ Updated the history page.

~ Updated the smiley popup.

~ Updated the BBCode Shoutbox.

~ Added the ability to reply using the member's nickname.

~ Updated the Public, VIP, and Staff pages.

~ Updated the ability to delete and edit messages.

~ Added the icon function using Font Awesome.

~ Update backend/smilies.php.

(I used it for the BBCode in the shoutbox, and the goal is to apply it to the rest of the database to avoid cluttering it with unnecessary large images.)

There will be updates to this shoutbox in the future 👍

Exemple en image :

















SHOUTBOX V3.8.3 Update By SPIRITBLUE [2025].zip
Download

Last edited by spiritblue on 2025-11-28 20:31:33
2025-11-29 14:35:22
Friends, the color table needs to be added to v3.8.3; it was forgotten ;)
https://torrenttrader.uk/post/9717
2025-11-30 21:14:38
what i did wrong?

when i try to login i get message:

Access denied.
Verification missing. Please try again.
2025-12-01 08:07:58
how to fix this provlem ?


Access denied.
-
Verification missing. Please try again.
i creating new account to my localhost server.
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: 5
  • Members: 0
  • Guests online: 5
  • Comments: 3
  • Messages: 1,728