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
User Posts

Go to Profile

Thanks, M-jay, for finally taking a minute to get things in order here! My avatar is working, and I can also edit my posts in the shoutbox—it’s great to have a TT forum that actually works! 👍

==============

merci M-jay pour avoir enfin pris une minute pour mettre de l’ordre ici, mon avatar a fonctionner, je peux aussi éditer mes messages sur la shout, cool ca fait du bien avoir un forum de tt qui fonctionne! 👍
Multiplayer poker — 2026-09-19 19:28:37 in v3 Mods Completed
Hi MicroMonkey,

Just a quick update on the Poker module from our side at CrazySpirits.

We’ve continued testing and integrating it into our live TorrentTrader setup, and things are going very well.

Since our previous tests, we’ve worked on the table interface, French localization, player controls, sit-out/resume functionality, table status, chat, hand history, spectator display, sounds/room ambience, and the general integration with our CrazySpirits themes.

We’ve also just added an in-game “How to Play?” help window, accessible directly from the Poker table, so new players can check the Texas Hold’em rules and controls without leaving their game.

The Poker room is now looking and behaving like a proper part of the tracker rather than a separate add-on.

We’re continuing real-world testing with members and fixing the small details we find along the way.

Thanks again for the work on this module — it has given us a very solid base to build on. 👍

Spiritblue / CrazySpirits

Search in poker.php:
<button type="button" class="history-open" id="pokerHelpOpen">
   ♠ How to Play?
</button>


Add:
<div class="poker-help-overlay" id="pokerHelpOverlay">
   <div class="poker-help-window">
       <div class="poker-help-head">
           <h2>♠ How to Play Texas Hold'em</h2>
           <button type="button" id="pokerHelpClose">×</button>
       </div>

       <div class="poker-help-content">
           <h3>Goal of the game</h3>
           <p>
               Build the best five-card poker hand using your two private
               cards and the five community cards on the table.
           </p>

           <h3>How a hand works</h3>
           <p>
               Each player receives two private cards.
               The community cards are then dealt in stages:
           </p>

           <p>
               <strong>Flop:</strong> 3 cards<br>
               <strong>Turn:</strong> 1 additional card<br>
               <strong>River:</strong> 1 final card
           </p>

           <h3>Player actions</h3>
           <p>
               <strong>Fold</strong> — Give up the current hand.<br>
               <strong>Check</strong> — Stay in the hand without betting when no bet is required.<br>
               <strong>Call</strong> — Match the current bet.<br>
               <strong>Raise</strong> — Increase the current bet.<br>
               <strong>All-in</strong> — Bet your entire remaining stack.
           </p>

           <h3>Hand rankings</h3>
           <ol>
               <li>Royal Flush</li>
               <li>Straight Flush</li>
               <li>Four of a Kind</li>
               <li>Full House</li>
               <li>Flush</li>
               <li>Straight</li>
               <li>Three of a Kind</li>
               <li>Two Pair</li>
               <li>One Pair</li>
               <li>High Card</li>
           </ol>

           <p>
               The player with the best five-card hand wins the pot.
               A player can also win if all other players fold.
           </p>
       </div>
   </div>
</div>


Add CSS:
.poker-help-overlay {
   position: fixed;
   inset: 0;
   z-index: 10030;
   display: none;
   align-items: center;
   justify-content: center;
   padding: 30px;
   background: rgba(0, 0, 0, .78);
}

.poker-help-overlay.open {
   display: flex;
}

.poker-help-window {
   width: min(720px, calc(100vw - 60px));
   max-height: calc(100vh - 60px);
   overflow: hidden;
   border: 1px solid #3a3a3a;
   border-radius: 8px;
   background: #151515;
   box-shadow: 0 18px 70px rgba(0, 0, 0, .65);
   color: #ddd;
}

.poker-help-head {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 14px 18px;
   border-bottom: 1px solid #303030;
   background: #101010;
}

.poker-help-head h2 {
   margin: 0;
   color: #e7c46e;
   font-size: 19px;
}

.poker-help-head button {
   font-size: 20px;
}

.poker-help-content {
   max-height: calc(100vh - 150px);
   overflow-y: auto;
   padding: 18px 22px;
   line-height: 1.55;
}

.poker-help-content h3 {
   margin: 18px 0 7px;
   color: #e7c46e;
}

.poker-help-content h3:first-child {
   margin-top: 0;
}

.poker-help-content strong {
   color: #fff;
}


Add JavaScript (JS):
var pokerHelpOpen = document.getElementById('pokerHelpOpen');
var pokerHelpClose = document.getElementById('pokerHelpClose');
var pokerHelpOverlay = document.getElementById('pokerHelpOverlay');

if (pokerHelpOpen && pokerHelpOverlay) {
   pokerHelpOpen.addEventListener('click', function () {
       pokerHelpOverlay.classList.add('open');
   });
}

if (pokerHelpClose && pokerHelpOverlay) {
   pokerHelpClose.addEventListener('click', function () {
       pokerHelpOverlay.classList.remove('open');
   });
}

if (pokerHelpOverlay) {
   pokerHelpOverlay.addEventListener('click', function (event) {
       if (event.target === pokerHelpOverlay) {
           pokerHelpOverlay.classList.remove('open');
       }
   });
}

document.addEventListener('keydown', function (event) {
   if (event.key === 'Escape' &&
       pokerHelpOverlay &&
       pokerHelpOverlay.classList.contains('open')) {
       pokerHelpOverlay.classList.remove('open');
   }
});


Feel free to use, modify, or improve it however you like.
It’s a small contribution from CrazySpirits after all the work you’ve shared with us.

Thanks again!
Multiplayer poker — 2026-09-18 21:57:15 in v3 Mods Completed
Thank you very much, MicroMonkey, for sharing this and especially for all the work you originally put into the project. 👍

The idea of having a real multiplayer poker game directly integrated into a tracker is excellent. I’ve downloaded your project and I’m now going to work on adapting it for CrazySpirits V2, including a French interface and compatibility with our current PHP environment.

I’ve also taken note of your warning regarding its dependency on the TTv3 core functions. Our codebase has been customized quite a bit over the years, so I’ll proceed carefully and check the integration step by step rather than simply plugging everything in.

I completely agree with you about AI as well. Used as a development tool, it can make it possible to bring projects like this back to life without spending years doing everything alone. 😉

Thanks again for bringing this project back and sharing it AS-IS with the community. We’ll see if we can give it a great new life on CrazySpirits. ♠️♥️♦️♣️

