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

presentation too long โ€” 2023-07-13 12:55:06 in v2.08 Support
Sly, where do you want to implement this code?

I suspect it's the torrent description, so we'll start there.

Check in your SQL database "torrents" - "descr" if you have limitations in the description itself.

For example:



PS
As I see You have to many characters in description
TTv3 Micro Edition โ€” 2023-07-03 20:14:00 in v3 Download
Hi MicroMonkey,

can you update that version with all your modifications so I can test it on my live server,

thanks
Glad to help you my friend, enjoy in LIFE
Thanks @MicroMonkey   ๐Ÿฅฐ
but from some reason that part get me a blank login page ...
@spiritblue

download latest acount-login.zip and upload it, as I see you have old one
Thank you @STorrents2020

Guys, I made a small correction to the php file (inedx.php and coockie login difficult), so just download it again please

Regards
Hi guys, someone have needs to this one mod.
Here is it:




Tested on FireFox, TOR Browser and Chrome
Change:

$subject = "<a href=forums.php?action=viewtopic&topicid=$topicid><b>" . stripslashes(encodehtml($topicarr["subject"])) . "</b></a>";


to

$subject = "<a href=forums.php?action=viewtopic&topicid=$topicid&page=last#last> " . stripslashes(encodehtml($topicarr["subject"])) . " </a>";


Regards
Sql inject โ€” 2023-06-11 21:38:49 in v3 Support
Glad to help you against cheaters
Sql inject โ€” 2023-06-11 14:47:59 in v3 Support
Sorry:

in functions.php add this line:

require_once(BACKEND."/encrypt_email.php"); //   Mail encrypt functions

and in backend folder add attachmend file
Sql inject โ€” 2023-06-10 11:50:43 in v3 Support
It was common knowledge that invite had a "backdoor" in this way...
Don't know if it helps you but try and see

You can test it if it works:

In config.php add that:


// email encrypt
$site_config["clef"] = 'AHIJKLMNOPQRSTUVWXYZabcde,;:!ร‚ยง#)nopqrstuvwxyz0123456789+@='; // change your key as you wish


Sql inject โ€” 2023-06-10 07:21:38 in v3 Support
Which version of TT,
which code M-jay or MM,
some attachment of invite.php


Thanks
donate_block.php โ€” 2023-06-01 21:41:04 in v3 Support
@spiritblue
I misunderstood you my friend, sorry for that
donate_block.php โ€” 2023-06-01 08:28:20 in v3 Support
Hi @spiritblue
if you ask me about it I can answer to you like that:

1. Is it donor: NO
2. Donation lenght: 0
3. Donation amount: 0
4. Submit
Wait 1-2 secounds and taht's it



Regards mate

Server Load help โ€” 2023-05-21 08:06:01 in General Chat
Do you have tested serverload_block.php block?



<?php
#================================#
#       TorrentTrader 2.08          #
#  torrenttrader.uk                   #
#--------------------------------#
#       Modified by M-Jay          #
#================================#

//SERVER LOAD BLOCK

begin_block(T_("SERVER_LOAD"));

