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 mate.
------------------------------------------------------------
I successfully integrated SCEditor into TorrentTrader.
And now it looks better







function logincookie($id, $password, $secret, $updatedb = true, $expires = null) {
   if ($expires === null) {
       $expires = time() + (30 * 24 * 60 * 60); // 30 дни
   }

   // Оставяме sha1 за съвместимост
   $hash = sha1($id . $secret . $password . getip() . $secret);

   // Сетваме cookies с новия синтаксис и флагове
   setcookie("pass", $hash, [
       'expires'  => $expires,
       'path'     => '/',
       'secure'   => true,      // само по HTTPS
       'httponly' => true,      // JS не може да го чете
       'samesite' => 'Lax'      // или 'Strict' според нуждите
   ]);

   setcookie("uid", $id, [
       'expires'  => $expires,
       'path'     => '/',
       'secure'   => true,
       'httponly' => true,
       'samesite' => 'Lax'
   ]);

   if ($updatedb) {
       $stmt = $GLOBALS["DBconnector"]->prepare("UPDATE users SET last_login = ? WHERE id = ?");
       $stmt->bind_param("si", get_date_time(), $id);
       $stmt->execute();
       $stmt->close();
   }
}

function logoutcookie() {
   // Изтриваме cookies със същите флагове
   setcookie("pass", "", [
       'expires'  => time() - 3600,
       'path'     => '/',
       'secure'   => true,
       'httponly' => true,
       'samesite' => 'Lax'
   ]);

   setcookie("uid", "", [
       'expires'  => time() - 3600,
       'path'     => '/',
       'secure'   => true,
       'httponly' => true,
       'samesite' => 'Lax'
   ]);
}
announce.php for testing php8.4

Test it and let me know.

Regards
Internal torrents have always worked in TT, I don't see where your problem is
Potential Problem:
--------------------------------------
return $this; 

in __construct

In PHP, a constructor (__construct) must not return a value.
The purpose of a constructor is only to initialize the object when it is created.

Since PHP 8, if you write return $this; (or return anything) inside __construct, PHP will trigger a Deprecated notice.

In future versions, this will likely become a Fatal error and immediately break execution.

Wrong (current code)

public function __construct(string $query) {
   $this->query = $query;
   return $this; // Not allowed in PHP 8+
}


Correct (safe for PHP 8.4+)

public function __construct(string $query) {
   $this->query = $query;
   // no return statement here
}

Secure method to prevent search engines like Google, Yandex, Yahoo, and others from indexing your torrent website
-------------------------------------------------------------------------------------------------------------------
1. robots.txt file
Place a file named robots.txt in the root of your website with the following content:

User-agent: *
Disallow: /

This tells all search engine bots not to crawl or index any part of your site.
Important: This is only a request, not a technical block. Some bots may ignore it.

2. Meta tags for no indexing:
Add the following <meta> tags inside the <head> section of every HTML page, or in your template:

<meta name="robots" content="noindex, nofollow">

You can also specify bots explicitly:

<meta name="googlebot" content="noindex, nofollow">
<meta name="yandex" content="none">

3. Block search engine bots via .htaccess (Apache servers only):

# Block Googlebot
RewriteCond %{HTTP_USER_AGENT} Googlebot [NC,OR]
# Block Yandex bot
RewriteCond %{HTTP_USER_AGENT} Yandex [NC,OR]
# Block Bingbot
RewriteCond %{HTTP_USER_AGENT} bingbot [NC,OR]
# Block Yahoo/Slurp
RewriteCond %{HTTP_USER_AGENT} Slurp [NC]
RewriteRule ^.* - [F,L]

4. Block known bot IP ranges
Some bots (like Google) crawl from known IP ranges. You can block them with .htaccess or your server firewall:
Example with Apache 2.4:

<RequireAll>
 Require all granted
 Require not ip 66.249.0.0/16  # Googlebot range
</RequireAll>

Or with iptables (Linux firewall):

iptables -A INPUT -s 66.249.0.0/16 -j DROP
You can find updated IP ranges in public bot documentation.

5. Restrict content to logged-in users only
This is one of the most effective ways to prevent indexing.

If your torrent content is only visible to registered users, then bots (which can’t log in) will not see or index anything — even if they try.

6. Reverse DNS and User-Agent validation (PHP example):
This adds another layer of protection by verifying that the IP address and User-Agent match:

$ip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($ip);

if (strpos($host, 'googlebot.com') === false && strpos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false) {
   header("HTTP/1.1 403 Forbidden");
   exit;
}


This blocks fake bots pretending to be Googlebot, Yandex, etc., if their IP doesn’t resolve properly.
Internal Server Error — 2025-05-26 18:44:45 in v3 Support
You need to run check.php on your site
like that https://yourdomain.com/check.php
and then in the bottom of the page view
Valid ID theme
Valid ID language
with green color
something like this

PS: Where did you download the TT version from?
Update Teams — 2025-05-23 12:18:08 in General Chat
I use Teams on my site, but I noticed that when I try to leave a group, it doesn't update in my account.
I'm using php8.4
I found a solution and now everything works.

in file account.php find:
if (is_valid_id($teams))
$updateset[] = "team = '$teams'";


and replace or comment with(in my case it is so):
/*if (is_valid_id($teams))
$updateset[] = "team = '$teams'";*/
 if (is_numeric($teams) && (int)$teams >= 0) {
   $teams = (int)$teams;
  $updateset[] = "team = $teams";
}





How Project Honey Pot Works

Project Honey Pot is an online service designed to collect information about malicious traffic, such as spammers, bots, and other abusive actors. Its goal is to protect websites by identifying and analyzing threats. Here is how it works:

Key Functions:

1. Data Collection:

Users install specially generated "honeypot" scripts on their websites.
These scripts collect data on IP addresses interacting with the site, particularly those attempting to send spam or perform malicious actions.

2. Detection of Malicious Activities:

Honeypot scripts create fake email addresses and other traps to attract spammers and bots.
When these addresses are used to send spam, Project Honey Pot identifies the source.

3. Blacklist Creation (Blacklists):

The service provides dynamically updated lists of IP addresses and domains associated with spam or abuse.
For example, "HTTP:BL" (HTTP Blacklist) is an API that can be integrated into websites to block suspicious traffic.

4. Traffic Analysis:

Project Honey Pot helps detect patterns of attacks, such as brute force attempts, SQL injections, and DDoS attacks.

How to Use It:

Integration: Register on the platform and get a personalized script to add to your website.
Monitoring: The script automatically monitors and reports suspicious activity to Project Honey Pot servers.
API Access: Use HTTP:BL to filter website access based on the reputation of IP addresses.

Benefits:

Helps protect your site from spam and attacks.
Provides real-world data about online threats.
Easy-to-implement technology.

Limitations:
Effectiveness depends on the number of participating websites.
Requires proper configuration for optimal protection.
Cannot completely eliminate all threats but significantly reduces the risk.
This is a powerful tool, especially when combined with other technologies like Cloudflare and CAPTCHA solutions.
This is the very truth, mate :)
Additional fields for protection against spam bots
--------------------------------------------------------
in account-signup.php find
if (isset($_GET["takesignup"]) && $_GET["takesignup"] == "1") {


add after:
if (!empty($_POST['honeypot'])) {
   // If the honeypot field is filled - we deny registration.
   show_error_msg(T_("SIGNUP_FAILED"), "Spam detected.", 1);
   die();
}


in html part find:
<tr>
  <td align="center" colspan="2">
    <input type="submit" value="<?php echo T_("SIGNUP"); ?>" />
  </td>
</tr>


add before:
<tr style="display:none;">
 <td>Leave this field blank:</td>
  <td><input type="text" name="honeypot" value="" autocomplete="off" /></td>
</tr>


I think this is the simplest way to protect against spam bots.
tigers theme — 2025-05-20 18:53:41 in v3 Themes
Hi niki, if you want to share this theme with us you can upload it here

https://mediafire.com

Thanks and Regards friend
Server load fix — 2025-05-15 21:40:45 in v3 Support
Server Load block

in your language file add:

// Server load
$LANG["OPERATING_SYSTEM"] = "OS";
$LANG["SERVER_LOAD"] = "Server Load";
$LANG["RAM_USED"] = "RAM Used";
$LANG["UPTIME"] = "Uptime";
$LANG["CPU_CORES"] = "CPU Cores";
$LANG["HDD_USED"] = "HDD Used";
$LANG["PHP_VERSION"] = "PHP Version";
$LANG["PHP_MEMORY_USAGE"] = "PHP Load";
$LANG["SERVER_CHARSET"] = "Server Charset";


Add files to folders



Fix for serverload_block use this file
function logincookie($id, $password, $secret, $updatedb = true, $expires = null) {
   // Convert to integer to ensure it is a valid number
   $id = (int)$id;

   // Set cookie expiration to 30 days if not provided
   if ($expires === null) {
       $expires = time() + (30 * 24 * 60 * 60); // 30 days
   }

   // Hash the password with SHA-1
   $hash = sha1($id . $secret . $password . getip() . $secret);

   // Set secure cookies with the expiration date
   setcookie("pass", $hash, $expires, "/", "", true, true);
   setcookie("uid", $id, $expires, "/", "", true, true);

   // Update the database if required
   if ($updatedb) {
       // Prepare the SQL statement
       $stmt = $GLOBALS["DBconnector"]->prepare("UPDATE users SET last_login = ? WHERE id = ?");
       // Bind the parameters
       $stmt->bind_param("si", get_date_time(), $id);
       // Execute the statement
       $stmt->execute();
       // Close the statement
       $stmt->close();
   }
}

function logoutcookie() {
   // Delete the cookies by setting the expiration to the past
   setcookie("pass", "", time() - 3600, "/", "", true, true);
   setcookie("uid", "", time() - 3600, "/", "", true, true);
}
// Get language and theme
$CURUSER = $GLOBALS["CURUSER"] ?? [];

// Query to get the user's theme or the default theme
$ss_a = mysqli_fetch_assoc(SQL_Query_exec("select uri from stylesheets where id='" .
   ($CURUSER ? $CURUSER['stylesheet'] : $site_config['default_theme']) . "'"));
$THEME = $ss_a["uri"] ?? ''; // Ensure $THEME is not null

// Query to get the user's language or the default language
$lng_a = mysqli_fetch_assoc(SQL_Query_exec("select uri from languages where id='" .
   ($CURUSER ? $CURUSER['language'] : $site_config['default_language']) . "'"));
$LANGUAGE = $lng_a["uri"] ?? ''; // Ensure $LANGUAGE is not null

// Load the language file if available
if (!empty($LANGUAGE)) {
   require_once("languages/$LANGUAGE");
}
PHP 8 — 2025-04-24 19:21:48 in General Chat
Now everything working fine with php8.4 and MariaDB10.8.4



Thanks for support and Regards

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
PHP 8 — 2025-04-22 14:25:05 in General Chat
With php8.3 blocks are not displayed
........................................
It's my fault, sorry
In my case I view only 4 different colors. I have 5 voters

Look amazing mate
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