Thank you, MicroMonkey! 🍺
That makes perfect sense.

I like the approach of keeping the existing SQL_Query() / SQL_Query_exec() system intact and simply adding SQL_Query_prepared() for user input.

Looking through your signup example, it seems like a practical way to gradually migrate sensitive areas without rewriting an entire TorrentTrader codebase at once.

I also noticed you're already using it consistently for username, email, IP checks, country lookups, and account creation, which is exactly where prepared statements provide the most value.

For long-running TT sites, that kind of gradual migration feels much safer than a full replacement.

Thanks again for sharing your work and testing results. It's always interesting to see what other TT admins are experimenting with.
Thanks for sharing this, MicroMonkey.

I think the safest approach is to keep the existing SQL_Query() / SQL_Query_exec() system in place for backward compatibility, and add SQL_Query_prepared() as an extra function.

That way, nothing currently used by TorrentTrader breaks, but newer or sensitive code can slowly be moved to prepared statements.

Here is the version I would add without replacing the existing calls:


function SQL_Query_prepared(string $query, string $types = '', array $params = []) {
   $db = $GLOBALS['DBconnector'] ?? null;

   if (!$db instanceof mysqli) {
       error_log("SQL_Query_prepared Error: Database connection is not available.");
       return false;
   }

   $stmt = mysqli_prepare($db, $query);

   if (!$stmt) {
       error_log("SQL_Query_prepared Prepare failed: " . mysqli_error($db));
       return false;
   }

   if ($types !== '') {
       if (strlen($types) !== count($params)) {
           error_log("SQL_Query_prepared Error: Parameter count does not match type definition.");
           mysqli_stmt_close($stmt);
           return false;
       }

       $bindParams = [$types];

       foreach ($params as $key => $value) {
           $bindParams[] = &$params[$key];
       }

       if (!call_user_func_array([$stmt, 'bind_param'], $bindParams)) {
           error_log("SQL_Query_prepared bind_param failed: " . mysqli_stmt_error($stmt));
           mysqli_stmt_close($stmt);
           return false;
       }
   }

   if (!mysqli_stmt_execute($stmt)) {
       error_log("SQL_Query_prepared Execute failed: " . mysqli_stmt_error($stmt));
       mysqli_stmt_close($stmt);
       return false;
   }

   $result = mysqli_stmt_get_result($stmt);

   if ($result instanceof mysqli_result) {
       return $result;
   }

   $affected = mysqli_stmt_affected_rows($stmt);
   mysqli_stmt_close($stmt);

   return $affected;
}


Example:
======

SQL_Query_prepared(
   "INSERT INTO shoutbox (userid, text) VALUES (?, ?)",
   "is",
   [$userid, $message]
);


So yes, I think this is a good addition, but I would not replace every SQL_Query_exec() call at once. I would migrate slowly: login, registration, password changes, private messages, shoutbox, comments, uploads, and other user input areas first


I don't know about you, it's another member of the staff!

Thanks MicroMonkey, I'm doing well, and you? Is your health good? 👍
Au départ, j'ai sincèrement essayé d'aider la communauté en partageant des correctifs et des améliorations basés sur mon expérience avec TorrentTrader. Malheureusement, plusieurs de mes publications ont été supprimées sans explication. À partir de ce moment, j'ai perdu l'envie de continuer à contribuer publiquement.

Avec le recul, j'ai dû modifier et sécuriser énormément de choses de mon côté pour rendre mon tracker plus fiable et plus sécuritaire. Par exemple, certaines informations sensibles pouvaient être retrouvées beaucoup trop facilement via les outils de développement du navigateur (F12), comme l'affichage d'adresses IP qui ne devraient jamais être exposées à tous.

Il serait également important que TorrentTrader cesse d'exposer certains fichiers sensibles, notamment les configurations contenant les informations de connexion à la base de données. Des fichiers comme `mysql.php`, lorsqu'ils sont accessibles ou mal protégés, représentent un risque réel. Plusieurs administrateurs ont déjà connu des problèmes importants à cause de ce type de faille. Le cas de YYG est souvent cité comme un exemple des conséquences possibles lorsqu'une vulnérabilité n'est pas corrigée à temps.

Aujourd'hui, je poursuis le développement de mon propre tracker selon mes propres standards. J'ai beaucoup appris au fil des années et j'ai choisi de concentrer mon énergie à améliorer et sécuriser ma propre communauté plutôt qu'à proposer des correctifs qui ne sont pas pris en considération.

Mon intention n'a jamais été de critiquer gratuitement, mais simplement d'encourager de meilleures pratiques de sécurité afin de protéger les administrateurs et leurs membres.

========================================================

At first, I genuinely tried to help the community by sharing fixes and improvements based on my experience working with TorrentTrader. Unfortunately, several of my posts were removed without explanation. From that point on, I lost the motivation to continue contributing publicly.

Over time, I ended up modifying and securing a large portion of the code on my own to make my tracker more reliable and secure. For example, certain sensitive information could be discovered far too easily using basic browser developer tools (F12), including the exposure of IP-related information that should never be publicly accessible.

It is also important for TorrentTrader to stop exposing sensitive configuration files containing database credentials. Files such as `mysql.php`, when accessible or improperly protected, represent a serious security risk. Several administrators have experienced major issues because of vulnerabilities of this kind. The YYG incident is often mentioned as an example of what can happen when these weaknesses are not addressed in time.

Today, I continue developing my own tracker according to my own standards. I have learned a great deal over the years, and I now prefer to focus my efforts on improving and securing my own community rather than submitting fixes that are ignored or removed.

My intention has never been to criticize for the sake of criticism, but rather to encourage better security practices in order to protect both administrators and their members.

Perfectly beautiful with more work 🔥



