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

add to SQL
CREATE TABLE IF NOT EXISTS `teams` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `name` varchar(255) NOT NULL,
 `color` varchar(50) NOT NULL,
 `points` bigint(20) NOT NULL DEFAULT '0',
 PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

INSERT IGNORE INTO `teams` (`id`, `name`, `color`, `points`) VALUES
(1, 'Archivists', '#ff4444', 0),
(2, 'Vanguard', '#44ff44', 0),
(3, 'The Network', '#4444ff', 0);


ALTER TABLE `users`
ADD `team_id` int(11) NOT NULL DEFAULT '0',
ADD `event_upload` bigint(20) unsigned NOT NULL DEFAULT '0',
ADD `event_seed_time` int(11) NOT NULL DEFAULT '0';


CREATE TABLE IF NOT EXISTS `team_battle_log` (
 `id` int(1) NOT NULL,
 `last_run_month` int(2) NOT NULL DEFAULT '0',
 `fl_expire` int(11) NOT NULL DEFAULT '0',
 PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

INSERT IGNORE INTO `team_battle_log` (`id`, `last_run_month`, `fl_expire`) VALUES
(1, 0, 0),
(2, 0, 0);


in announce.php search
if ($MEMBERSONLY) {
   $res = SQL_Query_exec("SELECT u.id,


after add
u.team_id,


still in announce.php search
 if ($upthis > 0 || $down_val > 0) {
       SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $down_val WHERE id = $userid");
   }


right after add
// --- TEAM BATTLE LOGIC ---
   $team_id = isset($user['team_id']) ? (int)$user['team_id'] : 0;
   if ($team_id > 0) {
       $points_earned = 0;
       $event_upload_add = 0;
       $event_seed_time_add = 0;

       if ($upthis > 0) {
           $points_earned += floor($upthis / 10485760);
           $event_upload_add = $upthis;
       }

      if ($left == 0) {
           $points_earned += 1;
           $event_seed_time_add = 1;
       }

       if ($points_earned > 0 || $event_upload_add > 0 || $event_seed_time_add > 0) {
           SQL_Query_exec("UPDATE users SET event_upload = event_upload + $event_upload_add, event_seed_time = event_seed_time + $event_seed_time_add WHERE id = $userid");
           if ($points_earned > 0) {
               SQL_Query_exec("UPDATE teams SET points = points + $points_earned WHERE id = $team_id");
           }
       }
   }
   // --- END TEAM BATTLE LOGIC ---


OPTIONAL: if you want if a user is on a team to show the team after username in functions.php search for
function class_user($name)


in query add team_id

stil in same function before
return unesc


add
    // --- Team Tag ---
   $team_tag = "";
   $team_id = (int)$classy[11];
   
   if ($team_id == 1) {
       $team_tag = " <span style='color: #ff4444; font-size: 10px; font-weight: bold;'>[Archivists]</span>";
   } elseif ($team_id == 2) {
       $team_tag = " <span style='color: #44ff44; font-size: 10px; font-weight: bold;'>[Vanguard]</span>";
   } elseif ($team_id == 3) {
       $team_tag = " <span style='color: #4444ff; font-size: 10px; font-weight: bold;'>[The Network]</span>";
   }
   // --- End Team Tag --


in cleanup.php
before last  ?> add
// =================================================================
// --- TEAM BATTLE ---
// =================================================================
$current_month = (int)date('n');
$current_day = (int)date('j');  

if ($current_day == 1) {
   
   
   SQL_Query_exec("CREATE TABLE IF NOT EXISTS `team_battle_log` (`id` int(1) NOT NULL, `last_run_month` int(2) NOT NULL DEFAULT '0', PRIMARY KEY (`id`))");
   SQL_Query_exec("INSERT IGNORE INTO `team_battle_log` (`id`, `last_run_month`) VALUES (1, 0)");
   
   
   $res_last_run = SQL_Query_exec("SELECT last_run_month FROM team_battle_log WHERE id = 1");
   $row_last_run = mysqli_fetch_assoc($res_last_run);
   $last_run_month = $row_last_run ? (int)$row_last_run['last_run_month'] : 0;

 
   if ($last_run_month !== $current_month) {
       
       
       SQL_Query_exec("UPDATE team_battle_log SET last_run_month = $current_month WHERE id = 1");
       
       
       $res_check = SQL_Query_exec("SELECT SUM(points) as total FROM teams");
       $check = mysqli_fetch_assoc($res_check);
       
       if ($check['total'] > 0) {
           $res_teams = SQL_Query_exec("SELECT id, name FROM teams ORDER BY points DESC");
           $rank = 1;
           $msg_date = get_date_time();

           while ($team = mysqli_fetch_assoc($res_teams)) {
               $team_id = $team['id'];
               
               
               $res_users = SQL_Query_exec("SELECT id, class FROM users WHERE team_id = $team_id AND (event_upload >= 10737418240 OR event_seed_time >= 100)");
               
               while ($user = mysqli_fetch_assoc($res_users)) {
                   $uid = $user['id'];
                   $uclass = $user['class'];
                   $bonus = 0;
                   $pm_msg = "";
                   $new_class = $uclass;

                   if ($rank == 1) {
                       $bonus = 50000;
                       if ($uclass < 7) { $new_class = 7; } //change with your VIP class ID
                       $pm_msg = "Congratulations! Your team " . $team['name'] . " finished in 1st Place this month! You have been awarded 1 Month VIP and $bonus Seedbonus points.";
                       
                       
                       $trophy_html = "<span title=\'Team Battle Winner - Month $current_month\' style=\'font-size: 20px; cursor: help;\'>πŸ†</span> ";
                       SQL_Query_exec("UPDATE users SET seedbonus = seedbonus + $bonus, class = $new_class, team_badges = CONCAT(IFNULL(team_badges, ''), '$trophy_html') WHERE id = $uid");

                   } elseif ($rank == 2) {
                       $bonus = 25000;
                       $pm_msg = "Great effort! Your team " . $team['name'] . " finished in 2nd Place this month. You received $bonus Seedbonus points.";
                       
                       SQL_Query_exec("UPDATE users SET seedbonus = seedbonus + $bonus, class = $new_class WHERE id = $uid");

                   } elseif ($rank == 3) {
                       $bonus = 10000;
                       $pm_msg = "Thanks for participating! Your team " . $team['name'] . " finished in 3rd Place this month. You received $bonus Seedbonus points.";
                       
                       SQL_Query_exec("UPDATE users SET seedbonus = seedbonus + $bonus, class = $new_class WHERE id = $uid");
                   }

                   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, subject, msg, unread, location)
                                   VALUES (0, $uid, '$msg_date', 'Team Battle Results!', " . sqlesc($pm_msg) . ", 'yes', 'in')");
               }
               $rank++;
           }

           SQL_Query_exec("UPDATE users SET team_id = 0, event_upload = 0, event_seed_time = 0 WHERE team_id > 0");
           SQL_Query_exec("UPDATE teams SET points = 0");
       }
   }
}
// =================================================================
// --- END TEAM BATTLE ---
// =================================================================

// =================================================================
// --- TEAM BATTLE: MONITOR GLOBAL 500k GOAL & FREELEECH TIMER ---
// =================================================================
$global_goal = 500000; // Unlock threshold

// 1. CHECK IF FREELEECH EXPIRED (Turn it OFF)
$res_expire = SQL_Query_exec("SELECT fl_expire FROM team_battle_log WHERE id = 2");
$row_expire = mysqli_fetch_assoc($res_expire);

if ($row_expire && $row_expire['fl_expire'] > 0 && time() >= $row_expire['fl_expire']) {
   // 48 hours have passed! Remove freeleech and reset timer
   SQL_Query_exec("UPDATE torrents SET freeleech = 0");
   SQL_Query_exec("UPDATE team_battle_log SET fl_expire = 0 WHERE id = 2");
}

// 2. CHECK IF GOAL IS REACHED (Turn it ON)
$res_check_fl = SQL_Query_exec("SELECT SUM(points) as total FROM teams");
$check_fl = mysqli_fetch_assoc($res_check_fl);
$total_team_points = (int)$check_fl['total'];

if ($total_team_points >= $global_goal) {
   $current_month = (int)date('n');
   
   SQL_Query_exec("INSERT IGNORE INTO `team_battle_log` (`id`, `last_run_month`, `fl_expire`) VALUES (2, 0, 0)");
   
   $res_log_fl = SQL_Query_exec("SELECT last_run_month FROM team_battle_log WHERE id = 2");
   $row_log_fl = mysqli_fetch_assoc($res_log_fl);
   $fl_awarded_month = $row_log_fl ? (int)$row_log_fl['last_run_month'] : 0;
   
   if ($fl_awarded_month !== $current_month) {
       
       $expire_time = time() + (48 * 3600); // Current time + 48 hours in seconds
       
       // Block future runs this month AND set the expiration timer
       SQL_Query_exec("UPDATE team_battle_log SET last_run_month = $current_month, fl_expire = $expire_time WHERE id = 2");
       
       // ACTIVATE GLOBAL FREELEECH
       SQL_Query_exec("UPDATE torrents SET freeleech = 1");
   }
}
// =================================================================



in index where you want to show live stats
add
// --- Team Batlle ---
begin_frame("Team Battle - Live Standings");

$res_teams = SQL_Query_exec("SELECT name, color, points FROM teams ORDER BY points DESC");
$total_points = 0;

echo "<div style='width: 100%; max-width: 600px; margin: 0 auto; padding: 15px;'>";
while ($row_team = mysqli_fetch_assoc($res_teams)) {
   $total_points += $row_team['points'];
   
   echo "<div style='margin-bottom: 15px;'>";
   echo "<strong style='color: " . $row_team['color'] . ";'>" . htmlspecialchars($row_team['name']) . "</strong>: " . number_format($row_team['points']) . " Points";
   
   $percent = min(100, ($row_team['points'] / 100000) * 100);
   echo "<div style='background-color: #222; width: 100%; height: 25px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.1); margin-top: 5px;'>";
   echo "<div style='background-color: " . $row_team['color'] . "; width: " . $percent . "%; height: 100%; border-radius: 4px; box-shadow: 0 0 10px " . $row_team['color'] . ";'></div>";
   echo "</div></div>";
}

// --- Global free (PvE) ---
$global_goal = 500000; //  500k points
$global_percent = min(100, ($total_points / $global_goal) * 100);

echo "<hr style='border: 0; border-top: 1px dashed rgba(255,255,255,0.2); margin: 25px 0 15px 0;'>";
echo "<div style='text-align: center; margin-bottom: 10px;'>";
echo "<strong style='color: #FFBF00; font-size: 16px;'>🌟 COMMUNITY GOAL: UNLOCK GLOBAL FREELEECH</strong><br>";
echo "<small style='color: #aaa;'>Work together! If all teams gather 500,000 points combined, a Freeleech Weekend will be triggered!</small>";
echo "</div>";

echo "<div style='background-color: #111; width: 100%; height: 30px; border-radius: 15px; border: 2px solid #FFBF00; position: relative; overflow: hidden;'>";
echo "<div style='background: linear-gradient(90deg, #ff8a00, #e52e71); width: " . $global_percent . "%; height: 100%; transition: width 1s ease;'></div>";
echo "<span style='position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; font-weight: bold; text-shadow: 1px 1px 2px #000;'>" . number_format($total_points) . " / " . number_format($global_goal) . " (" . number_format($global_percent, 1) . "%)</span>";
echo "</div>";

if ($total_points >= $global_goal) {
   echo "<div style='text-align: center; margin-top: 10px; color: #00ff00; font-weight: bold; font-size: 15px; animation: blinker 1s linear infinite;'>πŸŽ‰ GOAL REACHED! FREELEECH UNLOCKED! πŸŽ‰</div>";
}

echo "<center style='margin-top: 20px;'><a href='teams.php' style='color: #0077CC; font-weight: bold;'>Join a Team / View Details</a></center>";
echo "</div>";

end_frame();
// --- end team batlle ---


add teams.php under public_html







i dont use teams as the default source if you want you can change in factions for example but that meand you wil need to change in all code also

if i forgot something just tell and ill give all

Blackjack 3.0 β€” 2026-10-10 06:09:29 in v3 Mods Completed
post updated
Blackjack 3.0 β€” 2026-10-09 20:28:39 in v3 Mods Completed
i have added a PvP also beside computer with PM to know if win, loss or tie hope i have added all

update SQL:

ALTER TABLE `blackjack_games`
ADD COLUMN `opponent_cards` VARCHAR(255) DEFAULT NULL,
ADD COLUMN `active_turn` VARCHAR(20) DEFAULT NULL,
ADD COLUMN `winner_id` INT DEFAULT 0,
ADD INDEX `idx_blackjack_opponent` (`opponent_id`);


and just replace blackjack.php with the new one attached
Multiplayer poker β€” 2026-10-04 17:25:40 in v3 Mods Completed
i dont know if you had the same problem but on every table same cards every hand , so it didnt shufle for new hands i have managed to make it like this
search in poker-lib.php
function poker_build_deck()
{
   $ranks = array('2','3','4','5','6','7','8','9','10','J','Q','K','A');
   $suits = array('C','D','H','S');
   $deck = array();
   foreach ($ranks as $rank) {
       foreach ($suits as $suit) {
           $deck[] = $rank . $suit;
       }
   }
   shuffle($deck);
   return $deck;
}



replace with:
function poker_build_deck()
{
   $ranks = array('2','3','4','5','6','7','8','9','10','J','Q','K','A');
   $suits = array('C','D','H','S');
   $deck = array();
   foreach ($ranks as $rank) {
       foreach ($suits as $suit) {
           $deck[] = $rank . $suit;
       }
   }
   
   
   $count = count($deck);
   for ($i = $count - 1; $i > 0; $i--) {
       $j = random_int(0, $i);
       $temp = $deck[$i];
       $deck[$i] = $deck[$j];
       $deck[$j] = $temp;
   }
   
   return $deck;
}
Hey! That happens because of Cloudflare, which is now protecting the site.

Since you activated it, Cloudflare is probably being a bit too strictβ€”it might be caching the login page wrongly or blocking the background requests that keep your session alive after 30 minutes, thinking they're suspicious.

To fix it, you usually just need to add a cache bypass rule in Cloudflare for the login area and check your security/SSL settings. Once those are tweaked, it should stop kicking you out!
new file mybonus β€” 2026-09-05 09:10:24 in v3 Mods Completed
Nice i will add this on my bonus page ill share my bonus also


Server load fix β€” 2025-04-03 16:42:10 in v3 Support
just put ; in front

and reload php from directadmin
or just use my serverload
https://torrenttrader.uk/post/10362

but stillsame thing you need to disable in php.ini

i uise same directadmin
Server load fix β€” 2025-04-01 00:10:33 in v3 Support
he should disable_functions in php.ini
forums.php blank page β€” 2025-03-10 22:18:01 in v3 Support


for me works as well
is something wrong in theme
RoTorrent theme β€” 2025-03-05 20:24:30 in v3 Themes
sorry wrong folder . firs post with up[date for download link
RoTorrent theme β€” 2025-03-04 01:17:11 in v3 Themes
Theme made by Aeon for my torrent tracker feel free to have it
it is a 2019 thwmw with improvment

since isbig file and think thatswhy i cant upload it take it from here
https://filebin.net/9kifm73p5d9hzji1

i can help with login page signup and recover to be whole page

this how it looks login, recover and signup


if you want to see it just enter https://rotorrent.ro is not advertise just see theme


why usee free smtp when you can buy a cheap vps
torrents-search β€” 2025-03-04 00:56:52 in v3 Support
is your torrent-search.php works without errors?

probably i can take a look nand make after mine
i would need your torrents table also

torrents-search β€” 2025-02-12 11:02:01 in v3 Support
thx for info Micro
torrents-search β€” 2025-02-11 18:47:51 in v3 Support
CREATE TABLE `searched_words` (
 `searched_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 `searched_by` int(10) UNSIGNED NOT NULL DEFAULT 0,
 `text` varchar(255) NOT NULL DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
torrents-search β€” 2025-02-11 18:20:45 in v3 Support
you can try mine
i did it for me to work


PHP 8 β€” 2024-10-13 17:51:18 in General Chat
you might start with connection in functions and from there with rest,, and you need a hella time for all pages
maybe m-jay will doit but i dount because mbitsy is up for php8
$num = 0;
while ($a = mysqli_fetch_assoc($res)) {
   ++$num;
   $username = htmlspecialchars($a['username'], ENT_QUOTES, 'UTF-8');
   $userId = (int)$a['id'];
   $userNum = htmlspecialchars($a['num'], ENT_QUOTES, 'UTF-8');
   $siteUrl = htmlspecialchars($site_config['SITEURL'], ENT_QUOTES, 'UTF-8');

   if ($a['username']) {
       echo "<tr class='table_col2'><td align='center' class='ttable_col1' >$num</td><td class='ttable_col2' style='text-align: justify'><a href='{$siteUrl}/account-details.php?id=$userId'><b>" . class_user($username) . "</b></a></td><td align='center' class='ttable_col1'>$userNum</td></tr>\n";
   } else {
       echo "<tr class='table_col2'><td align='center' class='ttable_col1'>$num</td><td class='ttable_col2' style='text-align: justify'><img src='images/inconnu.png' height='34' width='36' alt='Inconnu' title='Inconnu!' border='0'><i><b>Banmni / Inconnu</b></i></td><td align='center' class='ttable_col1'>$userNum</td></tr>\n";
   }
}

htmlspecialchars($a['username'], ENT_QUOTES, 'UTF-8'):
Escapes special characters to prevent XSS attacks.
torrent bulk move β€” 2024-05-05 02:32:26 in General Chat
@ sal2azz as i understand you need to delete dead torents after some time? but also you want a code to move torrents from one category to another?

because botanicar gave you the code

or you want in admincp.php an action to move bulk or select torrents to mpve torrrnets to other catogory


it is non sense

just edit the category to your needs and then all those from catagory that thwy where will go to new edit category

it is non sense to make a mod for that
just go
https://site name/admincp.php?action=categories&do=view
and edit with your needs

or just use Botanicar code

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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728