if (strtoupper(substr(PHP_OS, 0, 3)) == "WIN") {
if (!class_exists("COM"))
echo "COM support not available.";
else {
function mkprettytime2($s){
foreach (array("60:sec","60:min","24:hour","1:day") as $x) {
$y = explode(":", $x);
if ($y[0] > 1) {
$v = $s % $y[0];
$s = floor($s / $y[0]);
} else
$v = $s;
$t[$y[1]] = $v;
}

if ($t['week'] > 1 || $t['week'] == 0) $wk = " weeks";
else $wk = " week";
if ($t['day'] > 1 || $t['day'] == 0) $day = " days";
else $day = " day";
if ($t['hour'] > 1 || $t['hour'] == 0) $hr = " hrs";
else $hr = " hr";
if ($t['min'] > 1 || $t['min'] == 0) $min = " mins";
else $min = " min";
if ($t['sec'] > 1 || $t['sec'] == 0) $sec = " secs";
else $sec = " sec";

if ($t["month"])
return "{$t['month']}$mth {$t['week']}$wk {$t['day']}$day ".sprintf("%d$hr %02d$min %02d$sec", $t["hour"], $t["min"], $t["sec"], $f["month"]);
if ($t["week"])
return "{$t['week']}$wk {$t['day']}$day ".sprintf("%d$hr %02d$min %02d$sec", $t["hour"], $t["min"], $t["sec"], $f["month"]);
if ($t["day"])
return "{$t['day']}$day ".sprintf("%d$hr %02d$min %02d$sec", $t["hour"], $t["min"], $t["sec"]);
if ($t["hour"])
return sprintf("%d$hr %02d$min %02d$sec", $t["hour"], $t["min"], $t["sec"]);
if ($t["min"])
return sprintf("%d$min %02d$sec", $t["min"], $t["sec"]);
return $t["sec"].$sec;
}

if (version_compare(PHP_VERSION, '5.0.0', '<'))
require("backend/serverload4.php");
else
require("backend/serverload5.php");
}
} else {
// Users and load information
$reguptime = exec("uptime");
if ($reguptime) {
if (preg_match("/up (.*), *(\d) (users?), .*: (.*), (.*), (.*)/", $reguptime, $uptime)) {
$up = preg_replace("!(\d\d):(\d\d)!", '\1h\2m', $uptime[1]);
$users[0] = $uptime[2];
$users[1] = $uptime[3];
$loadnow = $uptime[4];
$load5 = $uptime[5];
$load15 = $uptime[6];

// CPU Information
exec ("cat /proc/cpuinfo", $details);
$processor1 = $details[4];

}
} else {
$up = "--";
$users[0] = "NA";
$users[1] = "--";
$loadnow = "NA";
$load5 = "--";
$load15 = "--";
}


// Operating system
$temp = file_get_contents("/proc/version");
if ($temp) {

$osarray = explode(" ", $temp);

$distros = array(
"Gentoo", "/etc/gentoo-release",
"Fedora Core", "/etc/fedora-release",
"Slackware", "/etc/slackware-version",
"Cobalt", "/etc/cobalt-release",
"Debian", "/etc/debian_version",
"Mandrake", "/etc/mandrake-release",
"Mandrake", "/etc/mandrakelinux-release",
"Yellow Dog", "/etc/yellowdog-release",
"Red Hat", "/etc/redhat-release",
"Arch Linux", "/etc/arch-release"
);

$distro = "";
if (file_exists("/etc/lsb-release")) {
$lsb = file_get_contents("/etc/lsb-release");
preg_match('!DISTRIB_DESCRIPTION="(.*)"!', $lsb, $distro);
$distro = $distro[1];
} else do {
if (file_exists($distros[1])) {
$distro = file_get_contents($distros[1]);
$distro = "$distros[0] ".preg_replace("/[^0-9]*([0-9.]+)[^0-9.]{0,1}.*/", "\\1", $distro);
break;
}
array_shift($distros); array_shift($distros);
} while (count($distros));

if (!$distro) {
$distro = "Unknown Distro";
}

$operatingsystem = "$distro ($osarray[0] $osarray[2])";

} else {
$operatingsystem = "(N/A)";
}


// Current local server time
$localtime = exec('date');
$timer = 'servertime';




// RAM usage
$meminfo = file_get_contents("/proc/meminfo");
preg_match("!^MemTotal:\s*(.*) kB!m", $meminfo, $memtotal);
$memtotal = $memtotal[1] * 1024;
preg_match("!^MemFree:\s*(.*) kB!m", $meminfo, $memfree);
$memfree = $memfree[1] * 1024;
preg_match("!^Buffers:\s*(.*) kB!m", $meminfo, $buffers);
$buffers = $buffers[1] * 1024;
preg_match("!^Cached:\s*(.*) kB!m", $meminfo, $cached);
$cached = $cached[1] * 1024;

$memused = mksize($memtotal - $memfree - $buffers - $cached);
$memtotal = mksize($memtotal);



// set partition
$fs = "/";
// display available and used space
echo ("<b>Total HDD: </b>" . round(disk_free_space($fs) / (1024*1024*1024)) . " GB\r\n<br />");
// calculate used space
$disk_used_space = round((disk_total_space($fs) - disk_free_space($fs)) / (1024*1024*1024));
echo ("<b>HDD Used: </b>" . $disk_used_space . " GB\r\n<br />");
// calculate % used space
echo ("<b>Percentage: </b>" . round((disk_total_space($fs) - disk_free_space($fs)) / disk_total_space($fs) * 100) . " %<br/><hr/>");


//echo("<b>Current Users:</b> $users[0]<br>
echo("<b>CPU Info: </b> $processor1<br /><hr />");
echo("<b>Local Server Time:</b> $localtime<br /><hr />");

   $dt = new DateTime();
echo ("<b>PHP UTC Time: </b>".gmdate('m-d-Y H:i:s')."<br /><hr />");
   

echo("<b>".T_("CURRENT_LOAD").":</b> $loadnow<br /><b>".T_("LOAD_5_MINS").":</b> $load5<br /><b>".T_("LOAD_15_MINS").":</b> $load15<br /><hr />");

echo("<b>OS:</b> $operatingsystem<br />");
echo("<b>".T_("RAM_USED").":</b> $memused of $memtotal<br />");
echo("<b>".T_("UPTIME").":</b> $up<br />");


}
end_block();
?>
functions.php