Testing...replace with :
--------------
// REMOVE WARNINGS
$res = SQL_Query_exec("
   SELECT users.id, users.username, warnings.expiry
   FROM users
   LEFT JOIN warnings ON warnings.userid = users.id
   WHERE warnings.active = 'yes'
     AND warnings.expiry < NOW()
");

if ($res !== false) {
   while ($arr1 = mysqli_fetch_assoc($res)) {

       $userid   = (int)$arr1['id'];
       $username = $arr1['username'] ?? '';
       $expiry   = $arr1['expiry'] ?? 'unknown';

       SQL_Query_exec("
           UPDATE users
           SET warned = 'no'
           WHERE id = $userid
       ");

       SQL_Query_exec("
           UPDATE warnings
           SET active = 'no'
           WHERE userid = $userid
       ");

       write_log("Removed warning for {$username}. Expiry: {$expiry}");
   }
}

// WARN USERS THAT STILL HAVE ACTIVE WARNINGS
SQL_Query_exec("
   UPDATE users
   SET warned = 'yes'
   WHERE warned = 'no'
     AND id IN (
         SELECT userid
         FROM warnings
         WHERE active = 'yes'
     )
");

// END
update torrents-detail.php :

Search :
---------
if ($row[image1]) {
   $del = unlink($site_config["torrent_dir"]."/images/$row[image1]");
   $updateset[] = "image1 = ''";
}


Replace with :
---------------
if (!empty($row['image1'])) {
   @unlink($site_config["torrent_dir"]."/images/".$row['image1']);
   $updateset[] = "image1 = ''";
}


Search :
---------
if ($row[image2]) {
   $del = unlink($site_config["torrent_dir"]."/images/$row[image2]");
   $updateset[] = "image2 = ''";
}


Replace with :
---------------
if (!empty($row['image2'])) {
   @unlink($site_config["torrent_dir"]."/images/".$row['image2']);
   $updateset[] = "image2 = ''";
}


Search :
---------
<input type='radio' name='img2' value='keep' checked='checked' />
<input type='radio' name='img2' value='delete' />
<input type='radio' name='img2action' value='update' />


Replace with :
---------------
<input type='radio' name='img2action' value='keep' checked='checked' />
<input type='radio' name='img2action' value='delete' />
<input type='radio' name='img2action' value='update' />


Search :
---------
$img1action = $_POST['img1action'];
$img2action = $_POST['img2action'];


Replace with :
---------------
$img1action = $_POST['img1action'] ?? 'keep';
$img2action = $_POST['img2action'] ?? 'keep';


Update View-nfo...
=============

search in torrents-details :
----------------------------------
print("<tr><td align='left'><b>" .T_("TOTAL_SIZE"). ":</b></td><td>" . mksize($row["size"]) . " </td></tr>\n");


Add :
------
// NFO 2025
if (!empty($row["nfo"])) {
   print("<tr>
       <td align='left'><b>NFO :</b></td>
       <td>
           <a href='" . $site_config["SITEURL"] . "/backend/nfo2png.php?id=" . (int)$row["id"] . "'
              target='_blank'
              style='font-weight:bold;color:#3fa9f5;text-decoration:none;'>
              [ Voir le NFO en image ]
           </a>
       </td>
   </tr>\n");
}
// End


* Add the files corresponding to the files in the .zip archive.

Note : Do you prefer to delete the information from the torrents-details.php file?

OR..

change!..
-----------
<?php

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


require_once(__DIR__ . "/backend/functions.php");
require_once(__DIR__ . "/backend/BDecode.php");
dbconn();

$torrent_dir = $site_config["torrent_dir"];
$nfo_dir = $site_config["nfo_dir"];

//check permissions
if ($site_config["MEMBERSONLY"]){
loggedinonly();

if($CURUSER["view_torrents"]=="no")
show_error_msg(T_("ERROR"), T_("NO_TORRENT_VIEW"), 1);
}

//************ DO SOME "GET" STUFF BEFORE PAGE LAYOUT ***************

$id = (int) $_GET["id"];
$scrape = (int)($_GET["scrape"] ?? 0);
if (!is_valid_id($id))
show_error_msg(T_("ERROR"), T_("THATS_NOT_A_VALID_ID"), 1);

//GET ALL MYSQL VALUES FOR THIS TORRENT
$res = SQL_Query_exec("SELECT torrents.anon, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.image2, torrents.announce, torrents.numfiles, torrents.freeleech, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id");
$row = mysqli_fetch_assoc($res);

//DECIDE IF TORRENT EXISTS
if (!$row || ($row["banned"] == "yes" && $CURUSER["edit_torrents"] == "no"))
show_error_msg(T_("ERROR"), T_("TORRENT_NOT_FOUND"), 1);

//torrent is availiable so do some stuff

if ($_GET["hit"] ?? false) {
   SQL_Query_exec("UPDATE torrents SET views = views + 1 WHERE id = $id");
   header("Location: torrents-details.php?id=$id");
   die;
}


stdhead(T_("DETAILS_FOR_TORRENT")." \"" . $row["name"] . "\"");

if ($CURUSER["id"] == $row["owner"] || $CURUSER["edit_torrents"] == "yes")
$owned = 1;
else
$owned = 0;

//take rating
if (($_GET["takerating"] ?? '') === 'yes'){
$rating = (int)$_POST['rating'];

if ($rating <= 0 || $rating > 5)
show_error_msg(T_("RATING_ERROR"), T_("INVAILD_RATING"), 1);

$res = SQL_Query_exec("INSERT INTO ratings (torrent, user, rating, added) VALUES ($id, " . $CURUSER["id"] . ", $rating, '".get_date_time()."')");

if (!$res) {
if (mysqli_errno($GLOBALS["DBconnector"]) == 1062)
show_error_msg(T_("RATING_ERROR"), T_("YOU_ALREADY_RATED_TORRENT"), 1);
else
show_error_msg(T_("RATING_ERROR"), T_("A_UNKNOWN_ERROR_CONTACT_STAFF"), 1);
}

SQL_Query_exec("UPDATE torrents SET numratings = numratings + 1, ratingsum = ratingsum + $rating WHERE id = $id");
show_error_msg(T_("RATING_SUCCESS"), T_("RATING_THANK")."<br /><br /><a href='torrents-details.php?id=$id'>" .T_("BACK_TO_TORRENT"). "</a>");
}

//take comment add
if (($_GET["takecomment"] ?? '') == 'yes'){
loggedinonly();
$body = $_POST['body'];

if (!$body)
show_error_msg(T_("RATING_ERROR"), T_("YOU_DID_NOT_ENTER_ANYTHING"), 1);

SQL_Query_exec("UPDATE torrents SET comments = comments + 1 WHERE id = $id");

SQL_Query_exec("INSERT INTO comments (user, torrent, added, text) VALUES (".$CURUSER["id"].", ".$id.", '" .get_date_time(). "', " . sqlesc($body).")");

if (mysqli_affected_rows($GLOBALS["DBconnector"]) == 1)
show_error_msg(T_("COMPLETED"), T_("COMMENT_ADDED"), 0);
else
show_error_msg(T_("ERROR"), T_("UNABLE_TO_ADD_COMMENT"), 0);
}//end insert comment

//START OF PAGE LAYOUT HERE
$char1 = 75; //cut length
$shortname = CutName(htmlspecialchars($row["name"]), $char1);

begin_frame(T_("TORRENT_DETAILS_FOR"). " \"" . $shortname . "\"");

echo "<div align='right'>[<a href='report.php?torrent=$id'><b>" .T_("REPORT_TORRENT"). "</b></a>]&nbsp;";
if ($owned)
echo "[<a href='torrents-edit.php?id=$row[id]&returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "'><b>".T_("EDIT_TORRENT")."</b></a>]";
echo "</div>";

echo "<center><h1>" . $shortname . "</h1></center>";

// Calculate local torrent speed test
if ($row["leechers"] >= 1 && $row["seeders"] >= 1 && $row["external"]!='yes'){
$speedQ = SQL_Query_exec("SELECT (SUM(p.downloaded)) / (UNIX_TIMESTAMP('".get_date_time()."') - UNIX_TIMESTAMP(added)) AS totalspeed FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' AND p.torrent = '$id' GROUP BY t.id ORDER BY added ASC LIMIT 15");
$a = mysqli_fetch_assoc($speedQ);
$totalspeed = mksize($a["totalspeed"]) . "/s";
}else{
$totalspeed = T_("NO_ACTIVITY");
}

//download box
echo "<center><table border='0' width='100%'><tr><td><div id='downloadbox'>";
if ($row["banned"] == "yes"){
print ("<center><b>" .T_("DOWNLOAD"). ": </b>BANNED!</center>");
}else{
print ("<table border='0' cellpadding='0' width='100%'><tr><td align='center' valign='middle' width='175'><a href=\"download.php?id=$id&name=" . rawurlencode($row["filename"]) . "\"><img src=\"".$site_config["SITEURL"]."/images/download_torrent.png\" border=\"0\" alt='' /></a></td>");
print ("<td valign='top'><a href='download.php?id=$id&name=" . rawurlencode($row["filename"]) . "' class='buttonS'>".T_("DOWNLOAD_TORRENT")."</a><br />");
print ("<b>" .T_("HEALTH"). ": </b><img src='".$site_config["SITEURL"]."/images/health/health_".health($row["leechers"], $row["seeders"]).".gif' alt='' /><br />");
print ("<b>" .T_("SEEDS"). ": </b><font color='green'>" . number_format($row["seeders"]) . "</font><br />");
print ("<b>".T_("LEECHERS").": </b><font color='#ff0000'>" .  number_format($row["leechers"]) . "</font><br />");

if ($row["external"]!='yes'){
print ("<b>".T_("SPEED").": </b>" . $totalspeed . "<br />");
}

print ("<b>".T_("COMPLETED").":</b> " . number_format($row["times_completed"]) . "&nbsp;");

if ($row["external"] != "yes" && $row["times_completed"] > 0) {
echo("[<a href='torrents-completed.php?id=$id'>" .T_("WHOS_COMPLETED"). "</a>] ");
if ($row["seeders"] <= 1) {
echo("[<a href='torrents-reseed.php?id=$id'>" .T_("REQUEST_A_RE_SEED"). "</a>]");
}
}
echo "<br />";

if ($row["external"]!='yes' && $row["freeleech"]=='1'){
print ("<b>".T_("FREE_LEECH").": </b><font color='#ff0000'>".T_("FREE_LEECH_MSG")."</font><br />");
}

print ("<b>".T_("LAST_CHECKED").": </b>" . date("d-m-Y H:i:s", utc_to_tz_time($row["last_action"])) . "<br /></td>");

if ($row["external"]=='yes'){

if ($scrape =='1'){
print("<td valign='top' align='right'><b>Tracked: </b>EXTERNAL<br /><br />");
$seeders1 = $leechers1 = $downloaded1 = null;

$tres = SQL_Query_exec("SELECT url FROM announce WHERE torrent=$id");
while ($trow = mysqli_fetch_assoc($tres)) {
$ann = $trow["url"];
$tracker = explode("/", $ann);
$path = array_pop($tracker);
$oldpath = $path;
$path = preg_replace("/^announce/", "scrape", $path);
$tracker = implode("/", $tracker)."/".$path;

if ($oldpath == $path) {
continue; // Scrape not supported, ignored
}

// TPB's tracker is dead. Use openbittorrent instead
if (preg_match("/thepiratebay.org/i", $tracker) || preg_match("/prq.to/", $tracker)) {
$tracker = "http://tracker.openbittorrent.com/scrape";
}

$stats = torrent_scrape_url($tracker, $row["info_hash"]);
if ($stats['seeds'] != -1) {
$seeders1 += $stats['seeds'];
$leechers1 += $stats['peers'];
$downloaded1 += $stats['downloaded'];
SQL_Query_exec("UPDATE `announce` SET `online` = 'yes', `seeders` = $stats[seeds], `leechers` = $stats[peers], `times_completed` = $stats[downloaded] WHERE `url` = ".sqlesc($ann)." AND `torrent` = $id");
} else {
SQL_Query_exec("UPDATE `announce` SET `online` = 'no' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $id");

}
}

if ($seeders1 !== null){ //only update stats if data is received
print ("<b>".T_("LIVE_STATS").": </b><br />");
print ("Seeders: ".number_format($seeders1)."<br />");
print ("Leechers: ".number_format($leechers1)."<br />");
print (T_("COMPLETED").": ".number_format($downloaded1)."<br />");

SQL_Query_exec("UPDATE torrents SET leechers='".$leechers1."', seeders='".$seeders1."', times_completed='".$downloaded1."',last_action= '".get_date_time()."',visible='yes' WHERE id='".$row['id']."'");
}else{
print ("<b>".T_("LIVE_STATS").": </b><br />");
print ("<font color='#ff0000'>Tracker Timeout<br />Please retry later</font><br />");
}

print ("<form action='torrents-details.php?id=$id&scrape=1' method='post'><input type=\"submit\" name=\"submit\" value=\"Update Stats\" /></form></td>");
}else{
print ("<td valign='top' align='right'><b>Tracked:</b> EXTERNAL<br /><br /><form action='torrents-details.php?id=$id&scrape=1' method='post'><input type=\"submit\" name=\"submit\" value=\"Update Stats\" /></form></td>");
}
}

echo "</tr></table>";
}
echo "</div></td></tr></table></center><br /><br />";
//end download box


echo "<fieldset><legend> Details </legend>";
echo "<table cellpadding='3' border='0' width='100%'>";
print("<tr><td align='left'><b>".T_("NAME").":</b></td><td>" . $shortname . "</td></tr>\n");
print("<tr><td align='left' colspan='2'><b>" .T_("DESCRIPTION"). ":</b><br />" .  format_comment($row['descr']) . "</td></tr>\n");
print("<tr><td align='left'><b>" .T_("CATEGORY"). ":</b></td><td>" . $row["cat_parent"] . " > " . $row["cat_name"] . "</td></tr>\n");

if (empty($row["lang_name"])) $row["lang_name"] = "Unknown/NA";
print("<tr><td align='left'><b>" .T_("LANG"). ":</b></td><td>" . $row["lang_name"] . "\n");

if (isset($row["lang_image"]) && $row["lang_image"] != "")
print("&nbsp;<img border=\"0\" src=\"" . $site_config['SITEURL'] . "/images/languages/" . $row["lang_image"] . "\" alt=\"" . $row["lang_name"] . "\" />");

print("</td></tr>");

print("<tr><td align='left'><b>" .T_("TOTAL_SIZE"). ":</b></td><td>" . mksize($row["size"]) . " </td></tr>\n");

// NFO 2025
if (!empty($row["nfo"])) {
   print("<tr>
       <td align='left'><b>NFO :</b></td>
       <td>
           <a href='" . $site_config["SITEURL"] . "/backend/nfo2png.php?id=" . (int)$row["id"] . "'
              target='_blank'
              class='btn-nfo-image'>
              Voir le NFO (image)
           </a>
       </td>
   </tr>\n");
}
// End

print("<tr><td align='left'><b>" .T_("INFO_HASH"). ":</b></td><td>" . $row["info_hash"] . "</td></tr>\n");

print("");
if ($row["anon"] == "yes" && !$owned)
print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td>Anonymous</td></tr>");
elseif ($row["username"])
print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td><a href='account-details.php?id=" . $row["owner"] . "'>" . $row["username"] . "</a></td></tr>");
else
print("<tr><td align='left'><b>" .T_("ADDED_BY"). ":</b></td><td>Unknown</td></tr>");

print("<tr><td align='left'><b>" .T_("DATE_ADDED"). ":</b></td><td>" . date("d-m-Y H:i:s", utc_to_tz_time($row["added"])) . "</td></tr>\n");
print("<tr><td align='left'><b>" .T_("VIEWS"). ":</b></td><td>" . number_format($row["views"]) . "</td></tr>\n");
print("<tr><td align='left'><b>".T_("HITS").":</b></td><td>" . number_format($row["hits"]) . "</td></tr>\n");
echo "</table></fieldset><br /><br />";

// $srating IS RATING VARIABLE
$srating = "";
$srating .= "<table class='f-border' cellspacing=\"1\" cellpadding=\"4\" width='100%'><tr><td class='f-title' width='60'><b>".T_("RATINGS").":</b></td><td class='f-title' valign='middle'>";
if (!isset($row["rating"])) {
$srating .= "Not Yet Rated";
}else{
$rpic = ratingpic($row["rating"]);
if (!isset($rpic))
$srating .= "invalid?";
else
$srating .= "$rpic (" . $row["rating"] . " ".T_("OUT_OF")." 5) " . $row["numratings"] . " ".T_("USERS_HAVE_RATED");
}
$srating .= "\n";
if (!isset($CURUSER))
$srating .= "(<a href=\"account-login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "&nowarn=1\">Log in</a> to rate it)";
else {
$ratings = array(
5 => T_("COOL"),
4 => T_("PRETTY_GOOD"),
3 => T_("DECENT"),
2 => T_("PRETTY_BAD"),
1 => T_("SUCKS")
);
//if (!$owned || $moderator) {
$xres = SQL_Query_exec("SELECT rating, added FROM ratings WHERE torrent = $id AND user = " . $CURUSER["id"]);
$xrow = mysqli_fetch_assoc($xres);
if ($xrow)
$srating .= "<br /><i>(".T_("YOU_RATED")." \"" . $xrow["rating"] . " - " . $ratings[$xrow["rating"]] . "\")</i>";
else {
$srating .= "<form style=\"display:inline;\" method=\"post\" action=\"torrents-details.php?id=$id&takerating=yes\"><input type=\"hidden\" name=\"id\" value=\"$id\" />\n";
$srating .= "<select name=\"rating\">\n";
$srating .= "<option value=\"0\">(".T_("ADD_RATING").")</option>\n";
foreach ($ratings as $k => $v) {
$srating .= "<option value=\"$k\">$k - $v</option>\n";
}
$srating .= "</select>\n";
$srating .= "<input type=\"submit\" value=\"".T_("VOTE")."\" />";
$srating .= "</form>\n";
}
//}
}
$srating .= "</td></tr></table>";

print("<center>". $srating . "</center>");// rating
//END DEFINE RATING VARIABLE

echo "<br />";
                                                 
$img1 = $row["image1"] ?? "";
$img2 = $row["image2"] ?? "";

//== iMDB fix ==//


//== End iMDB ==//
if ($img1 || $img2) {
   if ($img1) {
       $img1 = "<img src='" . $site_config["SITEURL"] . "/uploads/images/$img1' width='150' border='0' alt='' />";
   }
   if ($img2) {
       $img2 = "<img src='" . $site_config["SITEURL"] . "/uploads/images/$img2' width='150' border='0' alt='' />";
   }

   print("<center>" . $img1 . "&nbsp;&nbsp;" . $img2 . "</center><br />");
}


if ($row["external"]=='yes'){
print ("<br /><b>Tracker:</b><br /> ".htmlspecialchars($row['announce'])."<br />");
}

$tres = SQL_Query_exec("SELECT * FROM `announce` WHERE `torrent` = $id");
if (mysqli_num_rows($tres) > 1){
echo "<br /><b>".T_("THIS_TORRENT_HAS_BACKUP_TRACKERS")."</b><br />";
echo '<table cellpadding="1" cellspacing="2" class="table_table"><tr>';
echo '<th class="table_head">URL</th><th class="table_head">'.T_("SEEDERS").'</th><th class="table_head">'.T_("LEECHERS").'</th><th class="table_head">'.T_("COMPLETED").'</th></tr>';
$x = 1;
while ($trow = mysqli_fetch_assoc($tres)) {
$colour = $trow["online"] == "yes" ? "green" : "red";
echo "<tr class=\"table_col$x\"><td><font color=\"$colour\"><b>".htmlspecialchars($trow['url'])."</b></font></td><td align=\"center\">".number_format($trow["seeders"])."</td><td align=\"center\">".number_format($trow["leechers"])."</td><td align=\"center\">".number_format($trow["times_completed"])."</td></tr>";
$x = $x == 1 ? 2 : 1;
}
echo '</table>';
}

echo "<br /><br /><b>".T_("FILE_LIST").":</b>&nbsp;<img src='images/plus.gif' id='pic1' onclick='klappe_torrent(1)' alt='' /><div id='k1' style='display: none;'><table align='center' cellpadding='0' cellspacing='0' class='table_table' border='1' width='100%'><tr><th width='50' class='table_head'>&nbsp;".T_("TYPE")."</th><th class='table_head' align='left'>&nbsp;".T_("FILE")."</th><th width='50' class='table_head'>&nbsp;".T_("SIZE")."</th></tr>";
$id = intval($id);  // Sanitize $id
$fres = SQL_Query_exec("SELECT * FROM `files` WHERE `torrent` = $id ORDER BY `path` ASC");
if (mysqli_num_rows($fres)) {
   while ($frow = mysqli_fetch_assoc($fres)) {
$ext = pathinfo($frow['path'], PATHINFO_EXTENSION);
$filetype_icons = [
"mp3" => "/images/filetype-icons/mp3.png",
"iso" => "/images/filetype-icons/iso.png",
"mp4" => "/images/filetype-icons/mp4.png",
"png" => "/images/filetype-icons/png.png",
"jpg" => "/images/filetype-icons/jpg.png",
"mkv" => "/images/filetype-icons/mkv.png",
"rar" => "/images/filetype-icons/rar.png",
"avi" => "/images/filetype-icons/avi.png",
"srt" => "/images/filetype-icons/srt.png",
"nfo" => "/images/filetype-icons/nfo.png"
 ];
 if(preg_match("/^r\d{2}$/", $ext)) {
$filetype_icon = "<img width=40 height=40 src='/images/filetype-icons/rar.png'>";
} elseif(isset($filetype_icons[$ext])) {
$filetype_icon = "<img width=40 height=40 src='" . $filetype_icons[$ext] . "'>";
} else {
$filetype_icon = "<img width=40 height=40 src='/images/filetype-icons/unknown.png'>";
}
 

       echo "<tr><td class='table_col1'>".$filetype_icon."</td><td class='table_col1'>".htmlspecialchars($frow['path'])."</td><td class='table_col2'>".mksize($frow['filesize'])."</td></tr>";
   }
}else{
   echo "<tr><td class='table_col1'>".htmlspecialchars($row["name"])."</td><td class='table_col2'>".mksize($row["size"])."</td></tr>";
}
echo "</table></div>";



if ($row["external"]!='yes'){
echo "<br /><br /><b>".T_("PEERS_LIST").":</b><br />";
$query = SQL_Query_exec("SELECT * FROM peers WHERE torrent = $id ORDER BY seeder DESC");

$result = mysqli_num_rows($query);
if($result == 0) {
echo T_("NO_ACTIVE_PEERS")."\n";
}else{
?>

           <table border="0" cellpadding="3" cellspacing="0" width="100%" class="table_table">
<tr>
               <th class="table_head"><?php echo T_("PORT"); ?></th>
   <th class="table_head"><?php echo T_("UPLOADED"); ?></th>
   <th class="table_head"><?php echo T_("DOWNLOADED"); ?></th>
   <th class="table_head"><?php echo T_("RATIO"); ?></th>
   <th class="table_head"><?php echo T_("_LEFT_"); ?></th>
   <th class="table_head"><?php echo T_("FINISHED_SHORT"). "%"; ?></th>
   <th class="table_head"><?php echo T_("SEED"); ?></th>
   <th class="table_head"><?php echo T_("CONNECTED_SHORT"); ?></th>
   <th class="table_head"><?php echo T_("CLIENT"); ?></th>
   <th class="table_head"><?php echo T_("USER_SHORT"); ?></th>
</tr>
<?php
while($row1 = mysqli_fetch_assoc($query)) {

if ($row1["downloaded"] > 0){
$ratio = $row1["uploaded"] / $row1["downloaded"];
$ratio = number_format($ratio, 3);
}else{
$ratio = "---";
}

$percentcomp = sprintf("%.2f", 100 * (1 - ($row1["to_go"] / $row["size"])));    

if ($site_config["MEMBERSONLY"]) {
$res = SQL_Query_exec("SELECT id, username, privacy FROM users WHERE id=".$row1["userid"]."");
$arr = mysqli_fetch_array($res);
                   
                   $arr["username"] = "<a href='account-details.php?id=$arr[id]'>$arr[username]</a>";
}
               
               # With $site_config["MEMBERSONLY"] off this will be shown.
               if ( !$arr["username"] ) $arr["username"] = "Unknown User";
       
if ($arr["privacy"] != "strong" || ($CURUSER["control_panel"] == "yes")) {
print("<tr><td class='table_col2'>".$row1["port"]."</td><td class='table_col1'>".mksize($row1["uploaded"])."</td><td class='table_col2'>".mksize($row1["downloaded"])."</td><td class='table_col1'>".$ratio."</td><td class='table_col2'>".mksize($row1["to_go"])."</td><td class='table_col1'>".$percentcomp."%</td><td class='table_col2'>$row1[seeder]</td><td class='table_col1'>$row1[connectable]</td><td class='table_col2'>".htmlspecialchars($row1["client"])."</td><td class='table_col1'>$arr[username]</td></tr>");
}else{
print("<tr><td class='table_col2'>".$row1["port"]."</td><td class='table_col1'>".mksize($row1["uploaded"])."</td><td class='table_col2'>".mksize($row1["downloaded"])."</td><td class='table_col1'>".$ratio."</td><td class='table_col2'>".mksize($row1["to_go"])."</td><td class='table_col1'>".$percentcomp."%</td><td class='table_col2'>$row1[seeder]</td><td class='table_col1'>$row1[connectable]</td><td class='table_col2'>".htmlspecialchars($row1["client"])."</td><td class='table_col1'>Private</td></tr>");
}

}
echo "</table>";
}
}

echo "<br /><br />";

//DISPLAY NFO BLOCK
function my_nfo_translate($nfo){
       $trans = array(
       "\x80" => "&#199;", "\x81" => "&#252;", "\x82" => "&#233;", "\x83" => "&#226;", "\x84" => "&#228;", "\x85" => "&#224;", "\x86" => "&#229;", "\x87" => "&#231;", "\x88" => "&#234;", "\x89" => "&#235;", "\x8a" => "&#232;", "\x8b" => "&#239;", "\x8c" => "&#238;", "\x8d" => "&#236;", "\x8e" => "&#196;", "\x8f" => "&#197;", "\x90" => "&#201;",
       "\x91" => "&#230;", "\x92" => "&#198;", "\x93" => "&#244;", "\x94" => "&#246;", "\x95" => "&#242;", "\x96" => "&#251;", "\x97" => "&#249;", "\x98" => "&#255;", "\x99" => "&#214;", "\x9a" => "&#220;", "\x9b" => "&#162;", "\x9c" => "&#163;", "\x9d" => "&#165;", "\x9e" => "&#8359;", "\x9f" => "&#402;", "\xa0" => "&#225;", "\xa1" => "&#237;",
       "\xa2" => "&#243;", "\xa3" => "&#250;", "\xa4" => "&#241;", "\xa5" => "&#209;", "\xa6" => "&#170;", "\xa7" => "&#186;", "\xa8" => "&#191;", "\xa9" => "&#8976;", "\xaa" => "&#172;", "\xab" => "&#189;", "\xac" => "&#188;", "\xad" => "&#161;", "\xae" => "&#171;", "\xaf" => "&#187;", "\xb0" => "&#9617;", "\xb1" => "&#9618;", "\xb2" => "&#9619;",
       "\xb3" => "&#9474;", "\xb4" => "&#9508;", "\xb5" => "&#9569;", "\xb6" => "&#9570;", "\xb7" => "&#9558;", "\xb8" => "&#9557;", "\xb9" => "&#9571;", "\xba" => "&#9553;", "\xbb" => "&#9559;", "\xbc" => "&#9565;", "\xbd" => "&#9564;", "\xbe" => "&#9563;", "\xbf" => "&#9488;", "\xc0" => "&#9492;", "\xc1" => "&#9524;", "\xc2" => "&#9516;", "\xc3" => "&#9500;",
       "\xc4" => "&#9472;", "\xc5" => "&#9532;", "\xc6" => "&#9566;", "\xc7" => "&#9567;", "\xc8" => "&#9562;", "\xc9" => "&#9556;", "\xca" => "&#9577;", "\xcb" => "&#9574;", "\xcc" => "&#9568;", "\xcd" => "&#9552;", "\xce" => "&#9580;", "\xcf" => "&#9575;", "\xd0" => "&#9576;", "\xd1" => "&#9572;", "\xd2" => "&#9573;", "\xd3" => "&#9561;", "\xd4" => "&#9560;",
       "\xd5" => "&#9554;", "\xd6" => "&#9555;", "\xd7" => "&#9579;", "\xd8" => "&#9578;", "\xd9" => "&#9496;", "\xda" => "&#9484;", "\xdb" => "&#9608;", "\xdc" => "&#9604;", "\xdd" => "&#9612;", "\xde" => "&#9616;", "\xdf" => "&#9600;", "\xe0" => "&#945;", "\xe1" => "&#223;", "\xe2" => "&#915;", "\xe3" => "&#960;", "\xe4" => "&#931;", "\xe5" => "&#963;",
       "\xe6" => "&#181;", "\xe7" => "&#964;", "\xe8" => "&#934;", "\xe9" => "&#920;", "\xea" => "&#937;", "\xeb" => "&#948;", "\xec" => "&#8734;", "\xed" => "&#966;", "\xee" => "&#949;", "\xef" => "&#8745;", "\xf0" => "&#8801;", "\xf1" => "&#177;", "\xf2" => "&#8805;", "\xf3" => "&#8804;", "\xf4" => "&#8992;", "\xf5" => "&#8993;", "\xf6" => "&#247;",
       "\xf7" => "&#8776;", "\xf8" => "&#176;", "\xf9" => "&#8729;", "\xfa" => "&#183;", "\xfb" => "&#8730;", "\xfc" => "&#8319;", "\xfd" => "&#178;", "\xfe" => "&#9632;", "\xff" => "&#160;",
       );
       $trans2 = array("\xe4" => "&auml;",        "\xF6" => "&ouml;",        "\xFC" => "&uuml;",        "\xC4" => "&Auml;",        "\xD6" => "&Ouml;",        "\xDC" => "&Uuml;",        "\xDF" => "&szlig;");
       $all_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
       $last_was_ascii = False;
       $tmp = "";
       $nfo = $nfo . "\00";
       for ($i = 0; $i < (strlen($nfo) - 1); $i++)
       {
               $char = $nfo[$i];
               if (isset($trans2[$char]) and ($last_was_ascii or strpos($all_chars, ($nfo[$i + 1]))))
               {
                       $tmp = $tmp . $trans2[$char];
                       $last_was_ascii = True;
               }
               else
               {
                       if (isset($trans[$char]))
                       {
                               $tmp = $tmp . $trans[$char];
                       }
                       else
                       {
                           $tmp = $tmp . $char;
                       }
                       $last_was_ascii = strpos($all_chars, $char);
               }
       }
       return $tmp;
}
//-----------------------------------------------

// =======================
// NFO IMAGE (PNG)
// =======================
if (!empty($row["nfo"])) {
   echo "<div id='nfo-image' style='display:none; margin-bottom:10px; text-align:center;'>
       <img src='" . $site_config["SITEURL"] . "/backend/nfo2png.php?id=" . (int)$row["id"] . "'
            alt='NFO Image'
            style='max-width:100%; border:1px solid #333; border-radius:6px;' />
   </div>";
}

// =======================
// NFO TEXTE (TT CLASSIQUE)
// =======================
$nfo = '';
$nfofilelocation = "$nfo_dir/" . (int)$row["id"] . ".nfo";

if (is_file($nfofilelocation) && is_readable($nfofilelocation)) {
   $filegetcontents = file_get_contents($nfofilelocation);
   $nfo = htmlspecialchars($filegetcontents ?? '');

   if ($nfo !== '') {
       $nfo = my_nfo_translate($nfo);
       echo "<div id='nfo-text' style='display:block;'>";
       print("<textarea class='nfo' style='width:98%;height:100%;' rows='20' cols='20' readonly='readonly'>".stripslashes($nfo)."</textarea>");
       echo "</div>";
   } else {
       print(T_("ERROR") . " reading .nfo file!");
   }
}
end_frame();

begin_frame(T_("COMMENTS"));
//echo "<p align=center><a class=index href=torrents-comment.php?id=$id>" .T_("ADDCOMMENT"). "</a></p>\n";

$subres = SQL_Query_exec("SELECT COUNT(*) FROM comments WHERE torrent = $id");
$subrow = mysqli_fetch_array($subres);
$commcount = $subrow[0];

if ($commcount) {
list($pagertop, $pagerbottom, $limit) = pager(10, $commcount, "torrents-details.php?id=$id&");
$commquery = "SELECT comments.id, text, user, comments.added, avatar, signature, username, title, class, uploaded, downloaded, privacy, donated FROM comments LEFT JOIN users ON comments.user = users.id WHERE torrent = $id ORDER BY comments.id $limit";
$commres = SQL_Query_exec($commquery);
}else{
unset($commres);
}

if ($commcount) {
print($pagertop);
commenttable($commres, 'torrent');
print($pagerbottom);
}else {
print("<br /><b>" .T_("NOCOMMENTS"). "</b><br />\n");
}

require_once("backend/bbcode.php");

if ($CURUSER) {
echo "<center>";
echo "<form name=\"comment\" method=\"post\" action=\"torrents-details.php?id=$row[id]&takecomment=yes\">";
echo textbbcode("comment","body")."<br />";
echo "<input type=\"submit\"  value=\"".T_("ADDCOMMENT")."\" />";
echo "</form></center>";
}

end_frame();

require_once("backend/bbcode.php");
// JS NFO 2025
echo "<script type='text/javascript'>
function toggleNFO() {
   var t = document.getElementById('nfo-text');
   var i = document.getElementById('nfo-image');
   if (!t || !i) return;

   if (t.style.display === 'none') {
       t.style.display = 'block';
       i.style.display = 'none';
   } else {
       t.style.display = 'none';
       i.style.display = 'block';
   }
}
</script>";
//  End NFO

stdfoot();
?>


Add CSS :
-----------
/* =========================
  BOUTON NFO
========================= */
.btn-nfo-image {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 6px 12px;
 border-radius: 6px;
 background: var(--theme-color);
 color: #fff !important;
 font-weight: bold;
 text-decoration: none;
 box-shadow: 0 2px 6px rgba(0,0,0,.25);
 transition: all .2s ease;
}

.btn-nfo-image i {
 font-size: 14px;
}

.btn-nfo-image:hover {
 filter: brightness(1.15);
 transform: translateY(-1px);
}
/* End */

Update contacts staff compatible TTV3.8.3 php8.3+
===================================

SQL:
===
CREATE TABLE `staffmessages` (
 `id` int(10) UNSIGNED NOT NULL,
 `sender` int(10) UNSIGNED NOT NULL DEFAULT 0,
 `added` datetime DEFAULT NULL,
 `msg` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
 `subject` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '',
 `answeredby` int(10) UNSIGNED NOT NULL DEFAULT 0,
 `answered` tinyint(1) NOT NULL DEFAULT 0,
 `answer` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb4_unicode_ci;



Add fichiers :
========
staffbox, boxcontactstaff

Add link in navigate_block :
==================
echo "<li><a href='boxcontactstaff.php'>".T_("CONTACT_STAFF")."</a></li>";


Att: Add after :
==========
if ($CURUSER["view_torrents"]=="yes" || !$site_config["MEMBERSONLY"])
{

I found a little trick..

Bloquer par CSS Firefox avec le fond en couleur du input..

Add themes.css :
input[type="text"],
input[type="password"] {
appearance: none;
box-shadow: inset 0 0 0 1000px rgba(...);
transition: 9999s;
}

Botanicar, I was inspired by your generosity.
Thank you!  👍
Add to your .lang file...
=================/

/* ===============================
       ERROR UPLOAD
================================= */
$LANG["UPLOAD_ERR[0]"] = "No error, the file was uploaded successfully.";
$LANG["UPLOAD_ERR[1]"] = "The file exceeds the upload limit defined in the server configuration (php.ini).";
$LANG["UPLOAD_ERR[2]"] = "The file exceeds the maximum size allowed by the form.";
$LANG["UPLOAD_ERR[3]"] = "The file was only partially uploaded.";
$LANG["UPLOAD_ERR[4]"] = "No file was uploaded.";
$LANG["UPLOAD_ERR[6]"] = "Missing temporary folder.";
$LANG["UPLOAD_ERR[7]"] = "Failed to write file to disk.";
$LANG["UPLOAD_ERR[8]"] = "File upload stopped by a PHP extension.";


************************************************************


/* ===============================
       ERREUR UPLOAD
================================= */
$LANG["UPLOAD_ERR[0]"] = "Aucune erreur, le fichier a été téléchargé avec succès.";
$LANG["UPLOAD_ERR[1]"] = "Le fichier dépasse la limite autorisée par le serveur (php.ini).";
$LANG["UPLOAD_ERR[2]"] = "Le fichier dépasse la taille maximale permise par le formulaire.";
$LANG["UPLOAD_ERR[3]"] = "Le fichier n’a été que partiellement téléchargé.";
$LANG["UPLOAD_ERR[4]"] = "Aucun fichier n’a été téléchargé.";
$LANG["UPLOAD_ERR[6]"] = "Dossier temporaire manquant.";
$LANG["UPLOAD_ERR[7]"] = "Échec de l’écriture du fichier sur le disque.";
$LANG["UPLOAD_ERR[8]"] = "Téléversement stoppé par une extension PHP.";
Here's a line to add to your theme.css file.
Whenever an input field is clicked, such as for `type=text`, it displays a blue border by default, and this often doesn't match your theme. Even if you add your own color using `:hover`, it still displays this blue border.

Add the following to your CSS:
====================
/* Prevents ALL blue autofill/focus/highlight (Chrome + Firefox) */
select:-internal-list-box,
select:focus-visible {
color: #E8E8E8 !important;
background: rgba(40,40,40,0.7) !important;
}

/* Prevents the blue outline from appearing */
select::-moz-focus-inner,
input::-moz-focus-inner {
   border: 0 !important;
}

*Valid for Chrome and Firefox
In functions.php, search for:
$s = str_replace("  ", " &nbsp;", $s);


Write this out or replace with:
$s = str_replace("  ", "&nbsp;&nbsp;", $s);


The spacing between words in a title= will only support one   and will not display more than the first word of your sentence.
Even if you have done the translation in your language file T_(  😊
I recommend adding this line after stdhead(); to all your PHP files.

error_reporting(E_ALL);


* error_reporting(E_ALL);
is a PHP function that configures the script to report all types of errors, including notification, warning, and fatal errors. This allows developers to see all possible errors during code execution, which is essential for debugging.
Friends, the color table needs to be added to v3.8.3; it was forgotten ;)
https://torrenttrader.uk/post/9717
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