// Youtube video [video=https://www.youtube.com]
    $s = preg_replace("/\[video=\bhttps?:\/\/www\.youtube\.com\/watch\?v=([\w\d-]+?)\]/i" , "<iframe width=" . "\"640\"" . "height=\"360\"" . "src=\"https://www.youtube.com/embed/" . "\\1\"" . "frameborder=\"0\"" . "allowfullscreen>" . "</iframe>", $s);

   // Youtube small video [videow=https://www.youtube.com]
   $s = preg_replace("/\[videow=\bhttps?:\/\/www\.youtube\.com\/watch\?v=([\w\d-]+?)\]/i" , "<iframe width=" . "\"320\"" . "height=\"180\"" . "src=\"https://www.youtube.com/embed/" . "\\1\"" . "frameborder=\"0\"" . "allowfullscreen>" . "</iframe>", $s);

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

           case 'tube':
               echo "<td class='table_head'>&nbsp;&nbsp;".T_("YOUTUBE")."</td>";
               break;



bbcode.php


   case '[youtube]':
var start = document.forms[form].elements[text].selectionStart;
var end = document.forms[form].elements[text].selectionEnd;
if (start != end) {
var body = document.forms[form].elements[text].value;
var left = body.substr(body, start);
var middle = "[youtube]" + body.substring(start, end) + "[/youtube]";
var right = body.substr(end, body.length);
document.forms[form].elements[text].value = left + middle + right;
} else {
document.forms[form].elements[text].value = document.forms[form].elements[text].value + "Add YouTube link";
}
       break;


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


<input type="button" name="youtube" class="btn btn-dark" value="YouTube" onclick="javascript: BBTag('[youtube]','youtube','<?php echo $name; ?>','<?php echo $form; ?>')" />
@djlive

Looking a little deeper into M-Jay's source code then, I can't see that it will work the way you want.

As I see first we have to choose which H&R we want to "buy up" for UL or seedbonus and it is in separate file called required.php not in mybonus.php
@djlive
Of course I can share it with everyone, it's an open source code and we help each other, I think it's cool.

Must add that the full code is already here you might have missed it, M-Jay did it in his first post with it needs to be converted to MySQLi
https://torrenttrader.uk/post/9731/user/#post66305

prerequisite is that you already have H&R MOD installed

download zip file request.zip
if you have needs to stylize that just add bootstrap.css from link
https://getbootstrap.com/docs/5.1/getting-started/introduction/

Screenshots:








if you need to link numbers of H&R to this part just make a link as that:


//===| H&R
$qry = SQL_Query_exec("SELECT COUNT(`hnr`) FROM `snatched` WHERE `uid` = '$CURUSER[id]' AND `hnr` = 'yes'");
$res12 = mysqli_fetch_row($qry);
$hnr = $res12[0];
//===| End H&R




<tr><td><div style='font:normal 14px Robo'>".T_("H&R").":</div></td><td><div style='font:normal 14px Robo'><a href='required.php'> $hnr </a></div></td></tr>


Good luck
Hi @djlive
unfortunately not on this way, but on another one yes
Site torrent catalog โ€” 2023-04-30 11:51:11 in v3 Mods Completed
@spiritblue

Hi mate, I don't use TMDB or ALLOCINE but if you need some fix on it I send you PM
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728